mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-12 06:40:58 +04:30
Ship legacy migrate APIs, portfolio/blog old-id schema, and admin migrate/purge flows.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
7244b70e90
commit
4598add88c
@@ -0,0 +1,7 @@
|
||||
-- Link migrated blogs to legacy WillaEngine article ids
|
||||
ALTER TABLE blogs
|
||||
ADD COLUMN IF NOT EXISTS old_id BIGINT;
|
||||
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS blogs_business_old_id_unique
|
||||
ON blogs (business_id, old_id)
|
||||
WHERE old_id IS NOT NULL;
|
||||
Reference in New Issue
Block a user