12 lines
431 B
MySQL
12 lines
431 B
MySQL
|
-- SET @@session.foreign_key_checks = 0;
|
||
|
-- SET FOREIGN_KEY_CHECKS = 0;
|
||
|
|
||
|
-- ALTER TABLE `internal_links` ADD CONSTRAINT fk_from_page_id FOREIGN KEY (`from_page_id`) REFERENCES `pages` (`id`);
|
||
|
-- ALTER TABLE `internal_links` ADD CONSTRAINT fk_to_page_id FOREIGN KEY (`to_page_id`) REFERENCES `pages` (`id`);
|
||
|
|
||
|
SET @@session.unique_checks = 1;
|
||
|
SET @@session.foreign_key_checks = 1;
|
||
|
|
||
|
SET FOREIGN_KEY_CHECKS = 1;
|
||
|
SET UNIQUE_CHECKS = 1;
|