Skip to content

Commit 5158f0c

Browse files
committed
fix: remove dbname from sites and apis export config
The dbname column has DEFAULT current_database() which captures the random test database name during introspection, causing non-deterministic output in generated migration files (apis.sql, sites.sql). By removing dbname from the export config, the generated INSERT statements won't include this column, and it will use its DEFAULT at deploy time.
1 parent 048188f commit 5158f0c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pgpm/core/src/export/export-meta.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,7 @@ const config: Record<string, TableConfig> = {
368368
og_image: 'image',
369369
favicon: 'upload',
370370
apple_touch_icon: 'image',
371-
logo: 'image',
372-
dbname: 'text'
371+
logo: 'image'
373372
}
374373
},
375374
apis: {
@@ -379,7 +378,6 @@ const config: Record<string, TableConfig> = {
379378
id: 'uuid',
380379
database_id: 'uuid',
381380
name: 'text',
382-
dbname: 'text',
383381
is_public: 'boolean',
384382
role_name: 'text',
385383
anon_role: 'text'

0 commit comments

Comments
 (0)