Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Fix the schema migration bug #442

Merged
merged 5 commits into from
Jun 4, 2022
Merged

Fix the schema migration bug #442

merged 5 commits into from
Jun 4, 2022

Conversation

noahingh
Copy link
Member

@noahingh noahingh commented Jun 4, 2022

A schema migration error occurs for the MySQL database. The error is that while upgrading the Ent, the default value of the foreign key constraint has changed(#381). To avoid this, rever to the same value as before.

migrate the table schema: sql/schema: alter table "notification_records": Error 1830: Column 'event_id' cannot be NOT NULL: needed in a foreign key constraint 'notification_records_events_notification_record' SET NULL

@noahingh noahingh added bug Something isn't working schema-migration This pull request has a schema-migration labels Jun 4, 2022
@noahingh noahingh added this to the v0.7 milestone Jun 4, 2022
@noahingh noahingh marked this pull request as ready for review June 4, 2022 07:00
@noahingh noahingh merged commit 54a8409 into main Jun 4, 2022
@noahingh noahingh deleted the fix-schema-bug branch June 4, 2022 07:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working schema-migration This pull request has a schema-migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant