summaryrefslogtreecommitdiffstats
path: root/database.sql
diff options
context:
space:
mode:
Diffstat (limited to 'database.sql')
-rw-r--r--database.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/database.sql b/database.sql
index 3ff1063..3f77a3b 100644
--- a/database.sql
+++ b/database.sql
@@ -76,4 +76,4 @@ ALTER TABLE `user` MODIFY `id` tinyint(4) NOT NULL AUTO_INCREMENT;
-- Add foreign keys for data integrity
-- =============================================================================
ALTER TABLE `page` ADD CONSTRAINT `page_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
-ALTER TABLE `post` ADD CONSTRAINT `post_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; \ No newline at end of file
+ALTER TABLE `post` ADD CONSTRAINT `post_user` FOREIGN KEY (`user`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;