changed userPhone fkeys
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Joan Sanchez 2019-11-20 11:37:13 +01:00
parent 5bb7f7f14a
commit 37618efb58
1 changed files with 2 additions and 2 deletions

View File

@ -2,9 +2,9 @@ CREATE TABLE `vn`.`userPhone` (
`id` INT NOT NULL AUTO_INCREMENT,
`userFk` INT(10) UNSIGNED NOT NULL,
`typeFk` VARCHAR(45) NOT NULL,
`phone` VARCHAR(15) NOT NULL,
`phone` VARCHAR(25) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `UserFK_Phone` (`userFk` ASC, `phone` ASC));
UNIQUE INDEX `UserFk_Phone` (`userFk` ASC, `typeFk` ASC, `phone` ASC));
ALTER TABLE `vn`.`userPhone`