diff --git a/pandora_console/pandoradb.oracle.sql b/pandora_console/pandoradb.oracle.sql index 2abfb58829..c3e45cfcde 100644 --- a/pandora_console/pandoradb.oracle.sql +++ b/pandora_console/pandoradb.oracle.sql @@ -2075,7 +2075,7 @@ CREATE TABLE tsessions_php ( CREATE TABLE IF NOT EXISTS tmap ( id NUMBER(10, 0) PRIMARY KEY, id_group NUMBER(10, 0) DEFAULT 0, - id_user NUMBER(10, 0) DEFAULT 0, + id_user VARCHAR2(100) DEFAULT '', type NUMBER(5, 0) DEFAULT 0, subtype NUMBER(5, 0) DEFAULT 0, name VARCHAR2(100) DEFAULT '', @@ -2124,6 +2124,8 @@ CREATE TABLE IF NOT EXISTS trel_item ( id NUMBER(10, 0) PRIMARY KEY, id_parent NUMBER(10, 0) DEFAULT 0, id_child NUMBER(10, 0) DEFAULT 0, + id_parent_source_data NUMBER(10, 0) DEFAULT 0, + id_child_source_data NUMBER(10, 0) DEFAULT 0, parent_type NUMBER(5, 0) DEFAULT 0, child_type NUMBER(5, 0) DEFAULT 0, id_item NUMBER(10, 0) DEFAULT 0, diff --git a/pandora_console/pandoradb.postgreSQL.sql b/pandora_console/pandoradb.postgreSQL.sql index 48409e41af..b443de4226 100644 --- a/pandora_console/pandoradb.postgreSQL.sql +++ b/pandora_console/pandoradb.postgreSQL.sql @@ -1736,7 +1736,7 @@ CREATE TABLE "tsessions_php" ( CREATE TABLE IF NOT EXISTS "tmap" ( "id" SERIAL NOT NULL PRIMARY KEY, "id_group" INTEGER default 0, - "id_user" INTEGER default 0, + "id_user" varchar(250) default '', "type" SMALLINT NOT NULL default 0, "subtype" SMALLINT NOT NULL default 0, "name" varchar(250) default '', @@ -1781,6 +1781,8 @@ CREATE TABLE IF NOT EXISTS "trel_item" ( "id" SERIAL NOT NULL PRIMARY KEY, "id_parent" INTEGER default 0, "id_child" INTEGER default 0, + "id_parent_source_data" INTEGER default 0, + "id_child_source_data" INTEGER default 0, "parent_type" SMALLINT NOT NULL default 0, "child_type" SMALLINT NOT NULL default 0, "id_item" INTEGER default 0, diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index f14f6034d6..57ce0a9ada 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -1846,7 +1846,7 @@ CREATE TABLE tsessions_php ( CREATE TABLE IF NOT EXISTS `tmap` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `id_group` int(10) unsigned NOT NULL default 0, - `id_user` int(10) unsigned NOT NULL default 0, + `id_user` varchar(250) NOT NULL default '', `type` int(10) unsigned NOT NULL default 0, `subtype` int(10) unsigned NOT NULL default 0, `name` varchar(250) default '', @@ -1892,6 +1892,8 @@ CREATE TABLE IF NOT EXISTS `trel_item` ( `id` INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, `id_parent` int(10) unsigned NOT NULL default 0, `id_child` int(10) unsigned NOT NULL default 0, + `id_parent_source_data` int(10) unsigned NOT NULL default 0, + `id_child_source_data` int(10) unsigned NOT NULL default 0, `parent_type` int(10) unsigned NOT NULL default 0, `child_type` int(10) unsigned NOT NULL default 0, `id_item` int(10) unsigned NOT NULL default 0,