merge: fix(BE): Set serverRules to text (!1209)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1209 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
commit
49c4c2b9ad
2 changed files with 15 additions and 2 deletions
14
packages/backend/migration/1754754816000-metaRulesLength.js
Normal file
14
packages/backend/migration/1754754816000-metaRulesLength.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: Lillychan and other Sharkey contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export class MetaRulesLength1754754816000 {
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "serverRules" TYPE TEXT`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "serverRules" TYPE character varying(280)`);
|
||||
}
|
||||
}
|
||||
|
|
@ -633,8 +633,7 @@ export class MiMeta {
|
|||
})
|
||||
public policies: Record<string, any>;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 280,
|
||||
@Column('text', {
|
||||
array: true,
|
||||
default: '{}',
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue