Increase bio char limit
This commit is contained in:
parent
bd11dabf89
commit
4af3b96746
4 changed files with 17 additions and 4 deletions
13
packages/backend/migration/1709773838671-increaseBioLimit.js
Normal file
13
packages/backend/migration/1709773838671-increaseBioLimit.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
export class IncreaseBioLimit1709773838671 {
|
||||
name = "IncreaseBioLimit1709773838671";
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE user_profile ALTER COLUMN description TYPE text;`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE user_profile ALTER COLUMN description TYPE varchar(2048) USING left(description, 2048);`);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue