diff --git a/server/sql/0002.sql b/server/sql/0002.sql index bc597729..ddcc88da 100644 --- a/server/sql/0002.sql +++ b/server/sql/0002.sql @@ -1,3 +1,5 @@ +PRAGMA foreign_keys=off; +--> statement-breakpoint CREATE TABLE IF NOT EXISTS `feeds_new` ( `id` integer PRIMARY KEY NOT NULL, `alias` text, @@ -19,4 +21,6 @@ FROM `feeds`; --> statement-breakpoint DROP TABLE `feeds`; --> statement-breakpoint -ALTER TABLE `feeds_new` RENAME TO `feeds`; \ No newline at end of file +ALTER TABLE `feeds_new` RENAME TO `feeds`; +--> statement-breakpoint +PRAGMA foreign_keys=on; \ No newline at end of file