fix: regenerate migration with stripe plugin fields
All checks were successful
Build & Deploy to K3s / build-and-deploy (push) Successful in 3m6s

Previous run generated the initial migration without STRIPE_SECRET_KEY
set, so the stripe plugin's sync was disabled and the stripeID/skipSync
columns were omitted. Prod then crashed on queries referencing
products.stripe_i_d. Regenerated with a placeholder key so the plugin
contributes its fields to the schema.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ordinarthur 2026-04-21 11:02:19 +02:00
parent 955dbeb63b
commit aeabd79ac6
3 changed files with 33 additions and 5 deletions

View File

@ -751,6 +751,18 @@
"primaryKey": false,
"notNull": false
},
"stripe_i_d": {
"name": "stripe_i_d",
"type": "varchar",
"primaryKey": false,
"notNull": false
},
"skip_sync": {
"name": "skip_sync",
"type": "boolean",
"primaryKey": false,
"notNull": false
},
"updated_at": {
"name": "updated_at",
"type": "timestamp(3) with time zone",
@ -1096,6 +1108,18 @@
"primaryKey": false,
"notNull": false
},
"version_stripe_i_d": {
"name": "version_stripe_i_d",
"type": "varchar",
"primaryKey": false,
"notNull": false
},
"version_skip_sync": {
"name": "version_skip_sync",
"type": "boolean",
"primaryKey": false,
"notNull": false
},
"version_updated_at": {
"name": "version_updated_at",
"type": "timestamp(3) with time zone",
@ -2161,6 +2185,6 @@
"tables": {},
"columns": {}
},
"id": "013dbcb1-4b0a-4d16-8ae7-0477d7cc3b27",
"id": "6fac7636-258c-41c3-b39c-8216bf89895b",
"prevId": "00000000-0000-0000-0000-000000000000"
}

View File

@ -92,6 +92,8 @@ export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
"stripe_product_i_d" varchar,
"seo_title" varchar,
"seo_description" varchar,
"stripe_i_d" varchar,
"skip_sync" boolean,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"_status" "enum_products_status" DEFAULT 'draft'
@ -127,6 +129,8 @@ export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
"version_stripe_product_i_d" varchar,
"version_seo_title" varchar,
"version_seo_description" varchar,
"version_stripe_i_d" varchar,
"version_skip_sync" boolean,
"version_updated_at" timestamp(3) with time zone,
"version_created_at" timestamp(3) with time zone,
"version__status" "enum__products_v_version_status" DEFAULT 'draft',

View File

@ -1,9 +1,9 @@
import * as migration_20260421_083912_initial from './20260421_083912_initial';
import * as migration_20260421_085445_initial from './20260421_085445_initial';
export const migrations = [
{
up: migration_20260421_083912_initial.up,
down: migration_20260421_083912_initial.down,
name: '20260421_083912_initial'
up: migration_20260421_085445_initial.up,
down: migration_20260421_085445_initial.down,
name: '20260421_085445_initial'
},
];