You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15552.up

18 lines
606 B

SET autocommit=0;
USE billing;
CREATE TABLE `ncos_lnp_pattern_list` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ncos_lnp_list_id` int(11) unsigned NOT NULL,
`pattern` varchar(255) NOT NULL,
`description` text DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `listpat_idx` (`ncos_lnp_list_id`,`pattern`),
CONSTRAINT `c_p_l_ncoslnplist_ref` FOREIGN KEY (`ncos_lnp_list_id`) REFERENCES `ncos_lnp_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB;
INSERT INTO `ncos_lnp_pattern_list` (ncos_lnp_list_id, pattern, description) (SELECT id, '.*', '' FROM ncos_lnp_list);
COMMIT;