feat: migrate from lemonsqueezy to polar (#535)
* feat: move from lemonsqueezy to polar * update lock * add migration files * test with demo product id
This commit is contained in:
@@ -8,7 +8,7 @@ create table "public"."organization_plan" (
|
||||
"is_active" boolean,
|
||||
"deactivated_at" timestamp with time zone,
|
||||
"updated_at" timestamp with time zone default now(),
|
||||
"lmz_data" jsonb,
|
||||
"payload" jsonb,
|
||||
"triggered_by" bigint
|
||||
);
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
alter table "public"."organization_plan" add column "provider" text default 'lmz'::text;
|
||||
|
||||
alter table "public"."organization_plan" add column "subscription_id" text not null;
|
||||
|
||||
CREATE UNIQUE INDEX organization_plan_subscription_id_key ON public.organization_plan USING btree (subscription_id);
|
||||
|
||||
alter table "public"."organization_plan" add constraint "organization_plan_subscription_id_key" UNIQUE using index "organization_plan_subscription_id_key";
|
||||
Reference in New Issue
Block a user