TimeTrex/classes/modules/install/sql/postgresql/1111A.sql

8 lines
378 B
MySQL
Raw Normal View History

2022-12-13 07:10:06 +01:00
--C=Return to School is now E03=Quit / Return to school
UPDATE roe SET code_id = 'E03' WHERE code_id = 'C';
--Pad all codes so they are A00, B00, etc...
UPDATE roe SET code_id = rpad( code_id, 3, '0');
--Add status and default to Pending
ALTER TABLE roe ADD COLUMN status_id integer DEFAULT 10;
--Force existing ROEs to status=Submitted (ROE WEB)
UPDATE roe set status_id = 200;