Backend schema and migration modifications for allowing static hosts and locations

This commit is contained in:
Nikolaj Frey authored and Jamie Curnow committed 2021-02-08 12:47:00 +10:00
1 parent f61ab55b52
commit 8de118d875
7 files changed
+85 -16

No files matched your search

@@ -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);