Skip to content

Commit

Permalink
refactor: change linkType enum
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Dec 17, 2024
1 parent d03a0e4 commit 25628eb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions db/migration/1734454799588-PostsGdocsLinksAddNarrativeCharts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { MigrationInterface, QueryRunner } from "typeorm"

export class PostsGdocsLinksAddNarrativeCharts1734454799588
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE posts_gdocs_links
MODIFY linkType ENUM ('gdoc', 'url', 'grapher', 'explorer', 'narrative-chart') NULL`)
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE posts_gdocs_links
MODIFY linkType ENUM ('gdoc', 'url', 'grapher', 'explorer') NULL`)
}
}

0 comments on commit 25628eb

Please sign in to comment.