Skip to content

Commit

Permalink
✨ add displayOrder column to posts_gdocs_variables_faqs table
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Oct 16, 2023
1 parent fc2f6b2 commit 934b1fe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions db/migration/1697464705200-PostsGdocsLinksDisplayOrder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from "typeorm"

export class PostsGdocsLinksDisplayOrder1697464705200
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(
`ALTER TABLE posts_gdocs_variables_faqs
ADD COLUMN displayOrder SMALLINT NOT NULL DEFAULT 0;`
)
}

public async down(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(
`ALTER TABLE posts_gdocs_variables_faqs
DROP COLUMN display_order;`
)
}
}

0 comments on commit 934b1fe

Please sign in to comment.