1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-08 20:02:39 +01:00

Fix new app property migration disallowing NULL

This commit is contained in:
TomatoCake 2024-08-31 12:17:02 +02:00
parent f9ed681272
commit 73ceee4ab0
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> { public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query( 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( 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> { public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query( 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( 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> { public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query( 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( 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",
); );
} }