1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 11:43:07 +01:00

Merge pull request #1207 from DEVTomatoCake/fix/more-application-properties-migration

Fix new app property migration disallowing NULL
This commit is contained in:
Madeline 2024-08-31 20:21:28 +10:00 committed by GitHub
commit 143cbf2e98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -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` VARCHAR(255) NOT NULL",
"ALTER TABLE `applications` ADD COLUMN `guild_id` VARCHAR(255) 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 DEFAULT NULL",
);
}

View File

@ -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` VARCHAR(255) NOT NULL",
"ALTER TABLE `applications` ADD COLUMN `guild_id` VARCHAR(255) 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 DEFAULT NULL",
);
}

View File

@ -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",
);
}