You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
417 B
20 lines
417 B
import * as Knex from "knex"; |
|
|
|
|
|
export async function up(knex: Knex): Promise<void> { |
|
// Users table. |
|
await knex.schema.createTable( |
|
'users', |
|
(table: any) => { |
|
table.increments('id'); |
|
table.string('email'); |
|
table.string('passwordHash') |
|
} |
|
) |
|
} |
|
|
|
|
|
export async function down(knex: Knex): Promise<void> { |
|
await knex.schema.dropTable('users'); |
|
} |
|
|
|
|