1
0
mirror of https://github.com/ClusterCockpit/cc-backend synced 2025-04-03 18:55:55 +02:00

Disable foreign key check while updating database

This commit is contained in:
Michael Schwarz 2024-03-14 09:15:15 +01:00
parent 5004e44934
commit ce792426e6
2 changed files with 4 additions and 0 deletions
internal/repository/migrations/mysql

@ -1 +1,3 @@
SET FOREIGN_KEY_CHECKS = 0;
ALTER TABLE tag MODIFY id INTEGER;
SET FOREIGN_KEY_CHECKS = 1;

@ -1 +1,3 @@
SET FOREIGN_KEY_CHECKS = 0;
ALTER TABLE tag MODIFY id INTEGER AUTO_INCREMENT;
SET FOREIGN_KEY_CHECKS = 1;