Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(migrator): set primary key for schema_versions table #957

Merged
merged 1 commit into from
Sep 23, 2023

Conversation

RomainLanz
Copy link
Member

Hey! 馃憢馃徎

This PR changes the definition of the adonis_schema_versions table to ensure a PRIMARY KEY is set.

In many DBMS, it is required to have a least one PRIMARY KEY. If you don't set one manually, the DBMS will try to figure out any indexes (UNIQUE), which may be used to act as the PRIMARY KEY. In this case, we had none.

Updated version of #945 for V6.

@RomainLanz RomainLanz merged commit 62e5b5e into v6-next Sep 23, 2023
31 of 32 checks passed
@RomainLanz RomainLanz deleted the fix/primary-key-on-version branch September 23, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant