mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-25 23:47:17 +00:00
18 lines
489 B
TypeScript
18 lines
489 B
TypeScript
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
|
|
|
export class AddRoleToUser1643117336290 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.addColumn(
|
|
'users',
|
|
new TableColumn({
|
|
name: 'role',
|
|
type: 'varchar',
|
|
default: "''",
|
|
})
|
|
);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.dropColumn('users', 'role');
|
|
}
|
|
}
|