mirror of
https://github.com/louislam/dockge.git
synced 2024-12-01 06:34:03 +00:00
c0fc76a0c8
Add the option to set a friendly name to a dockge remote agent. If the field is not used the `agent.url` will be displayed
17 lines
583 B
TypeScript
17 lines
583 B
TypeScript
import { Knex } from "knex";
|
|
|
|
export async function up(knex: Knex): Promise<void> {
|
|
// Create the user table
|
|
return knex.schema.createTable("agent", (table) => {
|
|
table.increments("id");
|
|
table.string("url", 255).notNullable().unique();
|
|
table.string("username", 255).notNullable();
|
|
table.string("password", 255).notNullable();
|
|
table.string("friendlyname", 255);
|
|
table.boolean("active").notNullable().defaultTo(true);
|
|
});
|
|
}
|
|
|
|
export async function down(knex: Knex): Promise<void> {
|
|
return knex.schema.dropTable("agent");
|
|
}
|