Skip to content

Commit

Permalink
EZEE-3097: Added data for Site skeleton (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikadamczyk authored May 12, 2020
1 parent 595f667 commit 6e54f0d
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 9 deletions.
31 changes: 22 additions & 9 deletions Resources/sql/mysql/cleandata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `l
(43,0,2,'eng-GB','Form');

INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) VALUES
(6,'form',NULL,'Form','ezcontentnavigationpart');
(6,'form',NULL,'Form','ezcontentnavigationpart'),
(7,'site_skeleton',NULL,'Site skeleton','ezcontentnavigationpart');

INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`,`is_hidden`) VALUES
(42,1,52,2,3,1442481743,'Welcome to eZ Platform Enterprise Edition',14,1442481743,'34720ff636e1d4ce512f762dc638e4ac',1,1,false),
(1,1,53,2,3,1486473151,'Form Uploads',14,1486473151,'6797ab09a3e84316f09c4ccabce90e2d',3,1,false),
(1,1,54,2,2,1537166893,'Forms',14,1537166893,'9e863fbb0fb835ce050032b4f00de61d',6,1,false);
(1,1,54,2,2,1537166893,'Forms',14,1537166893,'9e863fbb0fb835ce050032b4f00de61d',6,1,false),
(1,1,55,2,3,1586855342,'Site skeletons',14,1586855342,'1ac4a4b7108e607682beaba14ba860c5',7,1,false);

