Skip to content

Commit

Permalink
chore: remove unused table
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jan 2, 2023
1 parent 3c70c0e commit af1c22b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/database/entity/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,19 +220,4 @@ export const VariableURL = new EntitySchema<Readonly<VariableURLInterface>>({
joinColumn: { name: 'variableId' },
},
},
});

export const VariableWatch = new EntitySchema<Readonly<VariableWatchInterface>>({
name: 'variable_watch',
columns: {
id: {
type: Number,
primary: true,
generated: 'increment',
},
variableId: {
type: String, nullable: false, name: 'variableId',
},
order: { type: Number },
},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class removeVariableWatch1666167883934 implements MigrationInterface {
name = 'removeVariableWatch1666167883934';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP TABLE \`variable_watch\``, undefined);
}

public async down(queryRunner: QueryRunner): Promise<void> {
return;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class removeVariableWatch1666167883934 implements MigrationInterface {
name = 'removeVariableWatch1666167883934';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP TABLE "variable_watch"`, undefined);
}

public async down(queryRunner: QueryRunner): Promise<void> {
return;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class removeVariableWatch1666167883934 implements MigrationInterface {
name = 'removeVariableWatch1666167883934';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP TABLE "variable_watch"`, undefined);
}

public async down(queryRunner: QueryRunner): Promise<void> {
return;
}

}

0 comments on commit af1c22b

Please sign in to comment.