Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ add ordering to origins_variables table #2871

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/migration/1697464705200-PostsGdocsLinksDisplayOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class PostsGdocsLinksDisplayOrder1697464705200
public async down(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(
`ALTER TABLE posts_gdocs_variables_faqs
DROP COLUMN display_order;`
DROP COLUMN displayOrder;`
)
}
}
2 changes: 1 addition & 1 deletion db/migration/1698301390787-TopicTagsDisplayOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class TopicTagsDisplayOrder1698301390787 implements MigrationInterface {
public async down(queryRunner: QueryRunner): Promise<void> {
queryRunner.query(
`ALTER TABLE tags_variables_topic_tags
DROP COLUMN display_order;`
DROP COLUMN displayOrder;`
)
}
}
19 changes: 19 additions & 0 deletions db/migration/1698655095475-OriginsVariablesDisplayOrder.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from "typeorm"

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

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