INSERT INTO `ezcontentobject_attribute` (`attribute_original_id`, `contentclassattribute_id`, `contentobject_id`, `data_float`, `data_int`, `data_text`, `data_type_string`, `id`, `language_code`, `language_id`, `sort_key_int`, `sort_key_string`, `version`) VALUES
(0,185,52,NULL,NULL,'Welcome to eZ Platform Enterprise Edition','ezstring',242,'eng-GB',3,0,'welcome to ez platform enterprise edition',1),
Expand All @@ -36,43 +38,54 @@ INSERT INTO `ezcontentobject_attribute` (`attribute_original_id`, `contentclassa
(0,156,54,NULL,NULL,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',252,'eng-GB',2,0,'',1),
(0,119,54,NULL,NULL,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',251,'eng-GB',2,0,'',1),
(0,155,54,NULL,NULL,NULL,'ezstring',250,'eng-GB',2,0,'',1),
(0,4,54,NULL,NULL,'Forms','ezstring',249,'eng-GB',2,0,'forms',1);
(0,4,54,NULL,NULL,'Forms','ezstring',249,'eng-GB',2,0,'forms',1),
(0,4,55,NULL,NULL,'Site skeletons','ezstring',253,'eng-GB',3,0,'site skeletons',1),
(0,155,55,NULL,NULL,NULL,'ezstring',254,'eng-GB',3,0,'',1),
(0,119,55,NULL,NULL,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',255,'eng-GB',3,0,'',1),
(0,156,55,NULL,NULL,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',256,'eng-GB',3,0,'',1);

INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES
('eng-GB',1,52,2,'Welcome to eZ Platform Enterprise Edition','eng-GB'),
('eng-GB',1,53,2,'Form Uploads','eng-GB'),
('eng-GB',1,54,3,'Forms','eng-GB');
('eng-GB',1,54,3,'Forms','eng-GB'),
('eng-GB',1,55,3,'Site skeletons','eng-GB');

INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) VALUES
(52,1442481742,14,512,2,3,1442481743,1,0,1,0),
(53,1486473143,14,513,2,3,1486473151,1,0,1,0),
(54,1537166893,14,514,2,2,1537166893,1,0,1,0);
(54,1537166893,14,514,2,2,1537166893,1,0,1,0),
(55,1586855342,14,515,2,3,1586855342,1,0,1,0);

INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) VALUES
(52,1),
(53,1),
(54,1);
(54,1),
(55,1);

INSERT INTO `eznode_assignment` (`contentobject_id`, `contentobject_version`, `from_node_id`, `id`, `is_main`, `op_code`, `parent_node`, `parent_remote_id`, `remote_id`, `sort_field`, `sort_order`, `priority`, `is_hidden`) VALUES
(53,1,0,40,1,2,52,'0543630fa051a1e2be54dbd32da2420f','0',1,1,0,0),
(54,1,0,41,1,2,2,'1dad43be47e3a5c12cd06010aab65112','0',9,1,0,0);
(54,1,0,41,1,2,2,'1dad43be47e3a5c12cd06010aab65112','0',9,1,0,0),
(55,1,0,42,1,2,2,'9658f6deaeef9fc27300df5d5f566b37','0',9,1,0,0);

INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) VALUES
('eznode:54','eznode',0,38,0,1,3,38,19,'form-uploads','2c5f0c4eb6b8ba8d176b87665bdbe1af'),
('eznode:55','eznode',0,39,0,1,2,39,0,'forms','ac68b62abfd6a9fe26e8ac4236c8ce0c'),
('eznode:42','eznode',0,40,0,1,3,40,0,'ez-platform','76e323bf7efc1fad8935eb37bd557b92');
('eznode:42','eznode',0,40,0,1,3,40,0,'ez-platform','76e323bf7efc1fad8935eb37bd557b92'),
('eznode:56','eznode',0,41,0,1,3,41,0,'site-skeletons','25d9c27d68ba0e40468e05a61f96d31d');


INSERT INTO `ezurlalias_ml_incr` VALUES (38);
INSERT INTO `ezurlalias_ml_incr` VALUES (39);
INSERT INTO `ezurlalias_ml_incr` VALUES (40);
INSERT INTO `ezurlalias_ml_incr` VALUES (41);

UPDATE `ezcontentobject_tree` SET contentobject_id=52, contentobject_version=1, remote_id='f3e90596361e31d496d4026eb624c983' WHERE path_string='/1/2/';

INSERT INTO `ezcontentobject_tree` (`contentobject_id`, `contentobject_is_published`, `contentobject_version`, `depth`, `is_hidden`, `is_invisible`, `main_node_id`, `modified_subnode`, `node_id`, `parent_node_id`, `path_identification_string`, `path_string`, `priority`, `remote_id`, `sort_field`, `sort_order`) VALUES
(1,1,9,2,0,0,42,1486473151,42,2,'node_2/ez_platform','/1/2/42/',0,'581da01017b80b1afb1e5e2a3081c724',1,1),
(53,1,1,3,0,0,54,1486473151,54,52,'media/files/form_uploads','/1/43/52/54/',0,'0543630fa051a1e2be54dbd32da2420f',1,1),
(54,1,1,1,0,0,55,1537166893,55,1,'forms','/1/55/',0,'1dad43be47e3a5c12cd06010aab65112',9,1);
(54,1,1,1,0,0,55,1537166893,55,1,'forms','/1/55/',0,'1dad43be47e3a5c12cd06010aab65112',9,1),
(55,1,1,2,0,0,56,1586855342,56,1,'site_skeletons','/1/56/',0,'9658f6deaeef9fc27300df5d5f566b37',9,1);

INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) VALUES
(484,251,'3'),
Expand Down
13 changes: 13 additions & 0 deletions Resources/sql/postgresql/cleandata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "l
INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") VALUES (43,0,2,'eng-GB','Form');

INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") VALUES (6,'form',NULL,'Form','ezcontentnavigationpart');
INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") VALUES (7,'site_skeleton',NULL,'Site skeleton','ezcontentnavigationpart');

INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status", "is_hidden") VALUES (42,1,52,2,3,1442481743,'Welcome to eZ Platform Enterprise Edition',14,1442481743,'34720ff636e1d4ce512f762dc638e4ac',1,1,false);
INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status", "is_hidden") VALUES (1,1,53,2,3,1486473151,'Form Uploads',14,1486473151,'6797ab09a3e84316f09c4ccabce90e2d',3,1,false);
INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status", "is_hidden") VALUES (1,1,54,2,2,1537166893,'Forms',14,1537166893,'9e863fbb0fb835ce050032b4f00de61d',6,1,false);
INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status", "is_hidden") VALUES (1,1,55,2,3,1586855342,'Site skeletons',14,1586855342,'1ac4a4b7108e607682beaba14ba860c5',7,1,false);

INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,185,52,NULL,NULL,'Welcome to eZ Platform Enterprise Edition','ezstring',242,'eng-GB',3,0,'welcome to ez platform enterprise edition',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,186,52,NULL,NULL,'You are now ready to start your project.','ezstring',243,'eng-GB',3,0,'you are now ready to start your project.',1);
Expand All @@ -30,35 +32,46 @@ INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassa
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,119,54,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',251,'eng-GB',2,0,'',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,155,54,NULL,NULL,NULL,'ezstring',250,'eng-GB',2,0,'',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,4,54,NULL,NULL,'Forms','ezstring',249,'eng-GB',2,0,'forms',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,119,55,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',255,'eng-GB',3,0,'',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,156,55,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',256,'eng-GB',3,0,'',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,155,55,NULL,NULL,NULL,'ezstring',254,'eng-GB',3,0,'',1);
INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") VALUES (0,4,55,NULL,NULL,'Site skeletons','ezstring',253,'eng-GB',3,0,'site skeletons',1);

INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") VALUES ('eng-GB',1,52,2,'Welcome to eZ Platform Enterprise Edition','eng-GB');
INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") VALUES ('eng-GB',1,53,2,'Form Uploads','eng-GB');
INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") VALUES ('eng-GB',1,54,3,'Forms','eng-GB');
INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") VALUES ('eng-GB',1,55,3,'Site skeletons','eng-GB');

INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") VALUES (52,1442481742,14,512,2,3,1442481743,1,0,1,0);
INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") VALUES (53,1486473143,14,513,2,3,1486473151,1,0,1,0);
INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") VALUES (54,1537166893,14,514,2,2,1537166893,1,0,1,0);
INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") VALUES (55,1586855342,14,515,2,3,1586855342,1,0,1,0);

INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") VALUES (52,1);
INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") VALUES (53,1);
INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") VALUES (54,1);
INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") VALUES (55,1);

INSERT INTO "eznode_assignment" ("contentobject_id", "contentobject_version", "from_node_id", "id", "is_main", "op_code", "parent_node", "parent_remote_id", "remote_id", "sort_field", "sort_order", "priority", "is_hidden") VALUES (53,1,0,40,1,2,52,'0543630fa051a1e2be54dbd32da2420f','0',1,1,0,0);
INSERT INTO "eznode_assignment" ("contentobject_id", "contentobject_version", "from_node_id", "id", "is_main", "op_code", "parent_node", "parent_remote_id", "remote_id", "sort_field", "sort_order", "priority", "is_hidden") VALUES (54,1,0,41,1,2,2,'1dad43be47e3a5c12cd06010aab65112','0',9,1,0,0);
INSERT INTO "eznode_assignment" ("contentobject_id", "contentobject_version", "from_node_id", "id", "is_main", "op_code", "parent_node", "parent_remote_id", "remote_id", "sort_field", "sort_order", "priority", "is_hidden") VALUES (55,1,0,42,1,2,2,'9658f6deaeef9fc27300df5d5f566b37','0',9,1,0,0);

INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") VALUES ('eznode:54','eznode',0,38,0,1,3,38,19,'form-uploads','2c5f0c4eb6b8ba8d176b87665bdbe1af');
INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") VALUES ('eznode:55','eznode',0,39,0,1,2,39,0,'forms','ac68b62abfd6a9fe26e8ac4236c8ce0c');
INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") VALUES ('eznode:42','eznode',0,40,0,1,3,40,0,'ez-platform','76e323bf7efc1fad8935eb37bd557b92');
INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") VALUES ('eznode:56','eznode',0,41,0,1,3,41,0,'site-skeletons','25d9c27d68ba0e40468e05a61f96d31d');

INSERT INTO "ezurlalias_ml_incr" ("id") VALUES (38);
INSERT INTO "ezurlalias_ml_incr" ("id") VALUES (39);
INSERT INTO "ezurlalias_ml_incr" ("id") VALUES (40);
INSERT INTO "ezurlalias_ml_incr" ("id") VALUES (41);

UPDATE "ezcontentobject_tree" SET contentobject_id=52, contentobject_version=1, remote_id='f3e90596361e31d496d4026eb624c983' WHERE path_string='/1/2/';

INSERT INTO "ezcontentobject_tree" ("contentobject_id", "contentobject_is_published", "contentobject_version", "depth", "is_hidden", "is_invisible", "main_node_id", "modified_subnode", "node_id", "parent_node_id", "path_identification_string", "path_string", "priority", "remote_id", "sort_field", "sort_order") VALUES (1,1,9,2,0,0,42,1486473151,42,2,'node_2/ez_platform','/1/2/42/',0,'581da01017b80b1afb1e5e2a3081c724',1,1);
INSERT INTO "ezcontentobject_tree" ("contentobject_id", "contentobject_is_published", "contentobject_version", "depth", "is_hidden", "is_invisible", "main_node_id", "modified_subnode", "node_id", "parent_node_id", "path_identification_string", "path_string", "priority", "remote_id", "sort_field", "sort_order") VALUES (53,1,1,3,0,0,54,1486473151,54,52,'media/files/form_uploads','/1/43/52/54/',0,'0543630fa051a1e2be54dbd32da2420f',1,1);
INSERT INTO "ezcontentobject_tree" ("contentobject_id", "contentobject_is_published", "contentobject_version", "depth", "is_hidden", "is_invisible", "main_node_id", "modified_subnode", "node_id", "parent_node_id", "path_identification_string", "path_string", "priority", "remote_id", "sort_field", "sort_order") VALUES (54,1,1,1,0,0,55,1537166893,55,1,'forms','/1/55/',0,'1dad43be47e3a5c12cd06010aab65112',9,1);
INSERT INTO "ezcontentobject_tree" ("contentobject_id", "contentobject_is_published", "contentobject_version", "depth", "is_hidden", "is_invisible", "main_node_id", "modified_subnode", "node_id", "parent_node_id", "path_identification_string", "path_string", "priority", "remote_id", "sort_field", "sort_order") VALUES (55,1,1,2,0,0,56,1586855342,56,1,'site_skeletons','/1/56/',0,'9658f6deaeef9fc27300df5d5f566b37',9,1);

INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") VALUES (484,251,'3');
INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") VALUES (485,251,'6');
Expand Down

0 comments on commit 6e54f0d

Please sign in to comment.