fix(migration): 0010 hero_slides — DROP TABLE → CREATE IF NOT EXISTS to preserve data on redeploy
Some checks are pending
CI / Type Check (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Unit Tests (push) Waiting to run
Deploy / Build & Push Image (push) Waiting to run
Deploy / Deploy to VPS (push) Blocked by required conditions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Vadym Samoilenko 2026-06-04 17:06:46 +01:00
parent d61d5c87ed
commit 97f775afcb

View file

@ -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,