Files
nl-blogs/server/cleanup_tables.sql
2026-01-19 16:14:08 +08:00

16 lines
420 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 清理脚本:删除可能有问题的表
-- 在执行 nl_blog.sql 之前先执行此脚本
SET FOREIGN_KEY_CHECKS = 0;
-- 删除 operation_logs 表(如果存在)
DROP TABLE IF EXISTS `operation_logs`;
-- 删除 tags 表(如果存在)
DROP TABLE IF EXISTS `tags`;
-- 删除 post_tags 关联表(如果存在,因为它可能引用 tags
DROP TABLE IF EXISTS `post_tags`;
SET FOREIGN_KEY_CHECKS = 1;