Replace shouldSyncNameAndLabel with isLabelSyncedWithName (#8067)
For consistency. This was not deployed yet so allowing myself just to rename everything, meaning developers will need to reset their db.
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class AddShouldSyncLabelAndName1728579416430
|
||||
export class AddIsLabelSyncedWithName1728579416430
|
||||
implements MigrationInterface
|
||||
{
|
||||
name = 'AddShouldSyncLabelAndName1728579416430';
|
||||
name = 'AddIsLabelSyncedWithName1728579416430';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."objectMetadata" ADD "shouldSyncLabelAndName" boolean NOT NULL DEFAULT false`,
|
||||
`ALTER TABLE "metadata"."objectMetadata" ADD "isLabelSyncedWithName" boolean NOT NULL DEFAULT false`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."objectMetadata" DROP COLUMN "shouldSyncLabelAndName"`,
|
||||
`ALTER TABLE "metadata"."objectMetadata" DROP COLUMN "isLabelSyncedWithName"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user