diff --git a/src/migrations/20240125085703-users-table-increae-image-url-size.js b/src/migrations/20240125085703-users-table-increae-image-url-size.js new file mode 100644 index 000000000000..6c521d28fe8e --- /dev/null +++ b/src/migrations/20240125085703-users-table-increae-image-url-size.js @@ -0,0 +1,19 @@ +exports.up = function (db, cb) { + db.runSql( + ` + ALTER TABLE users + ALTER COLUMN image_url TYPE text; + `, + cb, + ); +}; + +exports.down = function (db, cb) { + db.runSql( + ` + ALTER TABLE users + ALTER COLUMN image_url TYPE VARCHAR(255); + `, + cb, + ); +};