change UI & fix bugs
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
-- Allow dynamic category ids on products (was Prisma enums)
|
||||
ALTER TABLE "Product" ALTER COLUMN "usageCategory" DROP DEFAULT;
|
||||
ALTER TABLE "Product" ALTER COLUMN "usageCategory" TYPE TEXT USING "usageCategory"::text;
|
||||
ALTER TABLE "Product" ALTER COLUMN "usageCategory" SET DEFAULT 'other';
|
||||
|
||||
ALTER TABLE "Product" ALTER COLUMN "season" DROP DEFAULT;
|
||||
ALTER TABLE "Product" ALTER COLUMN "season" TYPE TEXT USING "season"::text;
|
||||
ALTER TABLE "Product" ALTER COLUMN "season" SET DEFAULT 'all_season';
|
||||
|
||||
-- Persist admin-managed category definitions
|
||||
ALTER TABLE "SystemSettings" ADD COLUMN IF NOT EXISTS "categoryDefsJson" JSONB;
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "AppBanner" ADD COLUMN IF NOT EXISTS "showTitle" BOOLEAN NOT NULL DEFAULT true;
|
||||
ALTER TABLE "AppBanner" ADD COLUMN IF NOT EXISTS "showSubtitle" BOOLEAN NOT NULL DEFAULT true;
|
||||
ALTER TABLE "AppBanner" ADD COLUMN IF NOT EXISTS "showCta" BOOLEAN NOT NULL DEFAULT true;
|
||||
Reference in New Issue
Block a user