-ALTER TABLE conf_files ADD site_id integer NOT NULL REFERENCES sites;
-ALTER TABLE conf_files ADD creator_id integer NOT NULL REFERENCES persons;
-ALTER TABLE conf_files ADD last_modified_by_id integer NOT NULL REFERENCES persons;
+ALTER TABLE conf_files ADD site_id integer REFERENCES sites;
+ALTER TABLE conf_files ADD creator_id integer NOT NULL DEFAULT 1 REFERENCES persons;
+ALTER TABLE conf_files ADD last_modified_by_id integer NOT NULL DEFAULT 1 REFERENCES persons;
ALTER TABLE conf_files ADD date_created timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE conf_files ADD last_modified timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP;
error_cmd text, -- Shell command to execute if any error occurs
ignore_cmd_errors bool NOT NULL DEFAULT false, -- Install file anyway even if an error occurs
always_update bool NOT NULL DEFAULT false -- Always attempt to install file even if unchanged
- site_id integer NOT NULL REFERENCES sites, -- Site identifier
- creator_id integer NOT NULL REFERENCES persons, -- Person id of whoever created this file
- last_modified_by_id integer NOT NULL REFERENCES persons, -- Person id of whoever last updated this file
+ site_id integer REFERENCES sites, -- Site identifier
+ creator_id integer NOT NULL DEFAULT 1 REFERENCES persons, -- Person id of whoever created this file
+ last_modified_by_id integer NOT NULL DEFAULT 1 REFERENCES persons, -- Person id of whoever last updated this file
date_created timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Date this file was created
last_modified timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP -- Date this file was last modified
) WITH OIDS;