18 lines
559 B
SQL
18 lines
559 B
SQL
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; |