From 44152f876df7eff1395853564e3f043ee371c388 Mon Sep 17 00:00:00 2001 From: eternal-flame-AD Date: Sun, 3 Nov 2024 00:57:57 -0500 Subject: [PATCH] revert migration Signed-off-by: eternal-flame-AD --- .../1730447062213-logicalReplicatePublish.js | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 packages/backend/migration/1730447062213-logicalReplicatePublish.js diff --git a/packages/backend/migration/1730447062213-logicalReplicatePublish.js b/packages/backend/migration/1730447062213-logicalReplicatePublish.js deleted file mode 100644 index 358635d876..0000000000 --- a/packages/backend/migration/1730447062213-logicalReplicatePublish.js +++ /dev/null @@ -1,26 +0,0 @@ -const { MigrationInterface, QueryRunner } = require("typeorm"); - -module.exports = class LogicalReplicatePublish1730447062213 { - - async up(queryRunner) { - await queryRunner.query( - [ - "CREATE PUBLICATION misskey_public", - "FOR TABLES IN SCHEMA public", - "WITH (publish = 'insert, update, delete')", - ].join(' ')); - - await queryRunner.query( - [ - "ALTER PUBLICATION misskey_public", - "DROP TABLE auth_session, password_reset_request, access_token" - ].join(' ')); - } - - async down(queryRunner) { - await queryRunner.query( - [ - "DROP PUBLICATION misskey_public" - ].join(' ')); - } -}