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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: Fix broken upgrade script 1.3.0 #856

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yhabteab
Copy link
Member

PR #792 mistakenly added a NOT NULL clause to a nullable columns. This PR corrects that by dropping that clause and adding a DEFAULT NULL clause, making it consistent the actual schema file.

fixes #855

@yhabteab yhabteab added bug Something isn't working area/schema labels Nov 15, 2024
@yhabteab yhabteab added this to the 1.3.0 milestone Nov 15, 2024
@yhabteab yhabteab requested a review from oxzi November 15, 2024 13:12
@cla-bot cla-bot bot added the cla/signed label Nov 15, 2024
oxzi
oxzi previously approved these changes Nov 15, 2024
Copy link
Member

@oxzi oxzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. That should not have happened. Thanks to @alamp1360 for trying out the current development state.

The fix looks good. To make sure, I have compared the schema change and update script from #792 again.

Thanks for fixing!

PR #792 mistakenly added a `NOT NULL` clause to a nullable columns. This
PR corrects that by dropping that clause and adding a `DEFAULT NULL`
clause, making it consistent the actual schema file.
@yhabteab
Copy link
Member Author

Sorry, but I had to force push again because of this :), but it should be fine now!

4c4
< -- Host: localhost    Database: icingadb
---
> -- Host: localhost    Database: test_test
99c99
<   `argument_key_override` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
---
>   `argument_key_override` varchar(255) DEFAULT NULL,
393c393
<   `argument_key_override` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
---
>   `argument_key_override` varchar(255) DEFAULT NULL,
726c726
< ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;
---
> ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;
931c931
<   `argument_key_override` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
---
>   `argument_key_override` varchar(255) DEFAULT NULL,
1478c1478
< -- Dump completed on 2024-11-20 12:39:24
---
> -- Dump completed on 2024-11-20 12:39:36

@yhabteab yhabteab requested a review from oxzi November 20, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schema update to version 6 produces error
2 participants