chore: Move migration folder into src folder

This commit is contained in:
Faruk AYDIN
2021-10-08 18:59:47 +02:00
committed by Ali BARIN
parent 36ed8d7838
commit a0c34e9353
2 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
import { Knex } from "knex";
export async function up(knex: Knex): Promise<void> {
return knex.schema.createTable('users', (table) => {
table.increments('id');
table.string('email').unique().notNullable();
table.string('password').notNullable();
table.timestamps(true, true);
});
}
export async function down(knex: Knex): Promise<void> {
return knex.schema.dropTable('users');
}