From 37618efb581862e78964e5f6f32f7aa943a8b5d9 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Wed, 20 Nov 2019 11:37:13 +0100 Subject: [PATCH] changed userPhone fkeys --- db/changes/10100-allSaints/01-userPhone.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/changes/10100-allSaints/01-userPhone.sql b/db/changes/10100-allSaints/01-userPhone.sql index 99690b0b6..54dfbeb26 100644 --- a/db/changes/10100-allSaints/01-userPhone.sql +++ b/db/changes/10100-allSaints/01-userPhone.sql @@ -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`