Skip to content

Commit d6011ce

Browse files
committed
Use INSERT IGNORE for user type migration
1 parent d80d5a1 commit d6011ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
INSERT INTO `user_type` (`level`, `name`, `defaultdisplay`, `created_by`, `created_on`) VALUES ('20', 'SATELLITE_LAB', '1', 'Princesca', CURRENT_TIMESTAMP);
1+
-- Using INSERT IGNORE - it's important to have this user type,
2+
-- but it might conflict with what's already in the table and we
3+
-- don't have a sophisticated way to deal with that yet.
4+
INSERT IGNORE INTO `user_type` (`level`, `name`, `defaultdisplay`, `created_by`, `created_on`) VALUES ('20', 'SATELLITE_LAB', '1', 'Princesca', CURRENT_TIMESTAMP);

0 commit comments

Comments
 (0)