Skip to content

Commit

Permalink
chore: change users image_url column to text
Browse files Browse the repository at this point in the history
Signed-off-by: andreas-unleash <[email protected]>
  • Loading branch information
andreas-unleash committed Jan 25, 2024
1 parent 89bea0d commit dbf554b
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 dbf554b

Please sign in to comment.