-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3802 from thematters/feat/remove-unused-fields-of…
…-article-table feat: remove unused columns from article and draft table
- Loading branch information
Showing
12 changed files
with
88 additions
and
66 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
db/migrations/20240130120100_alter_article_and_draft_drop_fields.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
exports.up = async (knex) => { | ||
await knex.schema.table('article', (t) => { | ||
t.dropColumn('uuid') | ||
t.dropColumn('title') | ||
t.dropColumn('slug') | ||
t.dropColumn('cover') | ||
t.dropColumn('upstream_id') | ||
t.dropColumn('live') | ||
t.dropColumn('public') | ||
t.dropColumn('content') | ||
t.dropColumn('summary') | ||
t.dropColumn('language') | ||
t.dropColumn('data_hash') | ||
t.dropColumn('media_hash') | ||
t.dropColumn('iscn_id') | ||
t.dropColumn('draft_id') | ||
}) | ||
|
||
await knex.schema.table('draft', (t) => { | ||
t.dropColumn('uuid') | ||
t.dropColumn('summary_customized') | ||
t.dropColumn('word_count') | ||
t.dropColumn('language') | ||
t.dropColumn('data_hash') | ||
t.dropColumn('media_hash') | ||
t.dropColumn('prev_draft_id') | ||
t.dropColumn('iscn_id') | ||
t.dropColumn('pin_state') | ||
t.dropColumn('sensitive_by_admin') | ||
}) | ||
} | ||
|
||
exports.down = async () => { | ||
// do nothing | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters