salix/db/versions/.archive/10139-grayAspidistra/01-secondScript.sql

18 lines
559 B
MySQL
Raw Normal View History

USE vn;
CREATE TABLE `vn`.`printQueueConfig` (
`networkDrive` VARCHAR(10) NOT NULL DEFAULT 'X:\\',
`dmsPath` VARCHAR(45) NOT NULL DEFAULT ' \\\\server\\dms');
ALTER TABLE `vn`.`printQueue`
DROP FOREIGN KEY `printQueue_priorityFk`;
ALTER TABLE `vn`.`printQueue`
CHANGE COLUMN `priorityFk` `priorityFk` TINYINT(3) UNSIGNED NOT NULL DEFAULT 3 COMMENT '1 - high, 2 - normal, 3 - low' ;
ALTER TABLE `vn`.`printQueue`
ADD CONSTRAINT `printQueue_priorityFk`
FOREIGN KEY (`priorityFk`)
REFERENCES `vn`.`queuePriority` (`id`)
ON UPDATE CASCADE;