-- Copyright (C) 2019 SuperAdmin
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program.  If not, see <http://www.gnu.org/licenses/>.

ALTER TABLE llx_fichajes_timetable MODIFY entrytime TIME;
ALTER TABLE llx_fichajes_timetable MODIFY leavetime TIME;

INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    1, '8:00', '18:00'
);
INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    2, '8:00', '18:00'
);
INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    3, '8:00', '18:00'
);
INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    4, '8:00', '18:00'
);
INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    5, '8:00', '18:00'
);
INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    6, NULL, NULL
);
INSERT INTO llx_fichajes_timetable (day, entrytime, leavetime) VALUES (
    7, NULL, NULL
);

ALTER TABLE llx_fichajes_log ADD COLUMN mov_trigger INTEGER DEFAULT 0;
