Skip to content

Commit

Permalink
fix: increase statuses.text column to 1024 symbols (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
sky3d authored May 5, 2022
1 parent af67e3e commit f895167
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/migrations/20220428115740_statuses-text-1024.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const kTable = 'statuses';
const kColumn = 'text';

exports.up = async (knex) => {
return knex.schema.alterTable(kTable, (table) => {
table.string(kColumn, 1024).alter();
});
};

exports.down = async () => {
return knex.schema.alterTable(kTable, (table) => {
table.string(kColumn, 512).alter();
});
};

0 comments on commit f895167

Please sign in to comment.