|
|
@@ -1,6 +1,6 @@
|
|
|
-import { Knex } from "knex";
|
|
|
+/** @type {import('knex').Knex} */
|
|
|
|
|
|
-export async function up(knex: Knex): Promise<void> {
|
|
|
+export async function up(knex) {
|
|
|
await knex.schema.createTable("users", (table) => {
|
|
|
table.increments("id").primary();
|
|
|
table.string("username").notNullable().unique();
|
|
|
@@ -10,6 +10,6 @@ export async function up(knex: Knex): Promise<void> {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-export async function down(knex: Knex): Promise<void> {
|
|
|
+export async function down(knex) {
|
|
|
await knex.schema.dropTable("users");
|
|
|
}
|