diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-23 18:58:55 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-23 19:00:40 +0200 |
commit | e0e0b74788ab52586d9ffe2c152d9e5518c2d4bb (patch) | |
tree | 254cf1238adea372014b55555e22db6637683d72 /src/util/migrations/mariadb/1660131942703-apps_nullable_team.ts | |
parent | Improve first setup, make server load initial configuraiton (diff) | |
download | server-e0e0b74788ab52586d9ffe2c152d9e5518c2d4bb.tar.xz |
New db migration script - multiplatform, fix mariadb migrations
Diffstat (limited to 'src/util/migrations/mariadb/1660131942703-apps_nullable_team.ts')
-rw-r--r-- | src/util/migrations/mariadb/1660131942703-apps_nullable_team.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/util/migrations/mariadb/1660131942703-apps_nullable_team.ts b/src/util/migrations/mariadb/1660131942703-apps_nullable_team.ts deleted file mode 100644 index c76d9af4..00000000 --- a/src/util/migrations/mariadb/1660131942703-apps_nullable_team.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { MigrationInterface, QueryRunner } from "typeorm"; - -export class appsNullableTeam1660131942703 implements MigrationInterface { - name = "appsNullableTeam1660131942703"; - - public async up(queryRunner: QueryRunner): Promise<void> { - await queryRunner.query(` - DROP INDEX \`IDX_2ce5a55796fe4c2f77ece57a64\` ON \`applications\` - `); - } - - public async down(queryRunner: QueryRunner): Promise<void> { - await queryRunner.query(` - CREATE UNIQUE INDEX \`IDX_2ce5a55796fe4c2f77ece57a64\` ON \`applications\` (\`bot_user_id\`) - `); - } -} |