Skip to content

Commit

Permalink
chore: change users image_url column to text (#6031)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
andreas-unleash committed Jan 25, 2024
1 parent 89bea0d commit 8f3275e
Showing 1 changed file with 19 additions and 0 deletions.
@@ -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,
);
};

0 comments on commit 8f3275e

Please sign in to comment.