Commit b9fa9f52 authored by Tino Goratsch's avatar Tino Goratsch

fixed a bug within the migrations

parent decc2020
......@@ -90,7 +90,7 @@ class Migration extends Modules\Installer\AbstractMigration
],
47 => [
"ALTER TABLE `{pre}files` CHANGE `category_id` `category_id` INT(10) UNSIGNED;",
"ALTER TABLE `{pre}files` DROP FOREIGN KEY `acp3_files_ibfk_1`;",
"ALTER TABLE `{pre}files` DROP FOREIGN KEY `{pre}files_ibfk_1`;",
"ALTER TABLE `{pre}files` ADD FOREIGN KEY (`category_id`) REFERENCES `{pre}categories` (`id`) ON DELETE SET NULL",
]
];
......
......@@ -66,7 +66,7 @@ class Migration extends Modules\Installer\AbstractMigration
],
43 => [
"ALTER TABLE `{pre}news` CHANGE `category_id` `category_id` INT(10) UNSIGNED;",
"ALTER TABLE `{pre}news` DROP FOREIGN KEY `acp3_news_ibfk_1`;",
"ALTER TABLE `{pre}news` DROP FOREIGN KEY `{pre}news_ibfk_1`;",
"ALTER TABLE `{pre}news` ADD FOREIGN KEY (`category_id`) REFERENCES `{pre}categories` (`id`) ON DELETE SET NULL",
]
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment