mirror of https://github.com/sylv/micro.git
14 lines
325 B
TypeScript
14 lines
325 B
TypeScript
import { Migration } from '@mikro-orm/migrations';
|
|
|
|
export class Migration20220620200410 extends Migration {
|
|
|
|
async up(): Promise<void> {
|
|
this.addSql('alter table "pastes" add column "title" varchar(128) null;');
|
|
}
|
|
|
|
async down(): Promise<void> {
|
|
this.addSql('alter table "pastes" drop column "title";');
|
|
}
|
|
|
|
}
|