mirror of
https://github.com/louislam/dockge.git
synced 2024-11-25 01:33:32 +01:00
15 lines
436 B
TypeScript
15 lines
436 B
TypeScript
import { Knex } from "knex";
|
|
|
|
export async function up(knex: Knex): Promise<void> {
|
|
return knex.schema.createTable("setting", (table) => {
|
|
table.increments("id");
|
|
table.string("key", 200).notNullable().unique().collate("utf8_general_ci");
|
|
table.text("value");
|
|
table.string("type", 20);
|
|
});
|
|
}
|
|
|
|
export async function down(knex: Knex): Promise<void> {
|
|
return knex.schema.dropTable("setting");
|
|
}
|