Skip to content

Commit

Permalink
Revert "chore(website): also remove the renewOn column from customer"
Browse files Browse the repository at this point in the history
This reverts commit 5ba5fd7.
  • Loading branch information
IgnisDa committed Oct 29, 2024
1 parent 5ba5fd7 commit 0e58276
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
ALTER TYPE "public"."plan_type" ADD VALUE 'free' BEFORE 'monthly';--> statement-breakpoint
ALTER TABLE "customer" DROP CONSTRAINT "customer_paddle_first_transaction_id_unique";--> statement-breakpoint
ALTER TABLE "customer" DROP COLUMN IF EXISTS "paddle_first_transaction_id";--> statement-breakpoint
ALTER TABLE "customer" DROP COLUMN IF EXISTS "renew_on";
ALTER TABLE "customer" DROP COLUMN IF EXISTS "paddle_first_transaction_id";
8 changes: 7 additions & 1 deletion apps/website/app/drizzle/migrations/meta/0003_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "0c64b2ae-3b5b-4061-9891-cfcb23ef9c5a",
"id": "606551ca-2277-4f7c-a916-7be8a145bc9f",
"prevId": "706194d8-7177-4603-9a70-49955b7b2c2f",
"version": "7",
"dialect": "postgresql",
Expand Down Expand Up @@ -103,6 +103,12 @@
"primaryKey": false,
"notNull": false
},
"renew_on": {
"name": "renew_on",
"type": "date",
"primaryKey": false,
"notNull": false
},
"unkey_key_id": {
"name": "unkey_key_id",
"type": "text",
Expand Down
4 changes: 2 additions & 2 deletions apps/website/app/drizzle/migrations/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
{
"idx": 3,
"version": "7",
"when": 1730175376190,
"tag": "0003_purple_moon_knight",
"when": 1730122312096,
"tag": "0003_same_gorilla_man",
"breakpoints": true
}
]
Expand Down
2 changes: 2 additions & 0 deletions apps/website/app/drizzle/schema.server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
boolean,
date,
pgEnum,
pgTable,
text,
Expand Down Expand Up @@ -35,6 +36,7 @@ export const customers = pgTable("customer", {
paddleCustomerId: text("paddle_customer_id").unique(),
productType: productTypes("product_type"),
planType: planTypes("plan_type"),
renewOn: date("renew_on"),
unkeyKeyId: text("unkey_key_id"),
ryotUserId: text("ryot_user_id"),
hasCancelled: boolean("has_cancelled"),
Expand Down

0 comments on commit 0e58276

Please sign in to comment.