fix: 8174 pasar PIN a CHAR
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Juanjo Breso 2024-12-16 12:42:08 +01:00
parent d03a2ced04
commit 7232bfb7a6
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `vn`.`sim` (
`code` VARCHAR(25) COMMENT 'No se ha puesto BIGINT por incompatibilidad con Access',
`line` VARCHAR(15) NOT NULL CHECK (`line` REGEXP '^[0-9]+$'),
`ext` INT(4) NOT NULL,
`pin` INT(4) NOT NULL,
`pin` INT(4) NOT NULL (`pin` REGEXP '^[0-9]+$')
`puk` INT(15) NOT NULL,
PRIMARY KEY (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

View File

@ -1 +0,0 @@
ALTER TABLE vn.sim MODIFY COLUMN pin char(4) NOT NULL CHECK (`pin` REGEXP '^[0-9]+$');