Rev 36655 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
UPDATE auth.menuSET display_text = 'Lead Visits'WHERE action_class = 'visit-approvals';ALTER TABLE user.beatADD UNIQUE KEY uk_beat_user_name (auth_user_id, name);INSERT INTO auth.menu (display_text, description, parent_menu_id, sequence, action_class)VALUES ('Beat Day View', 'View all beats running for a user on a date', 175, 6, 'beat-plan-dayview');INSERT INTO auth.menu (display_text, description, parent_menu_id, sequence, action_class)VALUES ('Base Location', 'Manage auth user base/home locations', 175, 7, 'base-location');# new updateALTER TABLE user.auth_user_locationADD COLUMN is_default TINYINT(1) NOT NULL DEFAULT 0;UPDATE user.auth_user_location ulINNER JOIN (SELECT auth_user_id, MAX(id) AS max_idFROM user.auth_user_locationWHERE location_type = 'BASE'GROUP BY auth_user_id) latest ON ul.id = latest.max_idSET ul.is_default = 1WHERE ul.location_type = 'BASE';-- Optional helper indexCREATE INDEX idx_aul_user_type_defaultON user.auth_user_location (auth_user_id, location_type, is_default);