fix(migration): 0010 hero_slides — DROP TABLE → CREATE IF NOT EXISTS to preserve data on redeploy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d61d5c87ed
commit
97f775afcb
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
-- Migration: add home_page_hero_slides table for CMS-managed hero slider
|
||||
-- IMPORTANT: id must be character varying (not serial) — Payload generates string IDs
|
||||
DROP TABLE IF EXISTS home_page_hero_slides CASCADE;
|
||||
CREATE TABLE home_page_hero_slides (
|
||||
CREATE TABLE IF NOT EXISTS home_page_hero_slides (
|
||||
_order integer NOT NULL,
|
||||
_parent_id integer NOT NULL REFERENCES home_page(id) ON DELETE CASCADE,
|
||||
id character varying NOT NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue