Skip to content

Commit

Permalink
Merge pull request #13 from Jai-Marothiya/fix/photo-column
Browse files Browse the repository at this point in the history
Increased photo string size from 255 char to 2048
  • Loading branch information
Jai-Marothiya authored Aug 12, 2024
2 parents eeef1a9 + e08e65e commit 722acb0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions server/src/migrations/20240812190936_update_photo_column.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exports.up = function (knex) {
return knex.schema.alterTable("users", function (table) {
table.string("photo", 2048).alter(); // Increase the size to 2048 characters
});
};

exports.down = function (knex) {
return knex.schema.alterTable("users", function (table) {
table.string("photo", 255).alter(); // Revert to the previous size of 255 characters
});
};

0 comments on commit 722acb0

Please sign in to comment.