Backend schema and migration modifications for allowing static hosts and locations

This commit is contained in:
Nikolaj Frey
2020-08-14 15:00:22 +10:00
committed by Jamie Curnow
parent f61ab55b52
commit 8de118d875
7 changed files with 85 additions and 16 deletions

View File

@ -69,6 +69,9 @@ exports.up = function (knex/*, Promise*/) {
table.json('domain_names').notNull();
table.string('forward_ip').notNull();
table.integer('forward_port').notNull().unsigned();
table.string('root_dir').notNull();
table.string('index_file').notNull();
table.integer('static').notNull().unsigned().defaultTo(0);
table.integer('access_list_id').notNull().unsigned().defaultTo(0);
table.integer('certificate_id').notNull().unsigned().defaultTo(0);
table.integer('ssl_forced').notNull().unsigned().defaultTo(0);