Use UPSERTS and add some more models

This commit is contained in:
Isaac Connor 2021-11-15 16:30:17 -05:00
parent e63222d733
commit 4e9a56624d
1 changed files with 30 additions and 19 deletions

View File

@ -1,30 +1,41 @@
/* INSERT INTO Manufacturers VALUES (1, 'Acti'); */
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A21');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A23');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A24');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A28');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A31');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A310');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A311');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A32');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A41');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A415');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A416');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A418');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A42');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A421');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A43');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A45');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A46');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A48');
INSERT INTO Models (ManufacturerId,Name) VALUES (1, 'A74');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A21');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A23');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A24');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A28');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A31');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A310');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A311');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A32');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A41');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A415');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A416');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A418');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A42');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A421');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A43');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A45');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A46');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A48');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (1, 'A74');
/*
INSERT INTO Manufacturers VALUES (2, 'Amcrest');
*/
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (2, 'IP8M-T2499EW');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (2, 'ASH42-B');
/*
INSERT INTO Manufacturers VALUES (3, 'Airlink101');
INSERT INTO Manufacturers VALUES (4, 'Arecont Vision');
INSERT INTO Manufacturers VALUES (5, 'Axis');
INSERT INTO Manufacturers VALUES (6, 'Dahua');
INSERT INTO Manufacturers VALUES (7, 'D-Link');
*/
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (7, 'DCS-930L');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (7, 'DCS-932L');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (7, 'DCS-933L');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (7, 'DCS-942L');
INSERT IGNORE INTO Models (ManufacturerId,Name) VALUES (7, 'DCS-5020L');
/*
INSERT INTO Manufacturers VALUES (8, 'Edimax');
INSERT INTO Manufacturers VALUES (9, 'Foscam');
INSERT INTO Manufacturers VALUES (10, 'Gadspot');