We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fe8aeb commit 717be79Copy full SHA for 717be79
src/migration/1768995735317-DebeziumReplicationAdhoc.ts
@@ -0,0 +1,24 @@
1
+import { MigrationInterface, QueryRunner } from "typeorm";
2
+
3
+export class DebeziumReplicationAdhoc1768995735317 implements MigrationInterface {
4
+ public async up(queryRunner: QueryRunner): Promise<void> {
5
+ await queryRunner.query(/* sql */`
6
+ DROP PUBLICATION dbz_publication;
7
+ `);
8
9
+ CREATE PUBLICATION dbz_publication
10
+ FOR ALL TABLES
11
+ WITH (publish_generated_columns = stored);
12
13
+ }
14
15
+ public async down(queryRunner: QueryRunner): Promise<void> {
16
17
18
19
20
21
+ FOR ALL TABLES;
22
23
24
+}
0 commit comments