summary refs log tree commit diff
path: root/src/util/migration/postgres
diff options
context:
space:
mode:
authorTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-31 12:17:02 +0200
committerTomatoCake <60300461+DEVTomatoCake@users.noreply.github.com>2024-08-31 12:17:02 +0200
commit73ceee4ab0fda8a476f3ee81327c9aa9b53cade9 (patch)
treedeb5eb11a1b2d2aed029a6d7a6bcaf6535e08275 /src/util/migration/postgres
parentMerge pull request #1206 from DEVTomatoCake/feat/more-application-properties (diff)
downloadserver-ts-73ceee4ab0fda8a476f3ee81327c9aa9b53cade9.tar.xz
Fix new app property migration disallowing NULL
Diffstat (limited to 'src/util/migration/postgres')
-rw-r--r--src/util/migration/postgres/1725090962922-applicationProperties.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/migration/postgres/1725090962922-applicationProperties.ts b/src/util/migration/postgres/1725090962922-applicationProperties.ts

index d43a02771..8e3ea4669 100644 --- a/src/util/migration/postgres/1725090962922-applicationProperties.ts +++ b/src/util/migration/postgres/1725090962922-applicationProperties.ts
@@ -5,10 +5,10 @@ export class ApplicationProperties1725090962922 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise<void> { await queryRunner.query( - "ALTER TABLE applications ADD COLUMN guild_id TEXT NOT NULL", + "ALTER TABLE applications ADD COLUMN guild_id TEXT NULL DEFAULT NULL", ); await queryRunner.query( - "ALTER TABLE applications ADD COLUMN custom_install_url TEXT NOT NULL", + "ALTER TABLE applications ADD COLUMN custom_install_url TEXT NULL DEFAULT NULL", ); }