logical replicate DB (stage 1) #2

Merged
yume merged 6 commits from db-logical-replicate into master 2024-11-06 15:32:55 -06:00
Showing only changes of commit 44152f876d - Show all commits

View file

@ -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(' '));
}
}