Skip to content

Commit

Permalink
feat: update stores
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed Mar 9, 2024
1 parent 9602a01 commit a9e603a
Show file tree
Hide file tree
Showing 23 changed files with 1,990 additions and 200 deletions.
4 changes: 2 additions & 2 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { env } from "@/env.js"
import { type Config } from "drizzle-kit"

import { databasePrefix } from "@/lib/constants"
import { dbPrefix } from "@/lib/constants"

export default {
schema: "./src/db/schema.ts",
Expand All @@ -10,5 +10,5 @@ export default {
dbCredentials: {
connectionString: env.DATABASE_URL,
},
tablesFilter: [`${databasePrefix}_*`],
tablesFilter: [`${dbPrefix}_*`],
} satisfies Config
4 changes: 4 additions & 0 deletions drizzle/0002_demonic_spot.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ALTER TABLE "skateshop_categories" ADD COLUMN "slug" varchar(256);--> statement-breakpoint
ALTER TABLE "skateshop_subcategories" ADD COLUMN "slug" varchar(256);--> statement-breakpoint
ALTER TABLE "skateshop_categories" ADD CONSTRAINT "skateshop_categories_slug_unique" UNIQUE("slug");--> statement-breakpoint
ALTER TABLE "skateshop_subcategories" ADD CONSTRAINT "skateshop_subcategories_slug_unique" UNIQUE("slug");
2 changes: 2 additions & 0 deletions drizzle/0003_colossal_invisible_woman.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "skateshop_categories" ALTER COLUMN "slug" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "skateshop_subcategories" ALTER COLUMN "slug" SET NOT NULL;
Loading

0 comments on commit a9e603a

Please sign in to comment.