removed migration file

This commit is contained in:
gsmithun4 2024-08-08 12:12:05 +05:30
parent d624a479b8
commit 00ef2387c0
2 changed files with 1 additions and 19 deletions

View file

@ -1,17 +0,0 @@
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
export class AddTypeColumnToApps1722437531652 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumn(
'apps',
new TableColumn({
name: 'type',
type: 'varchar',
isNullable: false,
default: "'front-end'",
})
);
}
public async down(queryRunner: QueryRunner): Promise<void> {}
}

View file

@ -25,8 +25,7 @@ export class App extends BaseEntity {
@Column({ name: 'name' })
name: string;
@Column({ name: 'type' })
type: string;
type: string = 'front-end';
@Column({ name: 'slug', unique: true })
slug: string;