@vrplatform/kysely 1.3.45-4468 → 1.3.45-4472
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.
- package/build/migrations/0000000000055-outbound-webhooks-v1.ts +0 -63
- package/build/migrations/0000000000056-connection-webhook-version.ts +18 -0
- package/build/migrations/0000000000057-sync-webhook-version.ts +18 -0
- package/build/migrations/0000000000058-reservation-webhook-version.ts +18 -0
- package/build/migrations/0000000000059-listing-webhook-version.ts +18 -0
- package/build/migrations/0000000000060-owner-statement-webhook-version.ts +19 -0
- package/build/migrations/0000000000061-transaction-webhook-version.ts +18 -0
- package/package.json +1 -1
|
@@ -106,38 +106,6 @@ export async function up(db: Kysely<any>): Promise<void> {
|
|
|
106
106
|
)
|
|
107
107
|
`.execute(db);
|
|
108
108
|
|
|
109
|
-
await sql`
|
|
110
|
-
alter table public.connection
|
|
111
|
-
add column webhook_version bigint not null default 1,
|
|
112
|
-
add constraint connection_webhook_version_check check (webhook_version > 0)
|
|
113
|
-
`.execute(db);
|
|
114
|
-
await sql`
|
|
115
|
-
alter table core.sync
|
|
116
|
-
add column webhook_version bigint not null default 1,
|
|
117
|
-
add constraint sync_webhook_version_check check (webhook_version > 0)
|
|
118
|
-
`.execute(db);
|
|
119
|
-
await sql`
|
|
120
|
-
alter table public.reservation
|
|
121
|
-
add column webhook_version bigint not null default 1,
|
|
122
|
-
add constraint reservation_webhook_version_check check (webhook_version > 0)
|
|
123
|
-
`.execute(db);
|
|
124
|
-
await sql`
|
|
125
|
-
alter table public.listing
|
|
126
|
-
add column webhook_version bigint not null default 1,
|
|
127
|
-
add constraint listing_webhook_version_check check (webhook_version > 0)
|
|
128
|
-
`.execute(db);
|
|
129
|
-
await sql`
|
|
130
|
-
alter table public.owner_statement
|
|
131
|
-
add column webhook_version bigint not null default 1,
|
|
132
|
-
add constraint owner_statement_webhook_version_check
|
|
133
|
-
check (webhook_version > 0)
|
|
134
|
-
`.execute(db);
|
|
135
|
-
await sql`
|
|
136
|
-
alter table accounting.transaction
|
|
137
|
-
add column webhook_version bigint not null default 1,
|
|
138
|
-
add constraint transaction_webhook_version_check check (webhook_version > 0)
|
|
139
|
-
`.execute(db);
|
|
140
|
-
|
|
141
109
|
await sql`
|
|
142
110
|
drop index webhook.webhook_delivery_recovery_idx
|
|
143
111
|
`.execute(db);
|
|
@@ -166,37 +134,6 @@ export async function up(db: Kysely<any>): Promise<void> {
|
|
|
166
134
|
}
|
|
167
135
|
|
|
168
136
|
export async function down(db: Kysely<any>): Promise<void> {
|
|
169
|
-
await sql`
|
|
170
|
-
alter table accounting.transaction
|
|
171
|
-
drop constraint transaction_webhook_version_check,
|
|
172
|
-
drop column webhook_version
|
|
173
|
-
`.execute(db);
|
|
174
|
-
await sql`
|
|
175
|
-
alter table public.owner_statement
|
|
176
|
-
drop constraint owner_statement_webhook_version_check,
|
|
177
|
-
drop column webhook_version
|
|
178
|
-
`.execute(db);
|
|
179
|
-
await sql`
|
|
180
|
-
alter table public.listing
|
|
181
|
-
drop constraint listing_webhook_version_check,
|
|
182
|
-
drop column webhook_version
|
|
183
|
-
`.execute(db);
|
|
184
|
-
await sql`
|
|
185
|
-
alter table public.reservation
|
|
186
|
-
drop constraint reservation_webhook_version_check,
|
|
187
|
-
drop column webhook_version
|
|
188
|
-
`.execute(db);
|
|
189
|
-
await sql`
|
|
190
|
-
alter table core.sync
|
|
191
|
-
drop constraint sync_webhook_version_check,
|
|
192
|
-
drop column webhook_version
|
|
193
|
-
`.execute(db);
|
|
194
|
-
await sql`
|
|
195
|
-
alter table public.connection
|
|
196
|
-
drop constraint connection_webhook_version_check,
|
|
197
|
-
drop column webhook_version
|
|
198
|
-
`.execute(db);
|
|
199
|
-
|
|
200
137
|
await sql`drop table webhook.rate_limit`.execute(db);
|
|
201
138
|
await sql`
|
|
202
139
|
alter table webhook.delivery_attempt add column subscription_secret_id uuid
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Kysely } from 'kysely';
|
|
2
|
+
import { sql } from 'kysely';
|
|
3
|
+
|
|
4
|
+
export async function up(db: Kysely<any>): Promise<void> {
|
|
5
|
+
await sql`
|
|
6
|
+
alter table public.connection
|
|
7
|
+
add column webhook_version bigint not null default 1,
|
|
8
|
+
add constraint connection_webhook_version_check check (webhook_version > 0)
|
|
9
|
+
`.execute(db);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function down(db: Kysely<any>): Promise<void> {
|
|
13
|
+
await sql`
|
|
14
|
+
alter table public.connection
|
|
15
|
+
drop constraint connection_webhook_version_check,
|
|
16
|
+
drop column webhook_version
|
|
17
|
+
`.execute(db);
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Kysely } from 'kysely';
|
|
2
|
+
import { sql } from 'kysely';
|
|
3
|
+
|
|
4
|
+
export async function up(db: Kysely<any>): Promise<void> {
|
|
5
|
+
await sql`
|
|
6
|
+
alter table core.sync
|
|
7
|
+
add column webhook_version bigint not null default 1,
|
|
8
|
+
add constraint sync_webhook_version_check check (webhook_version > 0)
|
|
9
|
+
`.execute(db);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function down(db: Kysely<any>): Promise<void> {
|
|
13
|
+
await sql`
|
|
14
|
+
alter table core.sync
|
|
15
|
+
drop constraint sync_webhook_version_check,
|
|
16
|
+
drop column webhook_version
|
|
17
|
+
`.execute(db);
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Kysely } from 'kysely';
|
|
2
|
+
import { sql } from 'kysely';
|
|
3
|
+
|
|
4
|
+
export async function up(db: Kysely<any>): Promise<void> {
|
|
5
|
+
await sql`
|
|
6
|
+
alter table public.reservation
|
|
7
|
+
add column webhook_version bigint not null default 1,
|
|
8
|
+
add constraint reservation_webhook_version_check check (webhook_version > 0)
|
|
9
|
+
`.execute(db);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function down(db: Kysely<any>): Promise<void> {
|
|
13
|
+
await sql`
|
|
14
|
+
alter table public.reservation
|
|
15
|
+
drop constraint reservation_webhook_version_check,
|
|
16
|
+
drop column webhook_version
|
|
17
|
+
`.execute(db);
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Kysely } from 'kysely';
|
|
2
|
+
import { sql } from 'kysely';
|
|
3
|
+
|
|
4
|
+
export async function up(db: Kysely<any>): Promise<void> {
|
|
5
|
+
await sql`
|
|
6
|
+
alter table public.listing
|
|
7
|
+
add column webhook_version bigint not null default 1,
|
|
8
|
+
add constraint listing_webhook_version_check check (webhook_version > 0)
|
|
9
|
+
`.execute(db);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function down(db: Kysely<any>): Promise<void> {
|
|
13
|
+
await sql`
|
|
14
|
+
alter table public.listing
|
|
15
|
+
drop constraint listing_webhook_version_check,
|
|
16
|
+
drop column webhook_version
|
|
17
|
+
`.execute(db);
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Kysely } from 'kysely';
|
|
2
|
+
import { sql } from 'kysely';
|
|
3
|
+
|
|
4
|
+
export async function up(db: Kysely<any>): Promise<void> {
|
|
5
|
+
await sql`
|
|
6
|
+
alter table public.owner_statement
|
|
7
|
+
add column webhook_version bigint not null default 1,
|
|
8
|
+
add constraint owner_statement_webhook_version_check
|
|
9
|
+
check (webhook_version > 0)
|
|
10
|
+
`.execute(db);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export async function down(db: Kysely<any>): Promise<void> {
|
|
14
|
+
await sql`
|
|
15
|
+
alter table public.owner_statement
|
|
16
|
+
drop constraint owner_statement_webhook_version_check,
|
|
17
|
+
drop column webhook_version
|
|
18
|
+
`.execute(db);
|
|
19
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Kysely } from 'kysely';
|
|
2
|
+
import { sql } from 'kysely';
|
|
3
|
+
|
|
4
|
+
export async function up(db: Kysely<any>): Promise<void> {
|
|
5
|
+
await sql`
|
|
6
|
+
alter table accounting.transaction
|
|
7
|
+
add column webhook_version bigint not null default 1,
|
|
8
|
+
add constraint transaction_webhook_version_check check (webhook_version > 0)
|
|
9
|
+
`.execute(db);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export async function down(db: Kysely<any>): Promise<void> {
|
|
13
|
+
await sql`
|
|
14
|
+
alter table accounting.transaction
|
|
15
|
+
drop constraint transaction_webhook_version_check,
|
|
16
|
+
drop column webhook_version
|
|
17
|
+
`.execute(db);
|
|
18
|
+
}
|