protcol table services

This commit is contained in:
Julian Krauser 2024-10-11 14:44:09 +02:00
parent dd74005043
commit 475a13ce36
19 changed files with 502 additions and 10 deletions

View file

@ -0,0 +1,15 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class ProtocolTableRename1728645611919 implements MigrationInterface {
name = "ProtocolTableRename1728645611919";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.renameTable("protocol_decisions", "protocol_decision");
await queryRunner.renameTable("protocol_votings", "protocol_voting");
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.renameTable("protocol_decision", "protocol_decisions");
await queryRunner.renameTable("protocol_voting", "protocol_votings");
}
}