-
Notifications
You must be signed in to change notification settings - Fork 4
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
Migrate to Prisma ORM #837
Conversation
When migrating with knex, prisma detects all as migrated. When migrating with prisma, knex detects all as migrated.
Delete tickets before seeding Better type safety Rename fields as in previous commit Fix ownerId gets invalid 0 value for ticket
edffc8c
to
48a896e
Compare
State report
|
Migration guide (without data loss)Without backup and restorestep 1: Insert fake prisma migration logsMigrate up using knex until You can do this by running step 2: Run prisma migrationsRun This will only run migrations newer than With backup and restore
|
@@ -16,3 +16,6 @@ DB_PORT=5432 | |||
DB_USERNAME=tanulo | |||
DB_PASSWORD=tanulo | |||
DB_DATABASE=tanulo | |||
|
|||
# Don't touch this | |||
DB_URL="postgresql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_DATABASE}?schema=public" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI crashes, because this is missing.
Can we introduce a new env var, or I should copy this line into the CI config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you'll have to add it to both .env and the CI configs, since we'll need it in both places (CI uses the vars defined in the yaml, while live env uses the .env file).
Closes #661