From 03779056c730ec57d4c72cc1775a9e42811c92a3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 5 Jan 2020 16:46:02 -0500 Subject: [PATCH] Add new empty script entry --- roles/pvc/files/patroni/provisioner-schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/pvc/files/patroni/provisioner-schema.sql b/roles/pvc/files/patroni/provisioner-schema.sql index 7f285ec..2e38a1a 100644 --- a/roles/pvc/files/patroni/provisioner-schema.sql +++ b/roles/pvc/files/patroni/provisioner-schema.sql @@ -7,4 +7,5 @@ CREATE TABLE userdata (id SERIAL PRIMARY KEY, name TEXT NOT NULL UNIQUE, userdat CREATE TABLE script (id SERIAL PRIMARY KEY, name TEXT NOT NULL UNIQUE, script TEXT NOT NULL); CREATE TABLE profile (id SERIAL PRIMARY KEY, name TEXT NOT NULL UNIQUE, system_template INT REFERENCES system_template(id), network_template INT REFERENCES network_template(id), storage_template INT REFERENCES storage_template(id), userdata INT REFERENCES userdata(id), script INT REFERENCES script(id), arguments text); -INSERT INTO userdata(name, userdata) VALUES ('empty', ''); +INSERT INTO userdata (name, userdata) VALUES ('empty', ''); +INSERT INTO script (name, script) VALUES ('empty', '');