@vrplatform/kysely 1.3.41-4244 → 1.3.41-4246
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -60,6 +60,10 @@ export async function down(db: Kysely<any>): Promise<void> {
|
|
|
60
60
|
where data_region = 'hostaway';
|
|
61
61
|
`.execute(db);
|
|
62
62
|
|
|
63
|
+
// The update queues deferred FK trigger events; fire them before the
|
|
64
|
+
// ALTER or Postgres rejects it with "pending trigger events".
|
|
65
|
+
await sql`set constraints all immediate;`.execute(db);
|
|
66
|
+
|
|
63
67
|
await sql`
|
|
64
68
|
alter table public.tenant
|
|
65
69
|
add constraint tenant_data_region_check
|