diff --git a/doc/jilo-web.agents.schema b/doc/jilo-web.agents.schema index 72432c0..64c8f8e 100644 --- a/doc/jilo-web.agents.schema +++ b/doc/jilo-web.agents.schema @@ -1,5 +1,5 @@ -INSERT INTO jilo_agent_types VALUES(1,'jvb','/jvb'); -INSERT INTO jilo_agent_types VALUES(2,'jicofo','/jicofo'); -INSERT INTO jilo_agent_types VALUES(3,'prosody','/prosody'); -INSERT INTO jilo_agent_types VALUES(4,'nginx','/nginx'); -INSERT INTO jilo_agent_types VALUES(5,'jibri','/jibri'); +INSERT OR IGNORE INTO jilo_agent_types VALUES(1,'jvb','/jvb'); +INSERT OR IGNORE INTO jilo_agent_types VALUES(2,'jicofo','/jicofo'); +INSERT OR IGNORE INTO jilo_agent_types VALUES(3,'prosody','/prosody'); +INSERT OR IGNORE INTO jilo_agent_types VALUES(4,'nginx','/nginx'); +INSERT OR IGNORE INTO jilo_agent_types VALUES(5,'jibri','/jibri'); diff --git a/doc/jilo-web.rights.schema b/doc/jilo-web.rights.schema index 9d561a2..44dfc99 100644 --- a/doc/jilo-web.rights.schema +++ b/doc/jilo-web.rights.schema @@ -1,13 +1,13 @@ -INSERT INTO rights VALUES(1,'superuser'); -INSERT INTO rights VALUES(2,'edit users'); -INSERT INTO rights VALUES(3,'view config file'); -INSERT INTO rights VALUES(4,'edit config file'); -INSERT INTO rights VALUES(5,'view own profile'); -INSERT INTO rights VALUES(6,'edit own profile'); -INSERT INTO rights VALUES(7,'view all profiles'); -INSERT INTO rights VALUES(8,'edit all profiles'); -INSERT INTO rights VALUES(9,'view app logs'); -INSERT INTO rights VALUES(10,'view all platforms'); -INSERT INTO rights VALUES(11,'edit all platforms'); -INSERT INTO rights VALUES(12,'view all agents'); -INSERT INTO rights VALUES(13,'edit all agents'); +INSERT OR IGNORE INTO rights VALUES(1,'superuser'); +INSERT OR IGNORE INTO rights VALUES(2,'edit users'); +INSERT OR IGNORE INTO rights VALUES(3,'view config file'); +INSERT OR IGNORE INTO rights VALUES(4,'edit config file'); +INSERT OR IGNORE INTO rights VALUES(5,'view own profile'); +INSERT OR IGNORE INTO rights VALUES(6,'edit own profile'); +INSERT OR IGNORE INTO rights VALUES(7,'view all profiles'); +INSERT OR IGNORE INTO rights VALUES(8,'edit all profiles'); +INSERT OR IGNORE INTO rights VALUES(9,'view app logs'); +INSERT OR IGNORE INTO rights VALUES(10,'view all platforms'); +INSERT OR IGNORE INTO rights VALUES(11,'edit all platforms'); +INSERT OR IGNORE INTO rights VALUES(12,'view all agents'); +INSERT OR IGNORE INTO rights VALUES(13,'edit all agents'); diff --git a/doc/jilo-web.schema b/doc/jilo-web.schema index 12e6273..3777315 100644 --- a/doc/jilo-web.schema +++ b/doc/jilo-web.schema @@ -45,7 +45,7 @@ CREATE TABLE ip_whitelist ( UNIQUE (ip_address) ); -INSERT INTO ip_whitelist (ip_address, is_network, description, created_by) VALUES +INSERT OR IGNORE INTO ip_whitelist (ip_address, is_network, description, created_by) VALUES ('127.0.0.1', 0, 'localhost IPv4', 'system'), ('::1', 0, 'localhost IPv6', 'system'), ('10.0.0.0/8', 1, 'Private network', 'system'),