We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
drizzle-orm
0.31.2
drizzle-kit
0.22.8
The previous schema had 3 tables: users, user_auth, user_session. user_session.userId was a foreign key to user_auth.id. My actions were:
user_session.userId
user_auth.id
users.id
The migrations were:
However, the 1st command errored since user_session depended on user_auth.
Run proper migrations considering dependents with foreign keys.
Linux, bun 1.1.17.
The text was updated successfully, but these errors were encountered:
@cybercoder-naj What DB are you using?
Sorry, something went wrong.
I am using PostgreSQL v16.
No branches or pull requests
What version of
drizzle-orm
are you using?0.31.2
What version of
drizzle-kit
are you using?0.22.8
Describe the Bug
The previous schema had 3 tables: users, user_auth, user_session.
user_session.userId
was a foreign key touser_auth.id
. My actions were:user_session.userId
was a foreign key tousers.id
.The migrations were:
However, the 1st command errored since user_session depended on user_auth.
Expected behavior
Run proper migrations considering dependents with foreign keys.
Environment & setup
Linux, bun 1.1.17.
The text was updated successfully, but these errors were encountered: