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 #945

Merged
merged 1 commit into from
Nov 16, 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.

@RomainLanz RomainLanz closed this Sep 21, 2023
@RomainLanz RomainLanz deleted the fix/primary-key-on-version branch September 21, 2023 09:50
@RomainLanz RomainLanz restored the fix/primary-key-on-version branch November 16, 2023 15:12
@RomainLanz RomainLanz reopened this Nov 16, 2023
@RomainLanz RomainLanz merged commit 0fac231 into develop Nov 16, 2023
84 of 88 checks passed
@RomainLanz RomainLanz deleted the fix/primary-key-on-version branch November 16, 2023 15:18
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