aboutsummaryrefslogtreecommitdiffstats
path: root/internal/db/migrations/control/00007_drop_content.sql
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/migrations/control/00007_drop_content.sql')
-rw-r--r--internal/db/migrations/control/00007_drop_content.sql9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/db/migrations/control/00007_drop_content.sql b/internal/db/migrations/control/00007_drop_content.sql
deleted file mode 100644
index 9daa1ac..0000000
--- a/internal/db/migrations/control/00007_drop_content.sql
+++ /dev/null
@@ -1,9 +0,0 @@
--- +goose Up
--- The content now lives in the per-blog databases (see 00006 in split.go);
--- the control database keeps only users and the blog registry.
-DROP TABLE menu_items, modules, sections, images, posts, pages;
-ALTER TABLE blogs DROP COLUMN title, DROP COLUMN tagline, DROP COLUMN theme, DROP COLUMN updated_at;
-ALTER TABLE blogs ALTER COLUMN db_name SET NOT NULL;
-
--- +goose Down
--- Not reversible: the content is gone from this database. Restore from a backup instead.