Fixed db issue

This commit is contained in:
Jose Gonzalez 2020-03-31 10:45:30 +02:00
parent c2d81238d6
commit f28de6f4d0
3 changed files with 0 additions and 3 deletions

View File

@ -51,7 +51,6 @@ CREATE TABLE `tpen` (
CREATE TABLE IF NOT EXISTS `tnetwork_profile_pen` ( CREATE TABLE IF NOT EXISTS `tnetwork_profile_pen` (
`pen` int(10) unsigned NOT NULL, `pen` int(10) unsigned NOT NULL,
`id_np` int(10) unsigned NOT NULL, `id_np` int(10) unsigned NOT NULL,
PRIMARY KEY (`pen`),
CONSTRAINT `fk_network_profile_pen_pen` FOREIGN KEY (`pen`) CONSTRAINT `fk_network_profile_pen_pen` FOREIGN KEY (`pen`)
REFERENCES `tpen` (`pen`) ON DELETE CASCADE ON UPDATE CASCADE, REFERENCES `tpen` (`pen`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_network_profile_pen_id_np` FOREIGN KEY (`id_np`) CONSTRAINT `fk_network_profile_pen_id_np` FOREIGN KEY (`id_np`)

View File

@ -1492,7 +1492,6 @@ CREATE TABLE IF NOT EXISTS `tpen` (
CREATE TABLE IF NOT EXISTS `tnetwork_profile_pen` ( CREATE TABLE IF NOT EXISTS `tnetwork_profile_pen` (
`pen` int(10) unsigned NOT NULL, `pen` int(10) unsigned NOT NULL,
`id_np` int(10) unsigned NOT NULL, `id_np` int(10) unsigned NOT NULL,
PRIMARY KEY (`pen`),
CONSTRAINT `fk_network_profile_pen_pen` FOREIGN KEY (`pen`) CONSTRAINT `fk_network_profile_pen_pen` FOREIGN KEY (`pen`)
REFERENCES `tpen` (`pen`) ON DELETE CASCADE ON UPDATE CASCADE, REFERENCES `tpen` (`pen`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_network_profile_pen_id_np` FOREIGN KEY (`id_np`) CONSTRAINT `fk_network_profile_pen_id_np` FOREIGN KEY (`id_np`)

View File

@ -969,7 +969,6 @@ CREATE TABLE IF NOT EXISTS `tpen` (
CREATE TABLE IF NOT EXISTS `tnetwork_profile_pen` ( CREATE TABLE IF NOT EXISTS `tnetwork_profile_pen` (
`pen` int(10) unsigned NOT NULL, `pen` int(10) unsigned NOT NULL,
`id_np` int(10) unsigned NOT NULL, `id_np` int(10) unsigned NOT NULL,
PRIMARY KEY (`pen`),
CONSTRAINT `fk_network_profile_pen_pen` FOREIGN KEY (`pen`) CONSTRAINT `fk_network_profile_pen_pen` FOREIGN KEY (`pen`)
REFERENCES `tpen` (`pen`) ON DELETE CASCADE ON UPDATE CASCADE, REFERENCES `tpen` (`pen`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `fk_network_profile_pen_id_np` FOREIGN KEY (`id_np`) CONSTRAINT `fk_network_profile_pen_id_np` FOREIGN KEY (`id_np`)