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

View File

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

View File

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