-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Postgres migration #4265
Comments
I tried a straight
Only failure is:
Following errors in NPM:
If I leave the I don't feel like recreating everything from scratch, so I guess I'll be waiting as I don't know enough about database migrations to be of much help. |
Ok, fiddled with it a bit more and got it working with Configure NPM to use Create a file called Then run:
You'll get similar output to below when completed:
NPM Log output showing the
|
Just leaving it open for others to see and check out if there are any issues with this migration. I kept my sqlite db in case... Make sure to keep our sqlite database around in case... |
Thank you for your migration solution, it helps me a lot! But I added a clear data steps to prevent input data error because of duplicate primary key, so I don't have to re-create the account or change the password of the default user. TRUNCATE table setting;
TRUNCATE table "user";
TRUNCATE table auth;
TRUNCATE table user_permission; And then I import the data by running |
This is great! Thanks. :) |
Hello, I see that Postgress support was added with #4254. I am wondering if there is a migration path from the default
sqlite
topostgres
? Thanks. :)The text was updated successfully, but these errors were encountered: