Skip to content

Commit 32f0f34

Browse files
authored
fix(templates): vercel migrations (#9730)
1 parent 2ef7de5 commit 32f0f34

File tree

3 files changed

+64
-6
lines changed

3 files changed

+64
-6
lines changed

Diff for: templates/with-vercel-website/src/migrations/20241203_192242_initial.json renamed to templates/with-vercel-website/src/migrations/20241204_024245_initial.json

+52-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "4cf463a4-5305-48e4-9938-2b1ffea91fda",
2+
"id": "cd3bdd6a-6b91-41eb-86ea-c2542d3d852d",
33
"prevId": "00000000-0000-0000-0000-000000000000",
44
"version": "7",
55
"dialect": "postgresql",
@@ -4139,6 +4139,42 @@
41394139
"type": "varchar",
41404140
"primaryKey": false,
41414141
"notNull": false
4142+
},
4143+
"sizes_og_url": {
4144+
"name": "sizes_og_url",
4145+
"type": "varchar",
4146+
"primaryKey": false,
4147+
"notNull": false
4148+
},
4149+
"sizes_og_width": {
4150+
"name": "sizes_og_width",
4151+
"type": "numeric",
4152+
"primaryKey": false,
4153+
"notNull": false
4154+
},
4155+
"sizes_og_height": {
4156+
"name": "sizes_og_height",
4157+
"type": "numeric",
4158+
"primaryKey": false,
4159+
"notNull": false
4160+
},
4161+
"sizes_og_mime_type": {
4162+
"name": "sizes_og_mime_type",
4163+
"type": "varchar",
4164+
"primaryKey": false,
4165+
"notNull": false
4166+
},
4167+
"sizes_og_filesize": {
4168+
"name": "sizes_og_filesize",
4169+
"type": "numeric",
4170+
"primaryKey": false,
4171+
"notNull": false
4172+
},
4173+
"sizes_og_filename": {
4174+
"name": "sizes_og_filename",
4175+
"type": "varchar",
4176+
"primaryKey": false,
4177+
"notNull": false
41424178
}
41434179
},
41444180
"indexes": {
@@ -4276,6 +4312,21 @@
42764312
"concurrently": false,
42774313
"method": "btree",
42784314
"with": {}
4315+
},
4316+
"media_sizes_og_sizes_og_filename_idx": {
4317+
"name": "media_sizes_og_sizes_og_filename_idx",
4318+
"columns": [
4319+
{
4320+
"expression": "sizes_og_filename",
4321+
"isExpression": false,
4322+
"asc": true,
4323+
"nulls": "last"
4324+
}
4325+
],
4326+
"isUnique": false,
4327+
"concurrently": false,
4328+
"method": "btree",
4329+
"with": {}
42794330
}
42804331
},
42814332
"foreignKeys": {},

Diff for: templates/with-vercel-website/src/migrations/20241203_192242_initial.ts renamed to templates/with-vercel-website/src/migrations/20241204_024245_initial.ts

+8-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,13 @@ export async function up({ payload, req }: MigrateUpArgs): Promise<void> {
387387
"sizes_xlarge_height" numeric,
388388
"sizes_xlarge_mime_type" varchar,
389389
"sizes_xlarge_filesize" numeric,
390-
"sizes_xlarge_filename" varchar
390+
"sizes_xlarge_filename" varchar,
391+
"sizes_og_url" varchar,
392+
"sizes_og_width" numeric,
393+
"sizes_og_height" numeric,
394+
"sizes_og_mime_type" varchar,
395+
"sizes_og_filesize" numeric,
396+
"sizes_og_filename" varchar
391397
);
392398
393399
CREATE TABLE IF NOT EXISTS "categories_breadcrumbs" (
@@ -1356,6 +1362,7 @@ export async function up({ payload, req }: MigrateUpArgs): Promise<void> {
13561362
CREATE INDEX IF NOT EXISTS "media_sizes_medium_sizes_medium_filename_idx" ON "media" USING btree ("sizes_medium_filename");
13571363
CREATE INDEX IF NOT EXISTS "media_sizes_large_sizes_large_filename_idx" ON "media" USING btree ("sizes_large_filename");
13581364
CREATE INDEX IF NOT EXISTS "media_sizes_xlarge_sizes_xlarge_filename_idx" ON "media" USING btree ("sizes_xlarge_filename");
1365+
CREATE INDEX IF NOT EXISTS "media_sizes_og_sizes_og_filename_idx" ON "media" USING btree ("sizes_og_filename");
13591366
CREATE INDEX IF NOT EXISTS "categories_breadcrumbs_order_idx" ON "categories_breadcrumbs" USING btree ("_order");
13601367
CREATE INDEX IF NOT EXISTS "categories_breadcrumbs_parent_id_idx" ON "categories_breadcrumbs" USING btree ("_parent_id");
13611368
CREATE INDEX IF NOT EXISTS "categories_breadcrumbs_doc_idx" ON "categories_breadcrumbs" USING btree ("doc_id");
+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import * as migration_20241203_192242_initial from './20241203_192242_initial'
1+
import * as migration_20241204_024245_initial from './20241204_024245_initial'
22

33
export const migrations = [
44
{
5-
up: migration_20241203_192242_initial.up,
6-
down: migration_20241203_192242_initial.down,
7-
name: '20241203_192242_initial',
5+
up: migration_20241204_024245_initial.up,
6+
down: migration_20241204_024245_initial.down,
7+
name: '20241204_024245_initial',
88
},
99
]

0 commit comments

Comments
 (0)