mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-01 02:17:20 +00:00
16 lines
463 B
TypeScript
16 lines
463 B
TypeScript
|
|
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
||
|
|
|
||
|
|
export class OrganizationEnableSignup1650455299630 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.addColumns('organizations', [
|
||
|
|
new TableColumn({
|
||
|
|
name: 'enable_sign_up',
|
||
|
|
type: 'boolean',
|
||
|
|
default: false,
|
||
|
|
}),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
||
|
|
}
|