change UI & fix bugs

This commit is contained in:
2026-09-14 16:32:03 +03:30
parent 602da7f860
commit 4660b4f922
16 changed files with 693 additions and 63 deletions
@@ -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;