7430_devToTest #2490
|
@ -1,7 +1,6 @@
|
||||||
-- Eliminar locker
|
-- Eliminar locker
|
||||||
ALTER TABLE `vn`.`worker` DROP COLUMN `locker`;
|
ALTER TABLE `vn`.`worker` DROP COLUMN `locker`;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE `vn`.`locker` (
|
CREATE TABLE `vn`.`locker` (
|
||||||
`id` int(100) auto_increment,
|
`id` int(100) auto_increment,
|
||||||
`code` varchar(10) DEFAULT NULL,
|
`code` varchar(10) DEFAULT NULL,
|
||||||
|
@ -13,6 +12,8 @@ CREATE TABLE `vn`.`locker` (
|
||||||
CONSTRAINT `locker_ibfk_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`)
|
CONSTRAINT `locker_ibfk_1` FOREIGN KEY (`workerFk`) REFERENCES `worker` (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
|
||||||
|
|
||||||
|
ALTER TABLE vn.workerLog
|
||||||
|
MODIFY COLUMN changedModel enum('Worker','Calendar','WorkerTimeControlMail','Business','WorkerDms','WorkerTimeControl', 'Locker') NOT NULL DEFAULT 'Worker';
|
||||||
|
|
||||||
-- Insertar taquillas disponibles para hombres (1A - 73A / 1B - 73B)
|
-- Insertar taquillas disponibles para hombres (1A - 73A / 1B - 73B)
|
||||||
INSERT INTO `vn`.`locker` (code, gender, workerFk) VALUES
|
INSERT INTO `vn`.`locker` (code, gender, workerFk) VALUES
|
||||||
|
@ -57,6 +58,3 @@ INSERT INTO `vn`.`locker` (code, gender, workerFk) VALUES
|
||||||
('205B', 'F', NULL), ('206B', 'F', NULL), ('207B', 'F', NULL), ('208B', 'F', NULL), ('209B', 'F', NULL),
|
('205B', 'F', NULL), ('206B', 'F', NULL), ('207B', 'F', NULL), ('208B', 'F', NULL), ('209B', 'F', NULL),
|
||||||
('210B', 'F', NULL), ('211B', 'F', NULL), ('212B', 'F', NULL), ('213B', 'F', NULL), ('214B', 'F', NULL),
|
('210B', 'F', NULL), ('211B', 'F', NULL), ('212B', 'F', NULL), ('213B', 'F', NULL), ('214B', 'F', NULL),
|
||||||
('215B', 'F', NULL), ('216B', 'F', NULL), ('217B', 'F', NULL);
|
('215B', 'F', NULL), ('216B', 'F', NULL), ('217B', 'F', NULL);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
ALTER TABLE vn.workerLog
|
|
||||||
MODIFY COLUMN changedModel enum('Worker','Calendar','WorkerTimeControlMail','Business','WorkerDms','WorkerTimeControl', 'Locker') NOT NULL DEFAULT 'Worker';
|
|
Loading…
Reference in New Issue