mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-07-04 08:56:50 +00:00
Use null for optional foreign keys
This commit is contained in:
@ -187,12 +187,12 @@ CREATE TABLE "host" (
|
||||
"nginx_template_id" INTEGER NOT NULL REFERENCES "nginx_template"("id") ON DELETE CASCADE,
|
||||
"listen_interface" TEXT NOT NULL DEFAULT '',
|
||||
"domain_names" TEXT NOT NULL,
|
||||
"upstream_id" INTEGER NOT NULL DEFAULT 0 REFERENCES "upstream"("id") ON DELETE CASCADE,
|
||||
"upstream_id" INTEGER REFERENCES "upstream"("id") ON DELETE CASCADE,
|
||||
"proxy_scheme" TEXT NOT NULL DEFAULT '',
|
||||
"proxy_host" TEXT NOT NULL DEFAULT '',
|
||||
"proxy_port" INTEGER NOT NULL DEFAULT 0,
|
||||
"certificate_id" INTEGER NOT NULL DEFAULT 0 REFERENCES "certificate"("id") ON DELETE CASCADE,
|
||||
"access_list_id" INTEGER NOT NULL DEFAULT 0 REFERENCES "access_list"("id") ON DELETE CASCADE,
|
||||
"certificate_id" INTEGER REFERENCES "certificate"("id") ON DELETE CASCADE,
|
||||
"access_list_id" INTEGER REFERENCES "access_list"("id") ON DELETE CASCADE,
|
||||
"ssl_forced" BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
"caching_enabled" BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
"block_exploits" BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
|
Reference in New Issue
Block a user