
START TRANSACTION;

UPDATE NODE SET NODE_ORDER=39,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=1,KEY_PARENT=2,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=47,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=3,KEY_PARENT=4,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=46,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=5,KEY_PARENT=6,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=24,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e',KEY_CHILD=7,KEY_PARENT=8,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e'  ;

UPDATE NODE SET NODE_ORDER=15,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2c28d6d610e77c2259f283c56bd42a13',KEY_CHILD=9,KEY_PARENT=10,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2c28d6d610e77c2259f283c56bd42a13'  ;

UPDATE NODE SET NODE_ORDER=34,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f',KEY_CHILD=11,KEY_PARENT=12,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f'  ;

UPDATE NODE SET NODE_ORDER=36,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c',KEY_CHILD=13,KEY_PARENT=14,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c'  ;

UPDATE NODE SET NODE_ORDER=44,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970',KEY_CHILD=15,KEY_PARENT=16,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970'  ;

UPDATE NODE SET NODE_ORDER=18,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19',KEY_CHILD=17,KEY_PARENT=18,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19'  ;

UPDATE NODE SET NODE_ORDER=49,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0',KEY_CHILD=19,KEY_PARENT=20,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=19,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3',KEY_CHILD=21,KEY_PARENT=22,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3'  ;

UPDATE NODE SET NODE_ORDER=28,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495',KEY_CHILD=23,KEY_PARENT=24,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495'  ;

UPDATE NODE SET NODE_ORDER=29,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a',KEY_CHILD=25,KEY_PARENT=26,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a'  ;

UPDATE NODE SET NODE_ORDER=51,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39',KEY_CHILD=27,KEY_PARENT=28,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39'  ;

UPDATE NODE SET NODE_ORDER=30,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0',KEY_CHILD=29,KEY_PARENT=30,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0'  ;

UPDATE NODE SET NODE_ORDER=40,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8',KEY_CHILD=31,KEY_PARENT=32,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8'  ;

UPDATE NODE SET NODE_ORDER=52,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9',KEY_CHILD=33,KEY_PARENT=34,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9'  ;

UPDATE NODE SET NODE_ORDER=25,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f',KEY_CHILD=35,KEY_PARENT=36,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f'  ;

UPDATE NODE SET NODE_ORDER=53,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791',KEY_CHILD=37,KEY_PARENT=38,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791'  ;

UPDATE NODE SET NODE_ORDER=41,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=39,KEY_PARENT=40,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=23,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007',KEY_CHILD=41,KEY_PARENT=42,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007'  ;

UPDATE NODE SET NODE_ORDER=45,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=43,KEY_PARENT=44,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=26,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7',KEY_CHILD=45,KEY_PARENT=46,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7'  ;

UPDATE NODE SET NODE_ORDER=43,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df',KEY_CHILD=47,KEY_PARENT=48,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df'  ;

UPDATE NODE SET NODE_ORDER=22,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce',KEY_CHILD=49,KEY_PARENT=50,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce'  ;

UPDATE NODE SET NODE_ORDER=20,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f',KEY_CHILD=51,KEY_PARENT=52,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f'  ;

UPDATE NODE SET NODE_ORDER=35,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08',KEY_CHILD=53,KEY_PARENT=54,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08'  ;

UPDATE NODE SET NODE_ORDER=16,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:85648d6011e8cb173e84c9968274b3a9',KEY_CHILD=55,KEY_PARENT=56,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:85648d6011e8cb173e84c9968274b3a9'  ;

UPDATE NODE SET NODE_ORDER=42,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=57,KEY_PARENT=58,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=21,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c',KEY_CHILD=59,KEY_PARENT=60,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c'  ;

UPDATE NODE SET NODE_ORDER=31,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523',KEY_CHILD=61,KEY_PARENT=62,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523'  ;

UPDATE NODE SET NODE_ORDER=38,ASCENDING=1,VISIBLE=0,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1',KEY_CHILD=63,KEY_PARENT=64,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1'  ;

UPDATE NODE SET NODE_ORDER=33,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb',KEY_CHILD=65,KEY_PARENT=66,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb'  ;

UPDATE NODE SET NODE_ORDER=50,ASCENDING=1,VISIBLE=0,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692',KEY_CHILD=67,KEY_PARENT=68,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692'  ;

UPDATE NODE SET NODE_ORDER=14,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:e5b7f6c8cde8525118c726a77ef9ac16',KEY_CHILD=69,KEY_PARENT=70,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:e5b7f6c8cde8525118c726a77ef9ac16'  ;

UPDATE NODE SET NODE_ORDER=48,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=71,KEY_PARENT=72,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=27,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560',KEY_CHILD=73,KEY_PARENT=74,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560'  ;

UPDATE NODE SET NODE_ORDER=17,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195',KEY_CHILD=75,KEY_PARENT=76,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195'  ;

UPDATE NODE SET NODE_ORDER=37,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed',KEY_CHILD=77,KEY_PARENT=78,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed'  ;

UPDATE NODE SET NODE_ORDER=32,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247',KEY_CHILD=79,KEY_PARENT=80,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247'  ;

DELETE FROM NODE WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:87605e3212942964ea58b719593f428e' ;

DELETE FROM AVAILABILITY_POLICY WHERE CONTENT_ID = '87605e3212942964ea58b719593f428e' ;

DELETE FROM NODE WHERE CONTENT_ID = '87605e3212942964ea58b719593f428e:f66c6357-e28c-43dd-a839-940871039dea' ;

DELETE FROM CONTENT WHERE CONTENT_ID = '87605e3212942964ea58b719593f428e:f66c6357-e28c-43dd-a839-940871039dea' ;

DELETE FROM CONTENT WHERE CONTENT_ID = '87605e3212942964ea58b719593f428e' ;

CREATE TEMPORARY TABLE UUID_TEMP_TABLE(COUNTER integer, UUID varchar(255), FROM_UUID varchar(255));

INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(1,'2553ca76-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(2,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(3,'259fbb84-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(4,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(5,'259fb95e-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(6,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(7,'04c331e6376fbf595dc03f016aeb805e','382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(8,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(9,'2c28d6d610e77c2259f283c56bd42a13','382b0734-1431-102b-8308-0016ec91a6df:2c28d6d610e77c2259f283c56bd42a13') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(10,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2c28d6d610e77c2259f283c56bd42a13') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(11,'52a275bead94de4f04355331d3a4bb4f','382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(12,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(13,'b68579ac982cc3c10b4b0018f6f3f60c','382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(14,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(15,'1c965f56bf473af38edbf0c625648970','382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(16,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(17,'9b4ba7f3200c75360185fdbcbbedfa19','382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(18,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(19,'ce709e5e-1bd7-102b-a709-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(20,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(21,'e0a7258ae7c1d343ee2608965851ecb3','382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(22,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(23,'e1e84f6c224d66cd247a7dc9b8643495','382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(24,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(25,'fb0cae678481ddf69faddf180adcb12a','382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(26,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(27,'e36ffab4-3a6a-102b-903e-0016ec912b39','382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(28,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(29,'81ee827e8d52673aab99b35b5a68f4b0','382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(30,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(31,'1db36353c645e064a956e779b64cd4d8','382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(32,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(33,'1e68dba1-0f24-40cc-882a-48c774825cd9','382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(34,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(35,'ab9fb961342d4e9c8e15798273426e4f','382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(36,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(37,'aac35724-80c2-4b12-a2ab-01e32dfef791','382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(38,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(39,'2574818a-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(40,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(41,'4a14a6cfd784d618fea7381783c82007','382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(42,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(43,'2586b648-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(44,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(45,'0616653454e258c902f8454aee7b92e7','382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(46,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(47,'3936a368-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(48,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(49,'aadb58aeef93b2f214e36fb6673c10ce','382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(50,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(51,'6e1847547c0dfe87411e7f4ac6bc5b5f','382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(52,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(53,'28c2c83e4c5146fb8d3923191b3aaf08','382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(54,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(55,'85648d6011e8cb173e84c9968274b3a9','382b0734-1431-102b-8308-0016ec91a6df:85648d6011e8cb173e84c9968274b3a9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(56,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:85648d6011e8cb173e84c9968274b3a9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(57,'2574881a-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(58,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(59,'2865bc5fbfbbe30ebfd699f5c6a2953c','382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(60,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(61,'a9699c018922df82905bba7d5fc74523','382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(62,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(63,'cdf370b350363c8fa0b32ccd24b338c1','382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(64,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(65,'ad0563cd-736d-4682-9500-5705d724d4cb','382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(66,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(67,'886afcf2-f257-48ac-b489-e3d8fbc7a692','382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(68,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(69,'e5b7f6c8cde8525118c726a77ef9ac16','382b0734-1431-102b-8308-0016ec91a6df:e5b7f6c8cde8525118c726a77ef9ac16') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(70,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:e5b7f6c8cde8525118c726a77ef9ac16') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(71,'25abc654-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(72,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(73,'4f70ee89c8abcd9610a27706ccc3d560','382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(74,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(75,'27b961492c7e113365b3099d6a3a0195','382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(76,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(77,'935adf58dae00fce50ed45ad78fb4eed','382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(78,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(79,'b90ac05a2dabb546425560bc5e7a0247','382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(80,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247') ;
ALTER TABLE UUID_TEMP_TABLE ADD INDEX (COUNTER), ADD INDEX (UUID), ADD INDEX (FROM_UUID); 


UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PARENT=CT.ID_INTERNAL WHERE T.KEY_PARENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CHILD=CT.ID_INTERNAL WHERE T.KEY_CHILD=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, EXECUTION_PATH CT set T.KEY_EXECUTION_PATH_VALUE=CT.ID_INTERNAL WHERE T.KEY_EXECUTION_PATH_VALUE=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_INITIAL_CONTENT=CT.ID_INTERNAL WHERE T.KEY_INITIAL_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PORTAL=CT.ID_INTERNAL WHERE T.KEY_PORTAL=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, AVAILABILITY_POLICY CT set T.KEY_AVAILABILITY_POLICY=CT.ID_INTERNAL WHERE T.KEY_AVAILABILITY_POLICY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE AVAILABILITY_POLICY T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CONTENT=CT.ID_INTERNAL WHERE T.KEY_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE EXECUTION_PATH T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
DROP TABLE UUID_TEMP_TABLE;

UPDATE NODE SET NODE_ORDER=38,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=81,KEY_PARENT=82,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=46,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=83,KEY_PARENT=84,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=45,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=85,KEY_PARENT=86,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=23,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e',KEY_CHILD=87,KEY_PARENT=88,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e'  ;

UPDATE NODE SET NODE_ORDER=33,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f',KEY_CHILD=89,KEY_PARENT=90,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f'  ;

UPDATE NODE SET NODE_ORDER=35,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c',KEY_CHILD=91,KEY_PARENT=92,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c'  ;

UPDATE NODE SET NODE_ORDER=43,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970',KEY_CHILD=93,KEY_PARENT=94,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970'  ;

UPDATE NODE SET NODE_ORDER=17,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19',KEY_CHILD=95,KEY_PARENT=96,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19'  ;

UPDATE NODE SET NODE_ORDER=48,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0',KEY_CHILD=97,KEY_PARENT=98,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=18,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3',KEY_CHILD=99,KEY_PARENT=100,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3'  ;

UPDATE NODE SET NODE_ORDER=28,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a',KEY_CHILD=101,KEY_PARENT=102,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a'  ;

UPDATE NODE SET NODE_ORDER=27,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495',KEY_CHILD=103,KEY_PARENT=104,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495'  ;

UPDATE NODE SET NODE_ORDER=50,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39',KEY_CHILD=105,KEY_PARENT=106,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39'  ;

UPDATE NODE SET NODE_ORDER=29,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0',KEY_CHILD=107,KEY_PARENT=108,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0'  ;

UPDATE NODE SET NODE_ORDER=39,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8',KEY_CHILD=109,KEY_PARENT=110,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8'  ;

UPDATE NODE SET NODE_ORDER=51,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9',KEY_CHILD=111,KEY_PARENT=112,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9'  ;

UPDATE NODE SET NODE_ORDER=24,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f',KEY_CHILD=113,KEY_PARENT=114,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f'  ;

UPDATE NODE SET NODE_ORDER=52,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791',KEY_CHILD=115,KEY_PARENT=116,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791'  ;

UPDATE NODE SET NODE_ORDER=22,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007',KEY_CHILD=117,KEY_PARENT=118,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007'  ;

UPDATE NODE SET NODE_ORDER=40,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=119,KEY_PARENT=120,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=44,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=121,KEY_PARENT=122,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=25,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7',KEY_CHILD=123,KEY_PARENT=124,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7'  ;

UPDATE NODE SET NODE_ORDER=42,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df',KEY_CHILD=125,KEY_PARENT=126,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df'  ;

UPDATE NODE SET NODE_ORDER=21,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce',KEY_CHILD=127,KEY_PARENT=128,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce'  ;

UPDATE NODE SET NODE_ORDER=19,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f',KEY_CHILD=129,KEY_PARENT=130,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f'  ;

UPDATE NODE SET NODE_ORDER=34,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08',KEY_CHILD=131,KEY_PARENT=132,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08'  ;

UPDATE NODE SET NODE_ORDER=41,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=133,KEY_PARENT=134,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=20,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c',KEY_CHILD=135,KEY_PARENT=136,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c'  ;

UPDATE NODE SET NODE_ORDER=30,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523',KEY_CHILD=137,KEY_PARENT=138,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523'  ;

UPDATE NODE SET NODE_ORDER=37,ASCENDING=1,VISIBLE=0,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1',KEY_CHILD=139,KEY_PARENT=140,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1'  ;

UPDATE NODE SET NODE_ORDER=32,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb',KEY_CHILD=141,KEY_PARENT=142,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb'  ;

UPDATE NODE SET NODE_ORDER=49,ASCENDING=1,VISIBLE=0,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692',KEY_CHILD=143,KEY_PARENT=144,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692'  ;

UPDATE NODE SET NODE_ORDER=47,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0',KEY_CHILD=145,KEY_PARENT=146,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=26,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560',KEY_CHILD=147,KEY_PARENT=148,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560'  ;

UPDATE NODE SET NODE_ORDER=16,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195',KEY_CHILD=149,KEY_PARENT=150,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195'  ;

UPDATE NODE SET NODE_ORDER=36,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed',KEY_CHILD=151,KEY_PARENT=152,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed'  ;

UPDATE NODE SET NODE_ORDER=31,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247',KEY_CHILD=153,KEY_PARENT=154,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247'  ;

DELETE FROM CONTENT WHERE CONTENT_ID = '85648d6011e8cb173e84c9968274b3a9:1b44b7cb-e1f8-432d-99cf-f6e4cb82cf95' ;

DELETE FROM AVAILABILITY_POLICY WHERE CONTENT_ID = '85648d6011e8cb173e84c9968274b3a9' ;

DELETE FROM CONTENT WHERE CONTENT_ID = '85648d6011e8cb173e84c9968274b3a9' ;

DELETE FROM NODE WHERE CONTENT_ID = '382b0734-1431-102b-8308-0016ec91a6df:85648d6011e8cb173e84c9968274b3a9' ;

DELETE FROM NODE WHERE CONTENT_ID = '85648d6011e8cb173e84c9968274b3a9:1b44b7cb-e1f8-432d-99cf-f6e4cb82cf95' ;

CREATE TEMPORARY TABLE UUID_TEMP_TABLE(COUNTER integer, UUID varchar(255), FROM_UUID varchar(255));

INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(81,'2553ca76-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(82,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2553ca76-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(83,'259fbb84-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(84,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:259fbb84-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(85,'259fb95e-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(86,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:259fb95e-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(87,'04c331e6376fbf595dc03f016aeb805e','382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(88,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:04c331e6376fbf595dc03f016aeb805e') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(89,'52a275bead94de4f04355331d3a4bb4f','382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(90,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:52a275bead94de4f04355331d3a4bb4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(91,'b68579ac982cc3c10b4b0018f6f3f60c','382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(92,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:b68579ac982cc3c10b4b0018f6f3f60c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(93,'1c965f56bf473af38edbf0c625648970','382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(94,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:1c965f56bf473af38edbf0c625648970') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(95,'9b4ba7f3200c75360185fdbcbbedfa19','382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(96,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:9b4ba7f3200c75360185fdbcbbedfa19') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(97,'ce709e5e-1bd7-102b-a709-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(98,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6dfce709e5e-1bd7-102b-a709-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(99,'e0a7258ae7c1d343ee2608965851ecb3','382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(100,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:e0a7258ae7c1d343ee2608965851ecb3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(101,'fb0cae678481ddf69faddf180adcb12a','382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(102,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:fb0cae678481ddf69faddf180adcb12a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(103,'e1e84f6c224d66cd247a7dc9b8643495','382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(104,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:e1e84f6c224d66cd247a7dc9b8643495') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(105,'e36ffab4-3a6a-102b-903e-0016ec912b39','382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(106,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6dfe36ffab4-3a6a-102b-903e-0016ec912b39') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(107,'81ee827e8d52673aab99b35b5a68f4b0','382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(108,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:81ee827e8d52673aab99b35b5a68f4b0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(109,'1db36353c645e064a956e779b64cd4d8','382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(110,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:1db36353c645e064a956e779b64cd4d8') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(111,'1e68dba1-0f24-40cc-882a-48c774825cd9','382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(112,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:1e68dba1-0f24-40cc-882a-48c774825cd9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(113,'ab9fb961342d4e9c8e15798273426e4f','382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(114,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:ab9fb961342d4e9c8e15798273426e4f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(115,'aac35724-80c2-4b12-a2ab-01e32dfef791','382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(116,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:aac35724-80c2-4b12-a2ab-01e32dfef791') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(117,'4a14a6cfd784d618fea7381783c82007','382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(118,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:4a14a6cfd784d618fea7381783c82007') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(119,'2574818a-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(120,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2574818a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(121,'2586b648-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(122,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2586b648-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(123,'0616653454e258c902f8454aee7b92e7','382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(124,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:0616653454e258c902f8454aee7b92e7') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(125,'3936a368-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(126,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:3936a368-1431-102b-8308-0016ec91a6df') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(127,'aadb58aeef93b2f214e36fb6673c10ce','382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(128,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:aadb58aeef93b2f214e36fb6673c10ce') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(129,'6e1847547c0dfe87411e7f4ac6bc5b5f','382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(130,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:6e1847547c0dfe87411e7f4ac6bc5b5f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(131,'28c2c83e4c5146fb8d3923191b3aaf08','382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(132,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:28c2c83e4c5146fb8d3923191b3aaf08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(133,'2574881a-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(134,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2574881a-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(135,'2865bc5fbfbbe30ebfd699f5c6a2953c','382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(136,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:2865bc5fbfbbe30ebfd699f5c6a2953c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(137,'a9699c018922df82905bba7d5fc74523','382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(138,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:a9699c018922df82905bba7d5fc74523') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(139,'cdf370b350363c8fa0b32ccd24b338c1','382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(140,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:cdf370b350363c8fa0b32ccd24b338c1') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(141,'ad0563cd-736d-4682-9500-5705d724d4cb','382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(142,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:ad0563cd-736d-4682-9500-5705d724d4cb') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(143,'886afcf2-f257-48ac-b489-e3d8fbc7a692','382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(144,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:886afcf2-f257-48ac-b489-e3d8fbc7a692') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(145,'25abc654-f86e-102a-aeb6-0013d3b09da0','382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(146,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:25abc654-f86e-102a-aeb6-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(147,'4f70ee89c8abcd9610a27706ccc3d560','382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(148,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:4f70ee89c8abcd9610a27706ccc3d560') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(149,'27b961492c7e113365b3099d6a3a0195','382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(150,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:27b961492c7e113365b3099d6a3a0195') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(151,'935adf58dae00fce50ed45ad78fb4eed','382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(152,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:935adf58dae00fce50ed45ad78fb4eed') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(153,'b90ac05a2dabb546425560bc5e7a0247','382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(154,'382b0734-1431-102b-8308-0016ec91a6df','382b0734-1431-102b-8308-0016ec91a6df:b90ac05a2dabb546425560bc5e7a0247') ;
ALTER TABLE UUID_TEMP_TABLE ADD INDEX (COUNTER), ADD INDEX (UUID), ADD INDEX (FROM_UUID); 


UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PARENT=CT.ID_INTERNAL WHERE T.KEY_PARENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CHILD=CT.ID_INTERNAL WHERE T.KEY_CHILD=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, EXECUTION_PATH CT set T.KEY_EXECUTION_PATH_VALUE=CT.ID_INTERNAL WHERE T.KEY_EXECUTION_PATH_VALUE=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_INITIAL_CONTENT=CT.ID_INTERNAL WHERE T.KEY_INITIAL_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PORTAL=CT.ID_INTERNAL WHERE T.KEY_PORTAL=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, AVAILABILITY_POLICY CT set T.KEY_AVAILABILITY_POLICY=CT.ID_INTERNAL WHERE T.KEY_AVAILABILITY_POLICY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE AVAILABILITY_POLICY T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CONTENT=CT.ID_INTERNAL WHERE T.KEY_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE EXECUTION_PATH T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
DROP TABLE UUID_TEMP_TABLE;

UPDATE NODE SET NODE_ORDER=3,ASCENDING=1,VISIBLE=1,CONTENT_ID='aac35724-80c2-4b12-a2ab-01e32dfef791:d1bcf0dd-5f5a-4326-84c8-3be76cbd9211',KEY_CHILD=155,KEY_PARENT=156,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = 'aac35724-80c2-4b12-a2ab-01e32dfef791:d1bcf0dd-5f5a-4326-84c8-3be76cbd9211'  ;

UPDATE NODE SET NODE_ORDER=2,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:a7ae9674-17c9-4166-91f4-a80b38d79a41',KEY_CHILD=157,KEY_PARENT=158,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:a7ae9674-17c9-4166-91f4-a80b38d79a41'  ;

UPDATE NODE SET NODE_ORDER=5,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:c71ee66b-5246-4259-b135-c6eed8d21e7a',KEY_CHILD=159,KEY_PARENT=160,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:c71ee66b-5246-4259-b135-c6eed8d21e7a'  ;

UPDATE NODE SET NODE_ORDER=8,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:98b12f32-87b6-4c9d-8c18-8bd5c00d303c',KEY_CHILD=161,KEY_PARENT=162,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:98b12f32-87b6-4c9d-8c18-8bd5c00d303c'  ;

UPDATE NODE SET NODE_ORDER=10,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:bf220aff-96eb-4a67-ab1c-848f90b6aaa3',KEY_CHILD=163,KEY_PARENT=164,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:bf220aff-96eb-4a67-ab1c-848f90b6aaa3'  ;

UPDATE NODE SET NODE_ORDER=11,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:cc6df75a-3be9-45d9-b47b-3b7544565251',KEY_CHILD=165,KEY_PARENT=166,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:cc6df75a-3be9-45d9-b47b-3b7544565251'  ;

UPDATE NODE SET NODE_ORDER=0,ASCENDING=1,VISIBLE=1,CONTENT_ID='ffd5b9b4-3154-48a5-b642-82279e266158:4a1e15db-279c-426d-8f3d-f4fdb7c2e934',KEY_CHILD=167,KEY_PARENT=168,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = 'ffd5b9b4-3154-48a5-b642-82279e266158:4a1e15db-279c-426d-8f3d-f4fdb7c2e934'  ;

UPDATE NODE SET NODE_ORDER=12,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:360d6646-953c-45cc-a0bf-721365af5e00',KEY_CHILD=169,KEY_PARENT=170,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:360d6646-953c-45cc-a0bf-721365af5e00'  ;

UPDATE NODE SET NODE_ORDER=6,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:51b95e9b-f636-4466-ab5b-f455184b9fe3',KEY_CHILD=171,KEY_PARENT=172,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:51b95e9b-f636-4466-ab5b-f455184b9fe3'  ;

UPDATE NODE SET NODE_ORDER=1,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:c168fb54-39ed-4e76-8c7d-df4827aefc4d',KEY_CHILD=173,KEY_PARENT=174,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:c168fb54-39ed-4e76-8c7d-df4827aefc4d'  ;

UPDATE NODE SET NODE_ORDER=3,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:729d1770-b7f0-4bf9-acd0-b07b951b2e2e',KEY_CHILD=175,KEY_PARENT=176,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:729d1770-b7f0-4bf9-acd0-b07b951b2e2e'  ;

UPDATE NODE SET NODE_ORDER=0,ASCENDING=1,VISIBLE=1,CONTENT_ID='2574818a-f86e-102a-aeb6-0013d3b09da0777c4663-1201-4281-b0cd-78ce5dbef5e9',KEY_CHILD=177,KEY_PARENT=178,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2574818a-f86e-102a-aeb6-0013d3b09da0777c4663-1201-4281-b0cd-78ce5dbef5e9'  ;

UPDATE NODE SET NODE_ORDER=7,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:672d9b28-2100-46ba-9586-f9bb09692747',KEY_CHILD=179,KEY_PARENT=180,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:672d9b28-2100-46ba-9586-f9bb09692747'  ;

UPDATE NODE SET NODE_ORDER=13,ASCENDING=1,VISIBLE=0,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:b7a06c06-79aa-4efb-b132-567798b64be0',KEY_CHILD=181,KEY_PARENT=182,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:b7a06c06-79aa-4efb-b132-567798b64be0'  ;

UPDATE NODE SET NODE_ORDER=9,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:859fb0f6-ee73-4baa-bf34-80ea3ec8ab5f',KEY_CHILD=183,KEY_PARENT=184,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:859fb0f6-ee73-4baa-bf34-80ea3ec8ab5f'  ;

UPDATE NODE SET NODE_ORDER=0,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:8b992ca5-c112-4963-a2ca-91a5713e3f0a',KEY_CHILD=185,KEY_PARENT=186,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:8b992ca5-c112-4963-a2ca-91a5713e3f0a'  ;

UPDATE NODE SET NODE_ORDER=4,ASCENDING=1,VISIBLE=1,CONTENT_ID='2553ca76-f86e-102a-aeb6-0013d3b09da0:9a31d73a-a1d4-462a-af5c-0fb6ffb15761',KEY_CHILD=187,KEY_PARENT=188,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '2553ca76-f86e-102a-aeb6-0013d3b09da0:9a31d73a-a1d4-462a-af5c-0fb6ffb15761'  ;

CREATE TEMPORARY TABLE UUID_TEMP_TABLE(COUNTER integer, UUID varchar(255), FROM_UUID varchar(255));

INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(155,'d1bcf0dd-5f5a-4326-84c8-3be76cbd9211','aac35724-80c2-4b12-a2ab-01e32dfef791:d1bcf0dd-5f5a-4326-84c8-3be76cbd9211') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(156,'aac35724-80c2-4b12-a2ab-01e32dfef791','aac35724-80c2-4b12-a2ab-01e32dfef791:d1bcf0dd-5f5a-4326-84c8-3be76cbd9211') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(157,'2553ca76-f86e-102a-aeb6-0013d3b09da0:a7ae9674-17c9-4166-91f4-a80b38d79a41','2553ca76-f86e-102a-aeb6-0013d3b09da0:a7ae9674-17c9-4166-91f4-a80b38d79a41') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(158,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:a7ae9674-17c9-4166-91f4-a80b38d79a41') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(159,'2553ca76-f86e-102a-aeb6-0013d3b09da0:c71ee66b-5246-4259-b135-c6eed8d21e7a','2553ca76-f86e-102a-aeb6-0013d3b09da0:c71ee66b-5246-4259-b135-c6eed8d21e7a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(160,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:c71ee66b-5246-4259-b135-c6eed8d21e7a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(161,'2553ca76-f86e-102a-aeb6-0013d3b09da0:98b12f32-87b6-4c9d-8c18-8bd5c00d303c','2553ca76-f86e-102a-aeb6-0013d3b09da0:98b12f32-87b6-4c9d-8c18-8bd5c00d303c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(162,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:98b12f32-87b6-4c9d-8c18-8bd5c00d303c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(163,'2553ca76-f86e-102a-aeb6-0013d3b09da0:bf220aff-96eb-4a67-ab1c-848f90b6aaa3','2553ca76-f86e-102a-aeb6-0013d3b09da0:bf220aff-96eb-4a67-ab1c-848f90b6aaa3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(164,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:bf220aff-96eb-4a67-ab1c-848f90b6aaa3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(165,'2553ca76-f86e-102a-aeb6-0013d3b09da0:cc6df75a-3be9-45d9-b47b-3b7544565251','2553ca76-f86e-102a-aeb6-0013d3b09da0:cc6df75a-3be9-45d9-b47b-3b7544565251') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(166,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:cc6df75a-3be9-45d9-b47b-3b7544565251') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(167,'4a1e15db-279c-426d-8f3d-f4fdb7c2e934','ffd5b9b4-3154-48a5-b642-82279e266158:4a1e15db-279c-426d-8f3d-f4fdb7c2e934') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(168,'ffd5b9b4-3154-48a5-b642-82279e266158','ffd5b9b4-3154-48a5-b642-82279e266158:4a1e15db-279c-426d-8f3d-f4fdb7c2e934') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(169,'2553ca76-f86e-102a-aeb6-0013d3b09da0:360d6646-953c-45cc-a0bf-721365af5e00','2553ca76-f86e-102a-aeb6-0013d3b09da0:360d6646-953c-45cc-a0bf-721365af5e00') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(170,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:360d6646-953c-45cc-a0bf-721365af5e00') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(171,'2553ca76-f86e-102a-aeb6-0013d3b09da0:51b95e9b-f636-4466-ab5b-f455184b9fe3','2553ca76-f86e-102a-aeb6-0013d3b09da0:51b95e9b-f636-4466-ab5b-f455184b9fe3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(172,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:51b95e9b-f636-4466-ab5b-f455184b9fe3') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(173,'2553ca76-f86e-102a-aeb6-0013d3b09da0:c168fb54-39ed-4e76-8c7d-df4827aefc4d','2553ca76-f86e-102a-aeb6-0013d3b09da0:c168fb54-39ed-4e76-8c7d-df4827aefc4d') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(174,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:c168fb54-39ed-4e76-8c7d-df4827aefc4d') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(175,'2553ca76-f86e-102a-aeb6-0013d3b09da0:729d1770-b7f0-4bf9-acd0-b07b951b2e2e','2553ca76-f86e-102a-aeb6-0013d3b09da0:729d1770-b7f0-4bf9-acd0-b07b951b2e2e') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(176,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:729d1770-b7f0-4bf9-acd0-b07b951b2e2e') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(177,'2574818a-f86e-102a-aeb6-0013d3b09da0777c4663-1201-4281-b0cd-78ce5dbef5e9','2574818a-f86e-102a-aeb6-0013d3b09da0777c4663-1201-4281-b0cd-78ce5dbef5e9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(178,'2574818a-f86e-102a-aeb6-0013d3b09da0','2574818a-f86e-102a-aeb6-0013d3b09da0777c4663-1201-4281-b0cd-78ce5dbef5e9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(179,'2553ca76-f86e-102a-aeb6-0013d3b09da0:672d9b28-2100-46ba-9586-f9bb09692747','2553ca76-f86e-102a-aeb6-0013d3b09da0:672d9b28-2100-46ba-9586-f9bb09692747') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(180,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:672d9b28-2100-46ba-9586-f9bb09692747') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(181,'2553ca76-f86e-102a-aeb6-0013d3b09da0:b7a06c06-79aa-4efb-b132-567798b64be0','2553ca76-f86e-102a-aeb6-0013d3b09da0:b7a06c06-79aa-4efb-b132-567798b64be0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(182,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:b7a06c06-79aa-4efb-b132-567798b64be0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(183,'2553ca76-f86e-102a-aeb6-0013d3b09da0:859fb0f6-ee73-4baa-bf34-80ea3ec8ab5f','2553ca76-f86e-102a-aeb6-0013d3b09da0:859fb0f6-ee73-4baa-bf34-80ea3ec8ab5f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(184,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:859fb0f6-ee73-4baa-bf34-80ea3ec8ab5f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(185,'2553ca76-f86e-102a-aeb6-0013d3b09da0:8b992ca5-c112-4963-a2ca-91a5713e3f0a','2553ca76-f86e-102a-aeb6-0013d3b09da0:8b992ca5-c112-4963-a2ca-91a5713e3f0a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(186,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:8b992ca5-c112-4963-a2ca-91a5713e3f0a') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(187,'2553ca76-f86e-102a-aeb6-0013d3b09da0:9a31d73a-a1d4-462a-af5c-0fb6ffb15761','2553ca76-f86e-102a-aeb6-0013d3b09da0:9a31d73a-a1d4-462a-af5c-0fb6ffb15761') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(188,'2553ca76-f86e-102a-aeb6-0013d3b09da0','2553ca76-f86e-102a-aeb6-0013d3b09da0:9a31d73a-a1d4-462a-af5c-0fb6ffb15761') ;
ALTER TABLE UUID_TEMP_TABLE ADD INDEX (COUNTER), ADD INDEX (UUID), ADD INDEX (FROM_UUID); 


UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PARENT=CT.ID_INTERNAL WHERE T.KEY_PARENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CHILD=CT.ID_INTERNAL WHERE T.KEY_CHILD=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, EXECUTION_PATH CT set T.KEY_EXECUTION_PATH_VALUE=CT.ID_INTERNAL WHERE T.KEY_EXECUTION_PATH_VALUE=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_INITIAL_CONTENT=CT.ID_INTERNAL WHERE T.KEY_INITIAL_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PORTAL=CT.ID_INTERNAL WHERE T.KEY_PORTAL=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, AVAILABILITY_POLICY CT set T.KEY_AVAILABILITY_POLICY=CT.ID_INTERNAL WHERE T.KEY_AVAILABILITY_POLICY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE AVAILABILITY_POLICY T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CONTENT=CT.ID_INTERNAL WHERE T.KEY_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE EXECUTION_PATH T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
DROP TABLE UUID_TEMP_TABLE;

UPDATE NODE SET NODE_ORDER=38,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0',KEY_CHILD=189,KEY_PARENT=190,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=27,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08',KEY_CHILD=191,KEY_PARENT=192,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08'  ;

UPDATE NODE SET NODE_ORDER=23,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f',KEY_CHILD=193,KEY_PARENT=194,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f'  ;

UPDATE NODE SET NODE_ORDER=19,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d',KEY_CHILD=195,KEY_PARENT=196,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d'  ;

UPDATE NODE SET NODE_ORDER=22,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09',KEY_CHILD=197,KEY_PARENT=198,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09'  ;

UPDATE NODE SET NODE_ORDER=39,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16',KEY_CHILD=199,KEY_PARENT=200,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16'  ;

UPDATE NODE SET NODE_ORDER=16,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:64d01274-211d-49c1-b1ed-aa07a368efd2',KEY_CHILD=201,KEY_PARENT=202,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:64d01274-211d-49c1-b1ed-aa07a368efd2'  ;

UPDATE NODE SET NODE_ORDER=32,ASCENDING=1,VISIBLE=0,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977',KEY_CHILD=203,KEY_PARENT=204,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977'  ;

UPDATE NODE SET NODE_ORDER=25,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca',KEY_CHILD=205,KEY_PARENT=206,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca'  ;

UPDATE NODE SET NODE_ORDER=37,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0',KEY_CHILD=207,KEY_PARENT=208,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=20,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534',KEY_CHILD=209,KEY_PARENT=210,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534'  ;

UPDATE NODE SET NODE_ORDER=21,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9',KEY_CHILD=211,KEY_PARENT=212,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9'  ;

UPDATE NODE SET NODE_ORDER=40,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81',KEY_CHILD=213,KEY_PARENT=214,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81'  ;

UPDATE NODE SET NODE_ORDER=28,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012',KEY_CHILD=215,KEY_PARENT=216,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012'  ;

UPDATE NODE SET NODE_ORDER=36,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0',KEY_CHILD=217,KEY_PARENT=218,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=26,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892',KEY_CHILD=219,KEY_PARENT=220,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892'  ;

UPDATE NODE SET NODE_ORDER=30,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be',KEY_CHILD=221,KEY_PARENT=222,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be'  ;

UPDATE NODE SET NODE_ORDER=33,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934',KEY_CHILD=223,KEY_PARENT=224,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934'  ;

UPDATE NODE SET NODE_ORDER=35,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0',KEY_CHILD=225,KEY_PARENT=226,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=18,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd',KEY_CHILD=227,KEY_PARENT=228,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd'  ;

UPDATE NODE SET NODE_ORDER=24,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635',KEY_CHILD=229,KEY_PARENT=230,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635'  ;

UPDATE NODE SET NODE_ORDER=15,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:05edef46-6c85-4361-b35e-017d73f9bd6c',KEY_CHILD=231,KEY_PARENT=232,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:05edef46-6c85-4361-b35e-017d73f9bd6c'  ;

UPDATE NODE SET NODE_ORDER=34,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4',KEY_CHILD=233,KEY_PARENT=234,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4'  ;

UPDATE NODE SET NODE_ORDER=41,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc',KEY_CHILD=235,KEY_PARENT=236,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc'  ;

UPDATE NODE SET NODE_ORDER=29,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875',KEY_CHILD=237,KEY_PARENT=238,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875'  ;

UPDATE NODE SET NODE_ORDER=17,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba',KEY_CHILD=239,KEY_PARENT=240,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba'  ;

UPDATE NODE SET NODE_ORDER=31,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda',KEY_CHILD=241,KEY_PARENT=242,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda'  ;

UPDATE NODE SET NODE_ORDER=14,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:63bb3ae4-d1a0-4fc7-be16-ae25918a8831',KEY_CHILD=243,KEY_PARENT=244,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:63bb3ae4-d1a0-4fc7-be16-ae25918a8831'  ;

DELETE FROM CONTENT WHERE CONTENT_ID = 'f66c6357-e28c-43dd-a839-940871039dea' ;

DELETE FROM CONTENT WHERE CONTENT_ID = '9ba1269a-0b8f-4daa-bde2-abbd0132327b' ;

DELETE FROM NODE WHERE CONTENT_ID = '9ba1269a-0b8f-4daa-bde2-abbd0132327b:f66c6357-e28c-43dd-a839-940871039dea' ;

DELETE FROM AVAILABILITY_POLICY WHERE CONTENT_ID = '9ba1269a-0b8f-4daa-bde2-abbd0132327b' ;

DELETE FROM EXECUTION_PATH WHERE CONTENT_ID = 'f66c6357-e28c-43dd-a839-940871039dea' ;

DELETE FROM NODE WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:9ba1269a-0b8f-4daa-bde2-abbd0132327b' ;

CREATE TEMPORARY TABLE UUID_TEMP_TABLE(COUNTER integer, UUID varchar(255), FROM_UUID varchar(255));

INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(189,'3d30565c-fb8c-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(190,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(191,'353e875a-75c6-40c9-92bf-88de23686f08','382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(192,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(193,'fcf57231-df5b-4173-8db3-46bf9676ef9f','382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(194,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(195,'264b6a46-3a52-4935-9094-88be1fbfb33d','382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(196,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(197,'30316818-7aaf-4b0c-a770-6ac47463fd09','382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(198,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(199,'fb206e9a-3dc4-440f-a7f8-4838c67fad16','382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(200,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(201,'64d01274-211d-49c1-b1ed-aa07a368efd2','382b0518-1431-102b-8308-0016ec91a6df:64d01274-211d-49c1-b1ed-aa07a368efd2') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(202,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:64d01274-211d-49c1-b1ed-aa07a368efd2') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(203,'1b6d4c06-fdfb-4426-a4a1-c3a217e89977','382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(204,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(205,'20ae78b6-6c5a-4705-b5f5-e233862178ca','382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(206,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(207,'e0181ae0-fb8b-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(208,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(209,'97805947-1f30-4780-8fc6-ee283514f534','382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(210,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(211,'615aa695-c4e3-445c-b63b-7ea40768b4f9','382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(212,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(213,'8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81','382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(214,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(215,'35fc54d5-7ae9-4195-ad94-be98894ce012','382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(216,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(217,'421011e0-fadc-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(218,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(219,'e5325cd5-5fd1-4213-af66-42fc9ed00892','382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(220,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(221,'ebad2636-7c48-402d-944e-95bc587724be','382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(222,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(223,'eabed4f4-7a0b-4e77-8edb-e8525857f934','382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(224,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(225,'452f211a-fada-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(226,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(227,'ec219d83-2928-4c5f-84ea-28768c22d5bd','382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(228,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(229,'d63322ea-b9c3-402a-85b1-07577df66635','382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(230,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(231,'05edef46-6c85-4361-b35e-017d73f9bd6c','382b0518-1431-102b-8308-0016ec91a6df:05edef46-6c85-4361-b35e-017d73f9bd6c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(232,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:05edef46-6c85-4361-b35e-017d73f9bd6c') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(233,'4cbd4716-40e1-4052-ac47-b24db983efd4','382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(234,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(235,'ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc','382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(236,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(237,'2fc34f7f-e879-42b7-936a-e9d60db53875','382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(238,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(239,'b5d85b58-d775-4fca-8f0c-30e2fdb60cba','382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(240,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(241,'315334e8-bfd5-4d19-b4c2-4097393d7dda','382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(242,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(243,'63bb3ae4-d1a0-4fc7-be16-ae25918a8831','382b0518-1431-102b-8308-0016ec91a6df:63bb3ae4-d1a0-4fc7-be16-ae25918a8831') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(244,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:63bb3ae4-d1a0-4fc7-be16-ae25918a8831') ;
ALTER TABLE UUID_TEMP_TABLE ADD INDEX (COUNTER), ADD INDEX (UUID), ADD INDEX (FROM_UUID); 


UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PARENT=CT.ID_INTERNAL WHERE T.KEY_PARENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CHILD=CT.ID_INTERNAL WHERE T.KEY_CHILD=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, EXECUTION_PATH CT set T.KEY_EXECUTION_PATH_VALUE=CT.ID_INTERNAL WHERE T.KEY_EXECUTION_PATH_VALUE=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_INITIAL_CONTENT=CT.ID_INTERNAL WHERE T.KEY_INITIAL_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PORTAL=CT.ID_INTERNAL WHERE T.KEY_PORTAL=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, AVAILABILITY_POLICY CT set T.KEY_AVAILABILITY_POLICY=CT.ID_INTERNAL WHERE T.KEY_AVAILABILITY_POLICY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE AVAILABILITY_POLICY T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CONTENT=CT.ID_INTERNAL WHERE T.KEY_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE EXECUTION_PATH T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
DROP TABLE UUID_TEMP_TABLE;

UPDATE NODE SET NODE_ORDER=37,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0',KEY_CHILD=245,KEY_PARENT=246,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=26,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08',KEY_CHILD=247,KEY_PARENT=248,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08'  ;

UPDATE NODE SET NODE_ORDER=22,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f',KEY_CHILD=249,KEY_PARENT=250,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f'  ;

UPDATE NODE SET NODE_ORDER=18,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d',KEY_CHILD=251,KEY_PARENT=252,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d'  ;

UPDATE NODE SET NODE_ORDER=21,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09',KEY_CHILD=253,KEY_PARENT=254,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09'  ;

UPDATE NODE SET NODE_ORDER=38,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16',KEY_CHILD=255,KEY_PARENT=256,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16'  ;

UPDATE NODE SET NODE_ORDER=31,ASCENDING=1,VISIBLE=0,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977',KEY_CHILD=257,KEY_PARENT=258,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977'  ;

UPDATE NODE SET NODE_ORDER=24,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca',KEY_CHILD=259,KEY_PARENT=260,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca'  ;

UPDATE NODE SET NODE_ORDER=36,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0',KEY_CHILD=261,KEY_PARENT=262,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=19,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534',KEY_CHILD=263,KEY_PARENT=264,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534'  ;

UPDATE NODE SET NODE_ORDER=20,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9',KEY_CHILD=265,KEY_PARENT=266,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9'  ;

UPDATE NODE SET NODE_ORDER=39,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81',KEY_CHILD=267,KEY_PARENT=268,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81'  ;

UPDATE NODE SET NODE_ORDER=27,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012',KEY_CHILD=269,KEY_PARENT=270,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012'  ;

UPDATE NODE SET NODE_ORDER=35,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0',KEY_CHILD=271,KEY_PARENT=272,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=25,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892',KEY_CHILD=273,KEY_PARENT=274,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892'  ;

UPDATE NODE SET NODE_ORDER=29,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be',KEY_CHILD=275,KEY_PARENT=276,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be'  ;

UPDATE NODE SET NODE_ORDER=32,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934',KEY_CHILD=277,KEY_PARENT=278,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934'  ;

UPDATE NODE SET NODE_ORDER=34,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0',KEY_CHILD=279,KEY_PARENT=280,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0'  ;

UPDATE NODE SET NODE_ORDER=17,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd',KEY_CHILD=281,KEY_PARENT=282,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd'  ;

UPDATE NODE SET NODE_ORDER=23,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635',KEY_CHILD=283,KEY_PARENT=284,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635'  ;

UPDATE NODE SET NODE_ORDER=33,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4',KEY_CHILD=285,KEY_PARENT=286,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4'  ;

UPDATE NODE SET NODE_ORDER=40,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc',KEY_CHILD=287,KEY_PARENT=288,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc'  ;

UPDATE NODE SET NODE_ORDER=28,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875',KEY_CHILD=289,KEY_PARENT=290,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875'  ;

UPDATE NODE SET NODE_ORDER=16,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba',KEY_CHILD=291,KEY_PARENT=292,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba'  ;

UPDATE NODE SET NODE_ORDER=30,ASCENDING=1,VISIBLE=1,CONTENT_ID='382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda',KEY_CHILD=293,KEY_PARENT=294,KEY_ROOT_DOMAIN_OBJECT=1,OJB_CONCRETE_CLASS='net.sourceforge.fenixedu.domain.contents.ExplicitOrderNode' WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda'  ;

DELETE FROM CONTENT WHERE CONTENT_ID = '64d01274-211d-49c1-b1ed-aa07a368efd2' ;

DELETE FROM NODE WHERE CONTENT_ID = '382b0518-1431-102b-8308-0016ec91a6df:64d01274-211d-49c1-b1ed-aa07a368efd2' ;

DELETE FROM EXECUTION_PATH WHERE CONTENT_ID = '1b44b7cb-e1f8-432d-99cf-f6e4cb82cf95' ;

DELETE FROM AVAILABILITY_POLICY WHERE CONTENT_ID = '64d01274-211d-49c1-b1ed-aa07a368efd2' ;

DELETE FROM NODE WHERE CONTENT_ID = '64d01274-211d-49c1-b1ed-aa07a368efd2:1b44b7cb-e1f8-432d-99cf-f6e4cb82cf95' ;

DELETE FROM CONTENT WHERE CONTENT_ID = '1b44b7cb-e1f8-432d-99cf-f6e4cb82cf95' ;

CREATE TEMPORARY TABLE UUID_TEMP_TABLE(COUNTER integer, UUID varchar(255), FROM_UUID varchar(255));

INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(245,'3d30565c-fb8c-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(246,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:3d30565c-fb8c-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(247,'353e875a-75c6-40c9-92bf-88de23686f08','382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(248,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:353e875a-75c6-40c9-92bf-88de23686f08') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(249,'fcf57231-df5b-4173-8db3-46bf9676ef9f','382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(250,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:fcf57231-df5b-4173-8db3-46bf9676ef9f') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(251,'264b6a46-3a52-4935-9094-88be1fbfb33d','382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(252,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:264b6a46-3a52-4935-9094-88be1fbfb33d') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(253,'30316818-7aaf-4b0c-a770-6ac47463fd09','382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(254,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:30316818-7aaf-4b0c-a770-6ac47463fd09') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(255,'fb206e9a-3dc4-440f-a7f8-4838c67fad16','382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(256,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:fb206e9a-3dc4-440f-a7f8-4838c67fad16') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(257,'1b6d4c06-fdfb-4426-a4a1-c3a217e89977','382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(258,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:1b6d4c06-fdfb-4426-a4a1-c3a217e89977') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(259,'20ae78b6-6c5a-4705-b5f5-e233862178ca','382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(260,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:20ae78b6-6c5a-4705-b5f5-e233862178ca') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(261,'e0181ae0-fb8b-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(262,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:e0181ae0-fb8b-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(263,'97805947-1f30-4780-8fc6-ee283514f534','382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(264,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:97805947-1f30-4780-8fc6-ee283514f534') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(265,'615aa695-c4e3-445c-b63b-7ea40768b4f9','382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(266,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:615aa695-c4e3-445c-b63b-7ea40768b4f9') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(267,'8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81','382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(268,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:8d8e5f9a-fc18-461b-a2f8-e5b4c333fe81') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(269,'35fc54d5-7ae9-4195-ad94-be98894ce012','382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(270,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:35fc54d5-7ae9-4195-ad94-be98894ce012') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(271,'421011e0-fadc-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(272,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:421011e0-fadc-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(273,'e5325cd5-5fd1-4213-af66-42fc9ed00892','382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(274,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:e5325cd5-5fd1-4213-af66-42fc9ed00892') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(275,'ebad2636-7c48-402d-944e-95bc587724be','382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(276,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:ebad2636-7c48-402d-944e-95bc587724be') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(277,'eabed4f4-7a0b-4e77-8edb-e8525857f934','382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(278,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:eabed4f4-7a0b-4e77-8edb-e8525857f934') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(279,'452f211a-fada-102a-b5ba-0013d3b09da0','382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(280,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:452f211a-fada-102a-b5ba-0013d3b09da0') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(281,'ec219d83-2928-4c5f-84ea-28768c22d5bd','382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(282,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:ec219d83-2928-4c5f-84ea-28768c22d5bd') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(283,'d63322ea-b9c3-402a-85b1-07577df66635','382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(284,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:d63322ea-b9c3-402a-85b1-07577df66635') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(285,'4cbd4716-40e1-4052-ac47-b24db983efd4','382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(286,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:4cbd4716-40e1-4052-ac47-b24db983efd4') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(287,'ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc','382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(288,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:ef12edc1-ac5d-4f1e-aa9f-8e86b6198ddc') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(289,'2fc34f7f-e879-42b7-936a-e9d60db53875','382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(290,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:2fc34f7f-e879-42b7-936a-e9d60db53875') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(291,'b5d85b58-d775-4fca-8f0c-30e2fdb60cba','382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(292,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:b5d85b58-d775-4fca-8f0c-30e2fdb60cba') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(293,'315334e8-bfd5-4d19-b4c2-4097393d7dda','382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda') ;
INSERT INTO UUID_TEMP_TABLE(COUNTER,UUID,FROM_UUID) VALUES(294,'382b0518-1431-102b-8308-0016ec91a6df','382b0518-1431-102b-8308-0016ec91a6df:315334e8-bfd5-4d19-b4c2-4097393d7dda') ;
ALTER TABLE UUID_TEMP_TABLE ADD INDEX (COUNTER), ADD INDEX (UUID), ADD INDEX (FROM_UUID); 


UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PARENT=CT.ID_INTERNAL WHERE T.KEY_PARENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE NODE T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CHILD=CT.ID_INTERNAL WHERE T.KEY_CHILD=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, EXECUTION_PATH CT set T.KEY_EXECUTION_PATH_VALUE=CT.ID_INTERNAL WHERE T.KEY_EXECUTION_PATH_VALUE=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_INITIAL_CONTENT=CT.ID_INTERNAL WHERE T.KEY_INITIAL_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_PORTAL=CT.ID_INTERNAL WHERE T.KEY_PORTAL=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE CONTENT T, UUID_TEMP_TABLE UIT, AVAILABILITY_POLICY CT set T.KEY_AVAILABILITY_POLICY=CT.ID_INTERNAL WHERE T.KEY_AVAILABILITY_POLICY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE AVAILABILITY_POLICY T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_CONTENT=CT.ID_INTERNAL WHERE T.KEY_CONTENT=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
UPDATE EXECUTION_PATH T, UUID_TEMP_TABLE UIT, CONTENT CT set T.KEY_FUNCTIONALITY=CT.ID_INTERNAL WHERE T.KEY_FUNCTIONALITY=UIT.COUNTER AND T.CONTENT_ID = UIT.FROM_UUID AND CT.CONTENT_ID=UIT.UUID;
DROP TABLE UUID_TEMP_TABLE;



COMMIT;
