mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
updates
This commit is contained in:
parent
d322d23203
commit
be95b5ffd0
@ -49,6 +49,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
||||||
`id_agent` int(10) unsigned NOT NULL,
|
`id_agent` int(10) unsigned NOT NULL,
|
||||||
`id_template` bigint(20) unsigned NOT NULL,
|
`id_template` bigint(20) unsigned NOT NULL,
|
||||||
|
`status` int(4) NOT NULL default '0',
|
||||||
|
`last_update` bigint(20) NOT NULL default '0',
|
||||||
PRIMARY KEY (`id_agent`, `id_template`),
|
PRIMARY KEY (`id_agent`, `id_template`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
@ -4142,6 +4142,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
||||||
`id_agent` int(10) unsigned NOT NULL,
|
`id_agent` int(10) unsigned NOT NULL,
|
||||||
`id_template` bigint(20) unsigned NOT NULL,
|
`id_template` bigint(20) unsigned NOT NULL,
|
||||||
|
`status` int(4) NOT NULL default '0',
|
||||||
|
`last_update` bigint(20) NOT NULL default '0',
|
||||||
PRIMARY KEY (`id_agent`, `id_template`),
|
PRIMARY KEY (`id_agent`, `id_template`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
@ -4078,6 +4078,8 @@ CREATE TABLE IF NOT EXISTS `tncm_agent` (
|
|||||||
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
CREATE TABLE IF NOT EXISTS `tncm_agent_templates` (
|
||||||
`id_agent` int(10) unsigned NOT NULL,
|
`id_agent` int(10) unsigned NOT NULL,
|
||||||
`id_template` bigint(20) unsigned NOT NULL,
|
`id_template` bigint(20) unsigned NOT NULL,
|
||||||
|
`status` int(4) NOT NULL default '0',
|
||||||
|
`last_update` bigint(20) NOT NULL default '0',
|
||||||
PRIMARY KEY (`id_agent`, `id_template`),
|
PRIMARY KEY (`id_agent`, `id_template`),
|
||||||
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
FOREIGN KEY (`id_agent`) REFERENCES `tagente`(`id_agente`) ON UPDATE CASCADE ON DELETE CASCADE,
|
||||||
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
FOREIGN KEY (`id_template`) REFERENCES `tncm_template`(`id`) ON UPDATE CASCADE ON DELETE CASCADE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user