feat: wip sync standard id (#4373)
* feat: wip sync standard id feat: implement standardId for sync command * fix: rebase * fix: tests * fix: deterministic uuid * fix: sync custom not working * fix: create custom not adding standardId * fix: readability
This commit is contained in:
@ -0,0 +1,23 @@
|
||||
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||||
|
||||
export class AddStandardId1709894431938 implements MigrationInterface {
|
||||
name = 'AddStandardId1709894431938';
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."objectMetadata" ADD "standardId" uuid`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."fieldMetadata" ADD "standardId" uuid`,
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."fieldMetadata" DROP COLUMN "standardId"`,
|
||||
);
|
||||
await queryRunner.query(
|
||||
`ALTER TABLE "metadata"."objectMetadata" DROP COLUMN "standardId"`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user