feat: isIndexable
This commit is contained in:
parent
53f2089116
commit
9cd2759769
15 changed files with 48 additions and 4 deletions
11
packages/backend/migration/1699376974000-isIndexable.js
Normal file
11
packages/backend/migration/1699376974000-isIndexable.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
export class IsIndexable1699376974000 {
|
||||
name = 'IsIndexable1699376974000'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" ADD "isIndexable" boolean NOT NULL DEFAULT true`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "isIndexable"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue