1 files changed, 13 insertions, 0 deletions
diff --git a/src/database/migration/postgres/1765967660704-DropExtendedSettings.ts b/src/database/migration/postgres/1765967660704-DropExtendedSettings.ts
new file mode 100644
index 00000000..749058a8
--- /dev/null
+++ b/src/database/migration/postgres/1765967660704-DropExtendedSettings.ts
@@ -0,0 +1,13 @@
+import { MigrationInterface, QueryRunner } from "typeorm";
+
+export class DropExtendedSettings1765967660704 implements MigrationInterface {
+ name = "DropExtendedSettings1765967660704";
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "users" DROP COLUMN "extended_settings"`);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "users" ADD "extended_settings" text NOT NULL`);
+ }
+}
|