mirror of
https://github.com/p-stream/backend.git
synced 2026-03-11 17:55:35 +00:00
14 lines
462 B
TypeScript
14 lines
462 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20231122231620 extends Migration {
|
|
|
|
async up(): Promise<void> {
|
|
this.addSql('alter table "user_settings" alter column "id" type text using ("id"::text);');
|
|
}
|
|
|
|
async down(): Promise<void> {
|
|
this.addSql('alter table "user_settings" alter column "id" drop default;');
|
|
this.addSql('alter table "user_settings" alter column "id" type uuid using ("id"::text::uuid);');
|
|
}
|
|
|
|
}
|