-
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 #4148 from thematters/develop
Release: v5.5.0
- Loading branch information
Showing
76 changed files
with
2,665 additions
and
1,198 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const table = 'article' | ||
|
||
exports.up = async (knex) => { | ||
await knex.schema.table(table, (t) => { | ||
t.float('spam_score').nullable() | ||
t.boolean('is_spam').nullable() | ||
|
||
t.index('spam_score') | ||
t.index('is_spam') | ||
}) | ||
} | ||
|
||
exports.down = async (knex) => { | ||
await knex.schema.table(table, (t) => { | ||
t.dropIndex('spam_score') | ||
t.dropIndex('is_spam') | ||
|
||
t.dropColumn('spam_score') | ||
t.dropColumn('is_spam') | ||
}) | ||
} |
14 changes: 14 additions & 0 deletions
14
db/migrations/20240806204729_alter_feature_flag_add_value.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,14 @@ | ||
const table = 'feature_flag' | ||
|
||
exports.up = async (knex) => { | ||
await knex.schema.table(table, (t) => { | ||
t.float('value').nullable() | ||
}) | ||
await knex(table).insert({ name: 'spam_detection', flag: 'off', value: 0.5 }) | ||
} | ||
|
||
exports.down = async (knex) => { | ||
await knex.schema.table(table, (t) => { | ||
t.dropColumn('value') | ||
}) | ||
} |
13 changes: 13 additions & 0 deletions
13
db/migrations/20240816160450_alter_campaign_article_campaign_stage_id.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,13 @@ | ||
const table = 'campaign_article' | ||
|
||
exports.up = async (knex) => { | ||
await knex.schema.alterTable(table, (t) => { | ||
t.bigInteger('campaign_stage_id').unsigned().nullable().alter() | ||
}) | ||
} | ||
|
||
exports.down = async (knex) => { | ||
await knex.schema.alterTable(table, (t) => { | ||
t.bigInteger('campaign_stage_id').unsigned().notNullable().alter() | ||
}) | ||
} |
13 changes: 13 additions & 0 deletions
13
db/migrations/20240816163354_alter_campaign_description.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,13 @@ | ||
const table = 'campaign' | ||
|
||
exports.up = async (knex) => { | ||
await knex.schema.alterTable(table, (t) => { | ||
t.text('description').nullable().alter() | ||
}) | ||
} | ||
|
||
exports.down = async (knex) => { | ||
await knex.schema.alterTable(table, (t) => { | ||
t.text('description').notNullable().alter() | ||
}) | ||
} |
14 changes: 14 additions & 0 deletions
14
db/migrations/20240819114209_alter_campaign_stage_add_description.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,14 @@ | ||
const table = 'campaign_stage' | ||
const column = 'description' | ||
|
||
exports.up = async (knex) => { | ||
await knex.schema.table(table, (t) => { | ||
t.text(column).notNullable().defaultTo('') | ||
}) | ||
} | ||
|
||
exports.down = async (knex) => { | ||
await knex.schema.table(table, (t) => { | ||
t.dropColumn(column) | ||
}) | ||
} |
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
Oops, something went wrong.