generated from bastian/boilerplate
Initial commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import type { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class AddRoleDescription1720000002000 implements MigrationInterface {
|
||||
name = 'AddRoleDescription1720000002000';
|
||||
|
||||
async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`
|
||||
ALTER TABLE roles
|
||||
ADD description varchar(255) NOT NULL DEFAULT ''
|
||||
`);
|
||||
}
|
||||
|
||||
async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query('ALTER TABLE roles DROP COLUMN description');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user