11 lines
426 B
TypeScript
11 lines
426 B
TypeScript
|
import { Migration } from '@mikro-orm/migrations';
|
||
|
|
||
|
export class Migration20210223115903 extends Migration {
|
||
|
|
||
|
async up(): Promise<void> {
|
||
|
this.addSql('create table `user` (`uuid` text not null, `created_at` text not null, `updated_at` text not null, `username` varchar not null, `password` varchar not null, primary key (`uuid`));');
|
||
|
this.addSql('create index `user_username_index` on `user` (`username`);');
|
||
|
}
|
||
|
|
||
|
}
|