pp-back/migrations/Migration20210223115903.ts
Michał Łappo bd21819486 init
2021-02-27 00:00:02 +01:00

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`);');
}
}