1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20240125085703-users-table-increae-image-url-size.js
andreas-unleash 8f3275ee40
chore: change users image_url column to text (#6031)
Change the image_url column to text

Closes #
https://github.com/orgs/Unleash/projects/8/views/1?pane=issue&itemId=51021534

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-01-25 11:40:18 +02:00

20 lines
353 B
JavaScript

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,
);
};