Skip to content

Commit

Permalink
Merge pull request #3784 from owid/remove-entities-displayname
Browse files Browse the repository at this point in the history
🐝 Remove `displayName` field on entities
  • Loading branch information
larsyencken authored Jul 10, 2024
2 parents 6d389fc + 2e1c7c6 commit 8c310f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions db/migration/1720038601815-RemoveEntitiesDisplayName.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from "typeorm"

export class RemoveEntitiesDisplayName1720038601815
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE entities
DROP COLUMN displayName
`)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE entities
ADD COLUMN displayName varchar(255) COLLATE utf8mb4_0900_as_cs NOT NULL
`)
}
}

0 comments on commit 8c310f3

Please sign in to comment.