Insert OR ignore in sql
parent
2a270dac74
commit
bfa467996f
|
@ -1,5 +1,5 @@
|
||||||
INSERT INTO jilo_agent_types VALUES(1,'jvb','/jvb');
|
INSERT OR IGNORE INTO jilo_agent_types VALUES(1,'jvb','/jvb');
|
||||||
INSERT INTO jilo_agent_types VALUES(2,'jicofo','/jicofo');
|
INSERT OR IGNORE INTO jilo_agent_types VALUES(2,'jicofo','/jicofo');
|
||||||
INSERT INTO jilo_agent_types VALUES(3,'prosody','/prosody');
|
INSERT OR IGNORE INTO jilo_agent_types VALUES(3,'prosody','/prosody');
|
||||||
INSERT INTO jilo_agent_types VALUES(4,'nginx','/nginx');
|
INSERT OR IGNORE 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(5,'jibri','/jibri');
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
INSERT INTO rights VALUES(1,'superuser');
|
INSERT OR IGNORE INTO rights VALUES(1,'superuser');
|
||||||
INSERT INTO rights VALUES(2,'edit users');
|
INSERT OR IGNORE INTO rights VALUES(2,'edit users');
|
||||||
INSERT INTO rights VALUES(3,'view config file');
|
INSERT OR IGNORE INTO rights VALUES(3,'view config file');
|
||||||
INSERT INTO rights VALUES(4,'edit config file');
|
INSERT OR IGNORE INTO rights VALUES(4,'edit config file');
|
||||||
INSERT INTO rights VALUES(5,'view own profile');
|
INSERT OR IGNORE INTO rights VALUES(5,'view own profile');
|
||||||
INSERT INTO rights VALUES(6,'edit own profile');
|
INSERT OR IGNORE INTO rights VALUES(6,'edit own profile');
|
||||||
INSERT INTO rights VALUES(7,'view all profiles');
|
INSERT OR IGNORE INTO rights VALUES(7,'view all profiles');
|
||||||
INSERT INTO rights VALUES(8,'edit all profiles');
|
INSERT OR IGNORE INTO rights VALUES(8,'edit all profiles');
|
||||||
INSERT INTO rights VALUES(9,'view app logs');
|
INSERT OR IGNORE INTO rights VALUES(9,'view app logs');
|
||||||
INSERT INTO rights VALUES(10,'view all platforms');
|
INSERT OR IGNORE INTO rights VALUES(10,'view all platforms');
|
||||||
INSERT INTO rights VALUES(11,'edit all platforms');
|
INSERT OR IGNORE INTO rights VALUES(11,'edit all platforms');
|
||||||
INSERT INTO rights VALUES(12,'view all agents');
|
INSERT OR IGNORE INTO rights VALUES(12,'view all agents');
|
||||||
INSERT INTO rights VALUES(13,'edit all agents');
|
INSERT OR IGNORE INTO rights VALUES(13,'edit all agents');
|
||||||
|
|
|
@ -45,7 +45,7 @@ CREATE TABLE ip_whitelist (
|
||||||
UNIQUE (ip_address)
|
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'),
|
('127.0.0.1', 0, 'localhost IPv4', 'system'),
|
||||||
('::1', 0, 'localhost IPv6', 'system'),
|
('::1', 0, 'localhost IPv6', 'system'),
|
||||||
('10.0.0.0/8', 1, 'Private network', 'system'),
|
('10.0.0.0/8', 1, 'Private network', 'system'),
|
||||||
|
|
Loading…
Reference in New Issue