[Bug]: Db Migration, creates table in postgres, but no data is migrated
See original GitHub issueWhat is your BTCPay version?
BtcPay v1.7.9
How did you deploy BTCPay Server?
Run from source using dotnet run --no-launch-profile -c Release --project “.\BTCPayServer\BTCPayServer.csproj” --debuglog “C:\debug.log”
What happened?
So I created a postgres blank database “btcpayserver” and user for it Added this to the configuration
postgres=User ID=btcpay;Password=???;Application Name=btcpayserver;Host=127.0.0.1;Port=5432;Database=btcpayserver;
and commented out the “sqlitefile” config
How did you encounter this bug?
Ran btcpay with new postgres config for migration. The tables were created in the postgres database, however no data was migrated. When I access the btc pay server it was like accessing fresh instance, nothing migrated.
Relevant log output
nothing found in log file that suggested migration was running
What browser do you use?
No response
Additional information
No response
Are you sure this is a bug report?
- I confirm this is a bug report
Issue Analytics
- State:
- Created 7 months ago
- Comments:53 (26 by maintainers)
Top Results From Across the Web
rake db:migrate doesn't generate table in postgresql
Postgres does not read your schema file or migrations - rather migrations run SQL queries against your database. In this case a CREATE...
Read more >php artisan migrate ran successfully but doe not create tables
I ran artisan migrate command successfully but I don't see any tables created in my database. Here is full background =>.
Read more >Troubleshooting migration tasks in AWS Database Migration ...
Troubleshoot issues when migrating data using AWS Database Migration Service ... AWS DMS creates tables, primary keys, and in some cases unique indexes,...
Read more >Preparing PostgreSQL for migration with Database ...
Starting a migration against a database that has tables without primary keys ... lacking a primary key, but the table will still be...
Read more >Migration troubleshooting in development - Prisma
This guide describes how to resolve issues with Prisma Migrate in a development environment, which often involves resetting your database.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got you. Thanks for everything, your a rockstar! in the space!
You will be pleased to see this -> info: BTCPayServer.Hosting.ToPostgresMigrationStartupTask: Migration to postgres from SQLite successful
Thank you very much for your time !