protcol table services
This commit is contained in:
parent
dd74005043
commit
475a13ce36
19 changed files with 502 additions and 10 deletions
15
src/migrations/1728645611919-protocolTableRename.ts
Normal file
15
src/migrations/1728645611919-protocolTableRename.ts
Normal 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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue