From 1e471d93e71792edb51f599d24274c1e6a96dada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 16 Jul 2026 17:40:57 +0200 Subject: [PATCH 01/88] [Doctrine Migrations] Added Doctrine Migrations-based schema and data install path Adds an ibexa/doctrine-migrations-based alternative to the event-driven SchemaBuilderEvent mechanism CoreInstaller has used to install the core schema and bootstrap data. Controlled by the new "ibexa.installer.schema_builder_event.enabled" setting (defaults to true, preserving current behavior): - When enabled (default), CoreInstaller keeps dispatching SchemaBuilderEvent and importing cleandata.sql directly, unchanged. - When disabled, schema creation and data import are each modeled as an AbstractVersion migration (InstallSchemaMigration, ImportDataMigration), tagged for discovery, and executed via TaggedMigrationsRunner through the new IbexaOnlyDependencyFactory service - an independent Doctrine Migrations DependencyFactory scoped to only Ibexa-tagged migrations, so a project's own migrations are never accidentally executed. Each migration's execution is recorded in the standard Doctrine Migrations versioning table, making repeated installs idempotent. InstallSchemaMigration's SQL (mysql/postgresql/sqlite, one statement per file) is generated from the existing schema.yaml; ImportDataMigration's from the existing per-DBMS cleandata.sql files (with the mysql statements reused verbatim for sqlite, which previously had no cleandata support at all). --- composer.json | 7 + phpstan-baseline.neon | 72 -- .../DependencyInjection/Configuration.php | 39 + .../IbexaCoreExtension.php | 12 + .../Command/InstallPlatformCommand.php | 89 +- .../Compiler/InstallerTagPass.php | 34 +- .../IbexaRepositoryInstallerBundle.php | 2 - .../Installer/CoreInstaller.php | 111 ++- .../Migration/ImportDataMigration.php | 45 + .../Migration/InstallSchemaMigration.php | 45 + .../Migration/TaggedMigrationsRunner.php | 113 +++ .../Resources/config/services.yml | 28 +- .../Resources/migrations/import_data.yaml | 243 ++++++ .../Resources/migrations/install_schema.yaml | 773 ++++++++++++++++++ .../sql/mysql/0001_create_ezbinaryfile.sql | 1 + .../sql/mysql/0002_create_ezcobj_state.sql | 1 + .../mysql/0003_create_ezcobj_state_group.sql | 1 + ...004_create_ezcobj_state_group_language.sql | 1 + .../0005_create_ezcobj_state_language.sql | 1 + .../mysql/0006_create_ezcobj_state_link.sql | 1 + .../mysql/0007_create_ezcontent_language.sql | 1 + .../sql/mysql/0008_create_ezuser.sql | 1 + .../0009_create_ezcontentobject_tree.sql | 1 + .../0010_create_ezcontentbrowsebookmark.sql | 1 + .../sql/mysql/0011_create_ezcontentclass.sql | 1 + .../0012_create_ezcontentclass_attribute.sql | 1 + ...013_create_ezcontentclass_attribute_ml.sql | 1 + .../0014_create_ezcontentclass_classgroup.sql | 1 + .../mysql/0015_create_ezcontentclass_name.sql | 1 + .../mysql/0016_create_ezcontentclassgroup.sql | 1 + .../sql/mysql/0017_create_ezcontentobject.sql | 1 + .../0018_create_ezcontentobject_attribute.sql | 1 + .../0019_create_ezcontentobject_link.sql | 1 + .../0020_create_ezcontentobject_name.sql | 1 + .../0021_create_ezcontentobject_trash.sql | 1 + .../0022_create_ezcontentobject_version.sql | 1 + .../sql/mysql/0023_create_ezdfsfile.sql | 1 + .../sql/mysql/0024_create_ezgmaplocation.sql | 1 + .../sql/mysql/0025_create_ezimagefile.sql | 1 + .../sql/mysql/0026_create_ezkeyword.sql | 1 + .../0027_create_ezkeyword_attribute_link.sql | 1 + .../sql/mysql/0028_create_ezmedia.sql | 1 + .../mysql/0029_create_eznode_assignment.sql | 1 + .../sql/mysql/0030_create_eznotification.sql | 1 + .../sql/mysql/0031_create_ezpackage.sql | 1 + .../sql/mysql/0032_create_ezpolicy.sql | 1 + .../mysql/0033_create_ezpolicy_limitation.sql | 1 + .../0034_create_ezpolicy_limitation_value.sql | 1 + .../sql/mysql/0035_create_ezpreferences.sql | 1 + .../sql/mysql/0036_create_ezrole.sql | 1 + .../0037_create_ezsearch_object_word_link.sql | 1 + .../sql/mysql/0038_create_ezsearch_word.sql | 1 + .../sql/mysql/0039_create_ezsection.sql | 1 + .../sql/mysql/0040_create_ezsite_data.sql | 1 + .../sql/mysql/0041_create_ezurl.sql | 1 + .../mysql/0042_create_ezurl_object_link.sql | 1 + .../sql/mysql/0043_create_ezurlalias.sql | 1 + .../sql/mysql/0044_create_ezurlalias_ml.sql | 1 + .../mysql/0045_create_ezurlalias_ml_incr.sql | 1 + .../sql/mysql/0046_create_ezurlwildcard.sql | 1 + .../mysql/0047_create_ezuser_accountkey.sql | 1 + .../sql/mysql/0048_create_ezuser_role.sql | 1 + .../sql/mysql/0049_create_ezuser_setting.sql | 1 + .../sql/mysql/0050_create_ibexa_setting.sql | 1 + .../mysql/0051_create_ibexa_token_type.sql | 1 + .../sql/mysql/0052_create_ibexa_token.sql | 1 + ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 + ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 + .../mysql/data/0001_insert_ezcobj_state.sql | 3 + .../data/0002_insert_ezcobj_state_group.sql | 2 + ...003_insert_ezcobj_state_group_language.sql | 2 + .../0004_insert_ezcobj_state_language.sql | 3 + .../data/0005_insert_ezcobj_state_link.sql | 13 + .../data/0006_insert_ezcontent_language.sql | 2 + .../mysql/data/0007_insert_ezcontentclass.sql | 7 + .../0008_insert_ezcontentclass_attribute.sql | 25 + .../0009_insert_ezcontentclass_classgroup.sql | 7 + .../data/0010_insert_ezcontentclass_name.sql | 7 + .../data/0011_insert_ezcontentclassgroup.sql | 4 + .../data/0012_insert_ezcontentobject.sql | 13 + .../0013_insert_ezcontentobject_attribute.sql | 41 + .../data/0014_insert_ezcontentobject_name.sql | 13 + .../data/0015_insert_ezcontentobject_tree.sql | 14 + .../0016_insert_ezcontentobject_version.sql | 13 + .../data/0017_insert_eznode_assignment.sql | 13 + .../sql/mysql/data/0018_insert_ezpolicy.sql | 9 + .../data/0019_insert_ezpolicy_limitation.sql | 7 + .../0020_insert_ezpolicy_limitation_value.sql | 8 + .../sql/mysql/data/0021_insert_ezrole.sql | 5 + .../sql/mysql/data/0022_insert_ezsection.sql | 4 + .../mysql/data/0023_insert_ezsite_data.sql | 2 + .../sql/mysql/data/0024_insert_ezurlalias.sql | 13 + .../mysql/data/0025_insert_ezurlalias_ml.sql | 26 + .../data/0026_insert_ezurlalias_ml_incr.sql | 4 + .../sql/mysql/data/0027_insert_ezuser.sql | 3 + .../mysql/data/0028_insert_ezuser_role.sql | 7 + .../mysql/data/0029_insert_ezuser_setting.sql | 3 + .../mysql/data/0030_insert_ezpreferences.sql | 2 + .../postgresql/0001_create_ezbinaryfile.sql | 1 + .../postgresql/0002_create_ezcobj_state.sql | 1 + ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 + ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 + ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 + .../0006_create_ezcobj_state_group.sql | 1 + ...j_state_group_ezcobj_state_group_lmask.sql | 1 + ...te_group_ezcobj_state_group_identifier.sql | 1 + ...009_create_ezcobj_state_group_language.sql | 1 + .../0010_create_ezcobj_state_language.sql | 1 + .../0011_create_ezcobj_state_link.sql | 1 + .../0012_create_ezcontent_language.sql | 1 + ...ntent_language_ezcontent_language_name.sql | 1 + .../sql/postgresql/0014_create_ezuser.sql | 1 + .../0015_index_ezuser_ezuser_login.sql | 1 + .../0016_create_ezcontentobject_tree.sql | 1 + ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 + ...t_tree_ezcontentobject_tree_path_ident.sql | 1 + ...ject_tree_contentobject_id_path_string.sql | 1 + ...object_tree_ezcontentobject_tree_co_id.sql | 1 + ...object_tree_ezcontentobject_tree_depth.sql | 1 + ...tobject_tree_ezcontentobject_tree_path.sql | 1 + ..._ezcontentobject_tree_modified_subnode.sql | 1 + ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 + .../0025_create_ezcontentbrowsebookmark.sql | 1 + ...kmark_ezcontentbrowsebookmark_location.sql | 1 + ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 + ..._ezcontentbrowsebookmark_user_location.sql | 1 + .../postgresql/0029_create_ezcontentclass.sql | 1 + ..._ezcontentclass_ezcontentclass_version.sql | 1 + ...contentclass_ezcontentclass_identifier.sql | 1 + .../0032_create_ezcontentclass_attribute.sql | 1 + ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 + ...lass_attribute_ezcontentclass_attr_dts.sql | 1 + ...035_create_ezcontentclass_attribute_ml.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + .../0037_create_ezcontentclass_classgroup.sql | 1 + .../0038_create_ezcontentclass_name.sql | 1 + .../0039_create_ezcontentclassgroup.sql | 1 + .../0040_create_ezcontentobject.sql | 1 + ...zcontentobject_ezcontentobject_classid.sql | 1 + ..._ezcontentobject_ezcontentobject_lmask.sql | 1 + ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 + ...zcontentobject_ezcontentobject_section.sql | 1 + ...tobject_ezcontentobject_currentversion.sql | 1 + ..._ezcontentobject_ezcontentobject_owner.sql | 1 + ...ezcontentobject_ezcontentobject_status.sql | 1 + ...ontentobject_ezcontentobject_remote_id.sql | 1 + .../0049_create_ezcontentobject_attribute.sql | 1 + ...ntobject_attribute_co_id_ver_lang_code.sql | 1 + ...attribute_ezcontentobject_classattr_id.sql | 1 + ...ontentobject_attribute_sort_key_string.sql | 1 + ...zcontentobject_attribute_language_code.sql | 1 + ...ezcontentobject_attribute_sort_key_int.sql | 1 + ...te_ezcontentobject_attribute_co_id_ver.sql | 1 + .../0056_create_ezcontentobject_link.sql | 1 + ...zcontentobject_link_ezco_link_to_co_id.sql | 1 + ...ex_ezcontentobject_link_ezco_link_from.sql | 1 + ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 + .../0060_create_ezcontentobject_name.sql | 1 + ...ject_name_ezcontentobject_name_lang_id.sql | 1 + ...bject_name_ezcontentobject_name_cov_id.sql | 1 + ...tobject_name_ezcontentobject_name_name.sql | 1 + .../0064_create_ezcontentobject_trash.sql | 1 + ...contentobject_trash_ezcobj_trash_depth.sql | 1 + ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 + ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 + ...contentobject_trash_ezcobj_trash_co_id.sql | 1 + ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 + ...zcontentobject_trash_ezcobj_trash_path.sql | 1 + .../0071_create_ezcontentobject_version.sql | 1 + ...ntobject_version_ezcobj_version_status.sql | 1 + ...ject_version_idx_object_version_objver.sql | 1 + ...t_version_ezcontobj_version_obj_status.sql | 1 + ...ject_version_ezcobj_version_creator_id.sql | 1 + .../sql/postgresql/0076_create_ezdfsfile.sql | 1 + ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 + ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 + .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 + .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 + .../postgresql/0081_create_ezgmaplocation.sql | 1 + ..._ezgmaplocation_latitude_longitude_key.sql | 1 + .../postgresql/0083_create_ezimagefile.sql | 1 + ...084_index_ezimagefile_ezimagefile_file.sql | 1 + ...085_index_ezimagefile_ezimagefile_coid.sql | 1 + .../sql/postgresql/0086_create_ezkeyword.sql | 1 + ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 + .../0088_create_ezkeyword_attribute_link.sql | 1 + ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 + .../sql/postgresql/0092_create_ezmedia.sql | 1 + .../0093_create_eznode_assignment.sql | 1 + ...e_assignment_eznode_assignment_is_main.sql | 1 + ..._assignment_eznode_assignment_coid_cov.sql | 1 + ...signment_eznode_assignment_parent_node.sql | 1 + ...ssignment_eznode_assignment_co_version.sql | 1 + .../postgresql/0098_create_eznotification.sql | 1 + ...cation_eznotification_owner_is_pending.sql | 1 + ...ex_eznotification_eznotification_owner.sql | 1 + .../sql/postgresql/0101_create_ezpackage.sql | 1 + .../sql/postgresql/0102_create_ezpolicy.sql | 1 + .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 + ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 + .../0105_create_ezpolicy_limitation.sql | 1 + ...06_index_ezpolicy_limitation_policy_id.sql | 1 + .../0107_create_ezpolicy_limitation_value.sql | 1 + ...on_value_ezpolicy_limit_value_limit_id.sql | 1 + ...on_value_ezpolicy_limitation_value_val.sql | 1 + .../postgresql/0110_create_ezpreferences.sql | 1 + ...zpreferences_ezpreferences_user_id_idx.sql | 1 + ...index_ezpreferences_ezpreferences_name.sql | 1 + .../sql/postgresql/0113_create_ezrole.sql | 1 + .../0114_create_ezsearch_object_word_link.sql | 1 + ..._link_ezsearch_object_word_link_object.sql | 1 + ...k_ezsearch_object_word_link_identifier.sql | 1 + ...zsearch_object_word_link_integer_value.sql | 1 + ...rd_link_ezsearch_object_word_link_word.sql | 1 + ...nk_ezsearch_object_word_link_frequency.sql | 1 + .../postgresql/0120_create_ezsearch_word.sql | 1 + ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 + ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 + .../sql/postgresql/0123_create_ezsection.sql | 1 + .../postgresql/0124_create_ezsite_data.sql | 1 + .../sql/postgresql/0125_create_ezurl.sql | 1 + .../postgresql/0126_index_ezurl_ezurl_url.sql | 1 + .../0127_create_ezurl_object_link.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 + ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 + ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 + .../sql/postgresql/0132_create_ezurlalias.sql | 1 + ...index_ezurlalias_ezurlalias_source_md5.sql | 1 + ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 + ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 + ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 + ...index_ezurlalias_ezurlalias_source_url.sql | 1 + ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 + .../postgresql/0139_create_ezurlalias_ml.sql | 1 + ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 + ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 + ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 + ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 + ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 + ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 + .../0148_create_ezurlalias_ml_incr.sql | 1 + .../postgresql/0149_create_ezurlwildcard.sql | 1 + .../0150_create_ezuser_accountkey.sql | 1 + .../0151_index_ezuser_accountkey_hash_key.sql | 1 + .../postgresql/0152_create_ezuser_role.sql | 1 + ..._index_ezuser_role_ezuser_role_role_id.sql | 1 + ...user_role_ezuser_role_contentobject_id.sql | 1 + .../postgresql/0155_create_ezuser_setting.sql | 1 + .../postgresql/0156_create_ibexa_setting.sql | 1 + ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 + ...setting_ibexa_setting_group_identifier.sql | 1 + .../0159_create_ibexa_token_type.sql | 1 + ...exa_token_type_ibexa_token_type_unique.sql | 1 + .../postgresql/0161_create_ibexa_token.sql | 1 + ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 + ...3_index_ibexa_token_ibexa_token_unique.sql | 1 + ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 + ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 + .../data/0001_insert_ezcobj_state.sql | 3 + .../data/0002_insert_ezcobj_state_group.sql | 2 + ...003_insert_ezcobj_state_group_language.sql | 2 + .../0004_insert_ezcobj_state_language.sql | 3 + .../data/0005_insert_ezcobj_state_link.sql | 13 + .../data/0006_insert_ezcontent_language.sql | 2 + .../data/0007_insert_ezcontentclass.sql | 7 + .../0008_insert_ezcontentclass_attribute.sql | 25 + .../0009_insert_ezcontentclass_classgroup.sql | 7 + .../data/0010_insert_ezcontentclass_name.sql | 7 + .../data/0011_insert_ezcontentclassgroup.sql | 4 + .../data/0012_insert_ezcontentobject.sql | 13 + .../0013_insert_ezcontentobject_attribute.sql | 41 + .../data/0014_insert_ezcontentobject_name.sql | 13 + .../data/0015_insert_ezcontentobject_tree.sql | 14 + .../0016_insert_ezcontentobject_version.sql | 13 + .../data/0017_insert_eznode_assignment.sql | 13 + .../postgresql/data/0018_insert_ezpolicy.sql | 9 + .../data/0019_insert_ezpolicy_limitation.sql | 7 + .../0020_insert_ezpolicy_limitation_value.sql | 8 + .../postgresql/data/0021_insert_ezrole.sql | 5 + .../postgresql/data/0022_insert_ezsection.sql | 4 + .../data/0023_insert_ezsite_data.sql | 2 + .../data/0024_insert_ezurlalias.sql | 13 + .../data/0025_insert_ezurlalias_ml.sql | 26 + .../data/0026_insert_ezurlalias_ml_incr.sql | 4 + .../postgresql/data/0027_insert_ezuser.sql | 3 + .../data/0028_insert_ezuser_role.sql | 7 + .../data/0029_insert_ezuser_setting.sql | 3 + .../data/0030_insert_ezpreferences.sql | 2 + .../0031_setval_ezcobj_state_group_id_seq.sql | 2 + .../data/0032_setval_ezcobj_state_id_seq.sql | 1 + ..._setval_ezcontentbrowsebookmark_id_seq.sql | 1 + ...setval_ezcontentclass_attribute_id_seq.sql | 1 + .../0035_setval_ezcontentclass_id_seq.sql | 1 + ...0036_setval_ezcontentclassgroup_id_seq.sql | 1 + ...etval_ezcontentobject_attribute_id_seq.sql | 1 + .../0038_setval_ezcontentobject_id_seq.sql | 1 + ...039_setval_ezcontentobject_link_id_seq.sql | 1 + ...etval_ezcontentobject_tree_node_id_seq.sql | 1 + ..._setval_ezcontentobject_version_id_seq.sql | 1 + .../data/0042_setval_ezimagefile_id_seq.sql | 1 + ...setval_ezkeyword_attribute_link_id_seq.sql | 1 + .../data/0044_setval_ezkeyword_id_seq.sql | 1 + .../0045_setval_eznode_assignment_id_seq.sql | 1 + .../0046_setval_eznotification_id_seq.sql | 1 + .../data/0047_setval_ezpackage_id_seq.sql | 1 + .../data/0048_setval_ezpolicy_id_seq.sql | 1 + ...0049_setval_ezpolicy_limitation_id_seq.sql | 1 + ...etval_ezpolicy_limitation_value_id_seq.sql | 1 + .../data/0051_setval_ezpreferences_id_seq.sql | 1 + .../data/0052_setval_ezrole_id_seq.sql | 1 + ...etval_ezsearch_object_word_link_id_seq.sql | 1 + .../data/0054_setval_ezsearch_word_id_seq.sql | 1 + .../data/0055_setval_ezsection_id_seq.sql | 1 + .../data/0056_setval_ezurl_id_seq.sql | 1 + .../data/0057_setval_ezurlalias_id_seq.sql | 1 + .../0058_setval_ezurlalias_ml_incr_id_seq.sql | 1 + .../data/0059_setval_ezurlwildcard_id_seq.sql | 1 + .../0060_setval_ezuser_accountkey_id_seq.sql | 1 + .../data/0061_setval_ezuser_role_id_seq.sql | 1 + .../sql/sqlite/0001_create_ezbinaryfile.sql | 1 + .../sql/sqlite/0002_create_ezcobj_state.sql | 1 + ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 + ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 + ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 + .../sqlite/0006_create_ezcobj_state_group.sql | 1 + ...j_state_group_ezcobj_state_group_lmask.sql | 1 + ...te_group_ezcobj_state_group_identifier.sql | 1 + ...009_create_ezcobj_state_group_language.sql | 1 + .../0010_create_ezcobj_state_language.sql | 1 + .../sqlite/0011_create_ezcobj_state_link.sql | 1 + .../sqlite/0012_create_ezcontent_language.sql | 1 + ...ntent_language_ezcontent_language_name.sql | 1 + .../sql/sqlite/0014_create_ezuser.sql | 1 + .../sqlite/0015_index_ezuser_ezuser_login.sql | 1 + .../0016_create_ezcontentobject_tree.sql | 1 + ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 + ...t_tree_ezcontentobject_tree_path_ident.sql | 1 + ...ject_tree_contentobject_id_path_string.sql | 1 + ...object_tree_ezcontentobject_tree_co_id.sql | 1 + ...object_tree_ezcontentobject_tree_depth.sql | 1 + ...tobject_tree_ezcontentobject_tree_path.sql | 1 + ..._ezcontentobject_tree_modified_subnode.sql | 1 + ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 + .../0025_create_ezcontentbrowsebookmark.sql | 1 + ...kmark_ezcontentbrowsebookmark_location.sql | 1 + ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 + ..._ezcontentbrowsebookmark_user_location.sql | 1 + .../sql/sqlite/0029_create_ezcontentclass.sql | 1 + ..._ezcontentclass_ezcontentclass_version.sql | 1 + ...contentclass_ezcontentclass_identifier.sql | 1 + .../0032_create_ezcontentclass_attribute.sql | 1 + ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 + ...lass_attribute_ezcontentclass_attr_dts.sql | 1 + ...035_create_ezcontentclass_attribute_ml.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + .../0037_create_ezcontentclass_classgroup.sql | 1 + .../0038_create_ezcontentclass_name.sql | 1 + .../0039_create_ezcontentclassgroup.sql | 1 + .../sqlite/0040_create_ezcontentobject.sql | 1 + ...zcontentobject_ezcontentobject_classid.sql | 1 + ..._ezcontentobject_ezcontentobject_lmask.sql | 1 + ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 + ...zcontentobject_ezcontentobject_section.sql | 1 + ...tobject_ezcontentobject_currentversion.sql | 1 + ..._ezcontentobject_ezcontentobject_owner.sql | 1 + ...ezcontentobject_ezcontentobject_status.sql | 1 + ...ontentobject_ezcontentobject_remote_id.sql | 1 + .../0049_create_ezcontentobject_attribute.sql | 1 + ...ntobject_attribute_co_id_ver_lang_code.sql | 1 + ...attribute_ezcontentobject_classattr_id.sql | 1 + ...ontentobject_attribute_sort_key_string.sql | 1 + ...zcontentobject_attribute_language_code.sql | 1 + ...ezcontentobject_attribute_sort_key_int.sql | 1 + ...te_ezcontentobject_attribute_co_id_ver.sql | 1 + .../0056_create_ezcontentobject_link.sql | 1 + ...zcontentobject_link_ezco_link_to_co_id.sql | 1 + ...ex_ezcontentobject_link_ezco_link_from.sql | 1 + ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 + .../0060_create_ezcontentobject_name.sql | 1 + ...ject_name_ezcontentobject_name_lang_id.sql | 1 + ...bject_name_ezcontentobject_name_cov_id.sql | 1 + ...tobject_name_ezcontentobject_name_name.sql | 1 + .../0064_create_ezcontentobject_trash.sql | 1 + ...contentobject_trash_ezcobj_trash_depth.sql | 1 + ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 + ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 + ...contentobject_trash_ezcobj_trash_co_id.sql | 1 + ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 + ...zcontentobject_trash_ezcobj_trash_path.sql | 1 + .../0071_create_ezcontentobject_version.sql | 1 + ...ntobject_version_ezcobj_version_status.sql | 1 + ...ject_version_idx_object_version_objver.sql | 1 + ...t_version_ezcontobj_version_obj_status.sql | 1 + ...ject_version_ezcobj_version_creator_id.sql | 1 + .../sql/sqlite/0076_create_ezdfsfile.sql | 1 + ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 + ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 + .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 + .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 + .../sql/sqlite/0081_create_ezgmaplocation.sql | 1 + ..._ezgmaplocation_latitude_longitude_key.sql | 1 + .../sql/sqlite/0083_create_ezimagefile.sql | 1 + ...084_index_ezimagefile_ezimagefile_file.sql | 1 + ...085_index_ezimagefile_ezimagefile_coid.sql | 1 + .../sql/sqlite/0086_create_ezkeyword.sql | 1 + ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 + .../0088_create_ezkeyword_attribute_link.sql | 1 + ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 + .../sql/sqlite/0092_create_ezmedia.sql | 1 + .../sqlite/0093_create_eznode_assignment.sql | 1 + ...e_assignment_eznode_assignment_is_main.sql | 1 + ..._assignment_eznode_assignment_coid_cov.sql | 1 + ...signment_eznode_assignment_parent_node.sql | 1 + ...ssignment_eznode_assignment_co_version.sql | 1 + .../sql/sqlite/0098_create_eznotification.sql | 1 + ...cation_eznotification_owner_is_pending.sql | 1 + ...ex_eznotification_eznotification_owner.sql | 1 + .../sql/sqlite/0101_create_ezpackage.sql | 1 + .../sql/sqlite/0102_create_ezpolicy.sql | 1 + .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 + ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 + .../0105_create_ezpolicy_limitation.sql | 1 + ...06_index_ezpolicy_limitation_policy_id.sql | 1 + .../0107_create_ezpolicy_limitation_value.sql | 1 + ...on_value_ezpolicy_limit_value_limit_id.sql | 1 + ...on_value_ezpolicy_limitation_value_val.sql | 1 + .../sql/sqlite/0110_create_ezpreferences.sql | 1 + ...zpreferences_ezpreferences_user_id_idx.sql | 1 + ...index_ezpreferences_ezpreferences_name.sql | 1 + .../sql/sqlite/0113_create_ezrole.sql | 1 + .../0114_create_ezsearch_object_word_link.sql | 1 + ..._link_ezsearch_object_word_link_object.sql | 1 + ...k_ezsearch_object_word_link_identifier.sql | 1 + ...zsearch_object_word_link_integer_value.sql | 1 + ...rd_link_ezsearch_object_word_link_word.sql | 1 + ...nk_ezsearch_object_word_link_frequency.sql | 1 + .../sql/sqlite/0120_create_ezsearch_word.sql | 1 + ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 + ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 + .../sql/sqlite/0123_create_ezsection.sql | 1 + .../sql/sqlite/0124_create_ezsite_data.sql | 1 + .../sql/sqlite/0125_create_ezurl.sql | 1 + .../sql/sqlite/0126_index_ezurl_ezurl_url.sql | 1 + .../sqlite/0127_create_ezurl_object_link.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 + ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 + ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 + .../sql/sqlite/0132_create_ezurlalias.sql | 1 + ...index_ezurlalias_ezurlalias_source_md5.sql | 1 + ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 + ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 + ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 + ...index_ezurlalias_ezurlalias_source_url.sql | 1 + ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 + .../sql/sqlite/0139_create_ezurlalias_ml.sql | 1 + ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 + ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 + ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 + ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 + ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 + ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 + .../sqlite/0148_create_ezurlalias_ml_incr.sql | 1 + .../sql/sqlite/0149_create_ezurlwildcard.sql | 1 + .../sqlite/0150_create_ezuser_accountkey.sql | 1 + .../0151_index_ezuser_accountkey_hash_key.sql | 1 + .../sql/sqlite/0152_create_ezuser_role.sql | 1 + ..._index_ezuser_role_ezuser_role_role_id.sql | 1 + ...user_role_ezuser_role_contentobject_id.sql | 1 + .../sql/sqlite/0155_create_ezuser_setting.sql | 1 + .../sql/sqlite/0156_create_ibexa_setting.sql | 2 + ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 + ...setting_ibexa_setting_group_identifier.sql | 1 + .../sqlite/0159_create_ibexa_token_type.sql | 1 + ...exa_token_type_ibexa_token_type_unique.sql | 1 + .../sql/sqlite/0161_create_ibexa_token.sql | 1 + ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 + ...3_index_ibexa_token_ibexa_token_unique.sql | 1 + .../sqlite/data/0001_insert_ezcobj_state.sql | 3 + .../data/0002_insert_ezcobj_state_group.sql | 2 + ...003_insert_ezcobj_state_group_language.sql | 2 + .../0004_insert_ezcobj_state_language.sql | 3 + .../data/0005_insert_ezcobj_state_link.sql | 13 + .../data/0006_insert_ezcontent_language.sql | 2 + .../data/0007_insert_ezcontentclass.sql | 7 + .../0008_insert_ezcontentclass_attribute.sql | 25 + .../0009_insert_ezcontentclass_classgroup.sql | 7 + .../data/0010_insert_ezcontentclass_name.sql | 7 + .../data/0011_insert_ezcontentclassgroup.sql | 4 + .../data/0012_insert_ezcontentobject.sql | 13 + .../0013_insert_ezcontentobject_attribute.sql | 41 + .../data/0014_insert_ezcontentobject_name.sql | 13 + .../data/0015_insert_ezcontentobject_tree.sql | 14 + .../0016_insert_ezcontentobject_version.sql | 13 + .../data/0017_insert_eznode_assignment.sql | 13 + .../sql/sqlite/data/0018_insert_ezpolicy.sql | 9 + .../data/0019_insert_ezpolicy_limitation.sql | 7 + .../0020_insert_ezpolicy_limitation_value.sql | 8 + .../sql/sqlite/data/0021_insert_ezrole.sql | 5 + .../sql/sqlite/data/0022_insert_ezsection.sql | 4 + .../sqlite/data/0023_insert_ezsite_data.sql | 2 + .../sqlite/data/0024_insert_ezurlalias.sql | 13 + .../sqlite/data/0025_insert_ezurlalias_ml.sql | 26 + .../data/0026_insert_ezurlalias_ml_incr.sql | 4 + .../sql/sqlite/data/0027_insert_ezuser.sql | 3 + .../sqlite/data/0028_insert_ezuser_role.sql | 7 + .../data/0029_insert_ezuser_setting.sql | 3 + .../sqlite/data/0030_insert_ezpreferences.sql | 2 + .../Compiler/InstallerTagPassTest.php | 58 -- .../IbexaInstallerExtensionTest.php | 3 +- .../IbexaRepositoryInstallerBundleTest.php | 13 +- 524 files changed, 2682 insertions(+), 249 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql delete mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php diff --git a/composer.json b/composer.json index 201a821125..0cbc361e10 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,12 @@ "description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.", "homepage": "https://ibexa.co", "license": "(GPL-2.0-only or proprietary)", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/ibexa/doctrine-migrations.git" + } + ], "suggest": { "php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required" }, @@ -39,6 +45,7 @@ "symfony/validator": "^5.3.0", "symfony/var-dumper": "^5.3.0", "ibexa/doctrine-schema": "~4.6.0@dev", + "ibexa/doctrine-migrations": "dev-feat/doctrine-migrations", "symfony-cmf/routing": "^2.3", "nelmio/cors-bundle": "^2.0", "pagerfanta/pagerfanta": "^2.1", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 2a15088ca8..905b336063 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5514,84 +5514,12 @@ parameters: count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Call to method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkParameters\(\) on a separate line has no effect\.$#' - identifier: method.resultUnused - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:__construct\(\) has parameter \$installers with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:cacheClear\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkCreateDatabase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkParameters\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkPermissions\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:configure\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:executeCommand\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:getInstaller\(\) has parameter \$type with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:getInstaller\(\) should return Ibexa\\Bundle\\RepositoryInstaller\\Installer\\Installer but returns false\.$#' - identifier: return.type - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:indexData\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Strict comparison using \=\=\= between bool and 1 will always evaluate to false\.$#' identifier: identical.alwaysFalse count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\ValidatePasswordHashesCommand\:\:configure\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/src/bundle/Core/DependencyInjection/Configuration.php b/src/bundle/Core/DependencyInjection/Configuration.php index 4b859f673b..6082b59115 100644 --- a/src/bundle/Core/DependencyInjection/Configuration.php +++ b/src/bundle/Core/DependencyInjection/Configuration.php @@ -65,6 +65,7 @@ public function getConfigTreeBuilder() $this->addUrlWildcardsSection($rootNode); $this->addOrmSection($rootNode); $this->addUITranslationsSection($rootNode); + $this->addInstallerSection($rootNode); // Delegate SiteAccess config to configuration parsers $this->mainSiteAccessConfigParser->addSemanticConfig($this->generateScopeBaseNode($rootNode)); @@ -563,6 +564,44 @@ private function addUITranslationsSection($rootNode): ArrayNodeDefinition ->end() ->end(); } + + /** + * Defines configuration for the "ibexa:install" installer. + * + * The configuration is available at: + * + * ibexa: + * installer: + * schema_builder_event: + * enabled: true + * + * + * @param \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode + */ + private function addInstallerSection(ArrayNodeDefinition $rootNode): ArrayNodeDefinition + { + return $rootNode + ->children() + ->arrayNode('installer') + ->children() + ->arrayNode('schema_builder_event') + ->info('Configuration of the legacy, event-driven database schema building mechanism used by the "ibexa:install" command') + ->children() + ->booleanNode('enabled') + ->defaultTrue() + ->info( + 'Whether "ibexa:install" dispatches Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent ' . + 'to let packages contribute their database schema via an event subscriber, as opposed to ' . + 'the schema being installed from static SQL migrations. ' . + 'Disable once all installed packages have migrated away from the event-driven mechanism.' + ) + ->end() + ->end() + ->end() + ->end() + ->end() + ->end(); + } } class_alias(Configuration::class, 'eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration'); diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index 5c8fda3ec1..910c7ba773 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -134,6 +134,7 @@ public function load(array $configs, ContainerBuilder $container) $this->registerUrlWildcardsConfiguration($config, $container); $this->registerOrmConfiguration($config, $container); $this->registerUITranslationsConfiguration($config, $container); + $this->registerInstallerConfiguration($config, $container); // Routing $this->handleRouting($config, $container, $loader); @@ -331,6 +332,17 @@ private function registerUITranslationsConfiguration(array $config, ContainerBui $container->setParameter('ibexa.ui.translations.enabled', $config['ui']['translations']['enabled'] ?? false); } + /** + * @param array $config + */ + private function registerInstallerConfiguration(array $config, ContainerBuilder $container): void + { + $container->setParameter( + 'ibexa.installer.schema_builder_event.enabled', + $config['installer']['schema_builder_event']['enabled'] ?? true + ); + } + /** * Handle routing parameters. * diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index 0011d9d37c..f9f62de371 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -9,6 +9,7 @@ use Doctrine\DBAL\Connection; use Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider; use Ibexa\Bundle\Core\Command\BackwardCompatibleCommand; +use Ibexa\Bundle\RepositoryInstaller\Installer\Installer; use Psr\Cache\CacheItemPoolInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -17,37 +18,38 @@ use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\DependencyInjection\ServiceLocator; use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\Process; final class InstallPlatformCommand extends Command implements BackwardCompatibleCommand { - /** @var \Doctrine\DBAL\Connection */ - private $connection; + protected static $defaultName = 'ibexa:install'; - /** @var \Symfony\Component\Console\Output\OutputInterface */ - private $output; + private Connection $connection; - /** @var \Psr\Cache\CacheItemPoolInterface */ - private $cachePool; + private OutputInterface $output; - /** @var string */ - private $environment; + private CacheItemPoolInterface $cachePool; - /** @var \Ibexa\Bundle\RepositoryInstaller\Installer\Installer[] */ - private $installers = []; + private string $environment; - /** @var \Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider */ - private $repositoryConfigurationProvider; + /** @var \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> */ + private ServiceLocator $installers; + + private RepositoryConfigurationProvider $repositoryConfigurationProvider; public const EXIT_GENERAL_DATABASE_ERROR = 4; public const EXIT_PARAMETERS_NOT_FOUND = 5; public const EXIT_UNKNOWN_INSTALL_TYPE = 6; public const EXIT_MISSING_PERMISSIONS = 7; + /** + * @param \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> $installers + */ public function __construct( Connection $connection, - array $installers, + ServiceLocator $installers, CacheItemPoolInterface $cachePool, string $environment, RepositoryConfigurationProvider $repositoryConfigurationProvider @@ -60,14 +62,13 @@ public function __construct( parent::__construct(); } - protected function configure() + protected function configure(): void { - $this->setName('ibexa:install'); $this->setAliases($this->getDeprecatedAliases()); $this->addArgument( 'type', InputArgument::OPTIONAL, - 'The type of install. Available options: ' . implode(', ', array_keys($this->installers)), + 'The type of install. Available options: ' . implode(', ', array_keys($this->installers->getProvidedServices())), 'ibexa-oss' ); $this->addOption( @@ -82,43 +83,35 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $this->output = $output; $this->checkPermissions(); - $this->checkParameters(); $this->checkCreateDatabase($output); $schemaManager = $this->connection->getSchemaManager(); if (!empty($schemaManager->listTables())) { $io = new SymfonyStyle($input, $output); if (!$io->confirm('Running this command will delete data in all Ibexa generated tables. Continue?', )) { - return 0; + return self::SUCCESS; } } $type = $input->getArgument('type'); $siteaccess = $input->getOption('siteaccess'); - $installer = $this->getInstaller($type); - if ($installer === false) { - $output->writeln( - "Unknown install type '$type', available options in currently installed Ibexa package: " . - implode(', ', array_keys($this->installers)) - ); - exit(self::EXIT_UNKNOWN_INSTALL_TYPE); - } + $installer = $this->getInstaller($type, $output); $installer->setOutput($output); $installer->importSchema(); $installer->importData(); $installer->importBinaries(); - $this->cacheClear($output); + $this->cacheClear(); if (!$input->getOption('skip-indexing')) { $this->indexData($output, $siteaccess); } - return 0; + return self::SUCCESS; } - private function checkPermissions() + private function checkPermissions(): void { // @todo should take var-dir etc. from composer config or fallback to flex directory scheme if (!is_writable('public') && !is_writable('public/var')) { @@ -127,18 +120,7 @@ private function checkPermissions() } } - private function checkParameters() - { - // @todo doesn't make sense to check for parameters.yml in sf4 and flex - return; - $parametersFile = 'app/config/parameters.yml'; - if (!is_file($parametersFile)) { - $this->output->writeln("Required configuration file '$parametersFile' not found"); - exit(self::EXIT_PARAMETERS_NOT_FOUND); - } - } - - private function checkCreateDatabase(OutputInterface $output) + private function checkCreateDatabase(OutputInterface $output): void { $output->writeln( sprintf( @@ -167,10 +149,8 @@ private function checkCreateDatabase(OutputInterface $output) /** * Clear all content related cache (persistence cache). - * - * @param \Symfony\Component\Console\Output\OutputInterface $output */ - private function cacheClear(OutputInterface $output) + private function cacheClear(): void { $this->cachePool->clear(); } @@ -183,11 +163,8 @@ private function cacheClear(OutputInterface $output) * This is done after cache clearing to make sure no cached data from before sql import is used. * * IMPORTANT: This is done using a command because config has change, so container and all services are different. - * - * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param string|null $siteaccess */ - private function indexData(OutputInterface $output, $siteaccess = null) + private function indexData(OutputInterface $output, ?string $siteaccess = null): void { $output->writeln( sprintf('Search engine re-indexing, executing command ibexa:reindex') @@ -202,17 +179,19 @@ private function indexData(OutputInterface $output, $siteaccess = null) } /** - * @param $type - * * @return \Ibexa\Bundle\RepositoryInstaller\Installer\Installer */ - private function getInstaller($type) + private function getInstaller(string $type, OutputInterface $output): Installer { - if (!isset($this->installers[$type])) { - return false; + if (!$this->installers->has($type)) { + $output->writeln( + "Unknown install type '$type', available options in currently installed Ibexa package: " . + implode(', ', array_keys($this->installers->getProvidedServices())) + ); + exit(self::EXIT_UNKNOWN_INSTALL_TYPE); } - return $this->installers[$type]; + return $this->installers->get($type); } /** @@ -227,7 +206,7 @@ private function getInstaller($type) * Escape any user provided arguments, like: 'assets:install '.escapeshellarg($webDir) * @param int $timeout */ - private function executeCommand(OutputInterface $output, $cmd, $timeout = 300) + private function executeCommand(OutputInterface $output, $cmd, $timeout = 300): void { $phpFinder = new PhpExecutableFinder(); if (!$phpPath = $phpFinder->find(false)) { diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php index cf0df72c3e..bb8acf0ebc 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php @@ -6,46 +6,22 @@ */ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; -use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use LogicException; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Reference; /** - * Injects services tagged as "ibexa.installer" into - * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers}. + * @deprecated 4.6.27 Installers are now injected into + * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers} via a + * `!tagged_locator` argument configured in services.yml, so this compiler pass is no longer needed. + * Will be removed in 5.0. */ class InstallerTagPass implements CompilerPassInterface { + /** @deprecated 4.6.27 Will be removed in 6.0. Use the 'ibexa.installer' string directly. */ public const INSTALLER_TAG = 'ibexa.installer'; public function process(ContainerBuilder $container) { - if (!$container->hasDefinition(InstallPlatformCommand::class)) { - return; - } - - $installCommandDef = $container->findDefinition(InstallPlatformCommand::class); - $installers = []; - - foreach ($container->findTaggedServiceIds(self::INSTALLER_TAG) as $id => $tags) { - foreach ($tags as $tag) { - if (!isset($tag['type'])) { - throw new LogicException( - sprintf( - 'Service tag %s needs a "type" attribute to identify the installer. You need to provide a tag for %s.', - self::INSTALLER_TAG, - $id - ) - ); - } - - $installers[$tag['type']] = new Reference($id); - } - } - - $installCommandDef->replaceArgument('$installers', $installers); } } diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index b5934d8080..7ad8d89726 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -7,7 +7,6 @@ namespace Ibexa\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -29,7 +28,6 @@ public function build(ContainerBuilder $container) } parent::build($container); - $container->addCompilerPass(new InstallerTagPass()); } } diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 6b05899ffe..6a10a9ecad 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -11,63 +11,123 @@ use Doctrine\DBAL\Connection; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\Query\Query; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; use Symfony\Component\Console\Helper\ProgressBar; /** - * Installer which uses SchemaBuilder. + * Installer which creates the core database schema. */ class CoreInstaller extends DbBasedInstaller implements Installer { /** @var \Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface */ protected $schemaBuilder; + private bool $schemaBuilderEventEnabled; + + private TaggedMigrationsRunner $taggedMigrationsRunner; + + public function __construct( + Connection $db, + SchemaBuilderInterface $schemaBuilder, + bool $schemaBuilderEventEnabled, + TaggedMigrationsRunner $taggedMigrationsRunner + ) { + parent::__construct($db); + + $this->schemaBuilder = $schemaBuilder; + $this->schemaBuilderEventEnabled = $schemaBuilderEventEnabled; + $this->taggedMigrationsRunner = $taggedMigrationsRunner; + } + /** - * @param \Doctrine\DBAL\Connection $db - * @param \Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface $schemaBuilder + * Imports the core database schema. + * + * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), the schema + * is built by dispatching the legacy event-driven {@see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent}, + * allowing other packages to contribute their own tables via an event subscriber. + * + * Otherwise, the schema is installed by {@see TaggedMigrationsRunner}, which runs every not-yet-executed + * migration tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} + * (core's own {@see \Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration} plus any other + * package's) via the application's Doctrine Migrations DependencyFactory. + * + * @throws \Doctrine\DBAL\DBALException */ - public function __construct(Connection $db, SchemaBuilderInterface $schemaBuilder) + public function importSchema() { - parent::__construct($db); + if ($this->schemaBuilderEventEnabled) { + $this->executeQueries($this->getQueriesFromSchemaBuilderEvent()); - $this->schemaBuilder = $schemaBuilder; + return; + } + + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * Import Schema using event-driven Schema Builder API from Ibexa DoctrineSchema Bundle. + * Builds the schema using the event-driven Schema Builder API from the Ibexa DoctrineSchema bundle. * - * If you wish to extend schema, implement your own EventSubscriber + * If you wish to extend the schema, implement your own EventSubscriber. * * @see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent * @see \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\BuildSchemaSubscriber * - * @throws \Doctrine\DBAL\DBALException + * @return \Doctrine\Migrations\Query\Query[] */ - public function importSchema() + private function getQueriesFromSchemaBuilderEvent(): array { - // note: schema is built using Schema Builder event-driven API $schema = $this->schemaBuilder->buildSchema(); $databasePlatform = $this->db->getDatabasePlatform(); - $queries = array_merge( + + $sqls = array_merge( $this->getDropSqlStatementsForExistingSchema($schema, $databasePlatform), - // generate schema DDL queries $schema->toSql($databasePlatform) ); + return array_map(static function (string $sql): Query { + return new Query($sql); + }, $sqls); + } + + /** + * Reports the queries {@see TaggedMigrationsRunner} already executed (and recorded) via the Doctrine + * Migrations DependencyFactory. + * + * @param \Doctrine\Migrations\Query\Query[] $queries + */ + private function reportExecutedQueries(array $queries): void + { + $this->output->writeln( + sprintf( + 'Executed %d queries on database %s (%s)', + count($queries), + $this->db->getDatabase(), + $this->db->getDatabasePlatform()->getName() + ) + ); + } + + /** + * @param \Doctrine\Migrations\Query\Query[] $queries + */ + private function executeQueries(array $queries): void + { $queriesCount = count($queries); $this->output->writeln( sprintf( 'Executing %d queries on database %s (%s)', $queriesCount, $this->db->getDatabase(), - $databasePlatform->getName() + $this->db->getDatabasePlatform()->getName() ) ); $progressBar = new ProgressBar($this->output); $progressBar->start($queriesCount); foreach ($queries as $query) { - $this->db->exec($query); + $this->db->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); $progressBar->advance(1); } @@ -79,18 +139,31 @@ public function importSchema() } /** + * Imports the core bootstrap data. + * + * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), this imports + * the DBMS-specific "cleandata.sql" file directly. + * + * Otherwise, this also delegates to {@see TaggedMigrationsRunner}, same as {@see importSchema()}. Since + * {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is tagged and run the same way, + * calling the runner here typically executes nothing new (it already ran as part of importSchema()) - + * this call only matters if importData() is invoked on its own. + * * @throws \Doctrine\DBAL\DBALException * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException */ public function importData() { - $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); + if ($this->schemaBuilderEventEnabled) { + $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); + + return; + } + + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * @param \Doctrine\DBAL\Schema\Schema $newSchema - * @param \Doctrine\DBAL\Platforms\AbstractPlatform $databasePlatform - * * @return string[] */ protected function getDropSqlStatementsForExistingSchema( diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php new file mode 100644 index 0000000000..bd312b5608 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -0,0 +1,45 @@ +dependencyFactory = $dependencyFactory; + } + + /** + * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run + * + * @throws \RuntimeException if the "{@see IbexaOnlyDependencyFactory::SERVICE_ID}" service isn't available + */ + public function run(): array + { + if ($this->dependencyFactory === null) { + throw new RuntimeException( + 'Running tagged Doctrine migrations requires the "' . IbexaOnlyDependencyFactory::SERVICE_ID . '" ' . + 'service (provided by doctrine/migrations-bundle, with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle ' . + 'registered) to be available.' + ); + } + + $metadataStorage = $this->dependencyFactory->getMetadataStorage(); + // Mirrors what the "doctrine:migrations:migrate" console command does before migrating. + $metadataStorage->ensureInitialized(); + + $planCalculator = $this->dependencyFactory->getMigrationPlanCalculator(); + // getMigrations() returns an already-sorted list; its last item is the "latest" version. + $availableMigrations = $planCalculator->getMigrations()->getItems(); + if ($availableMigrations === []) { + return []; + } + + $latestVersion = end($availableMigrations)->getVersion(); + $plan = $planCalculator->getPlanUntilVersion($latestVersion); + + $connection = $this->dependencyFactory->getConnection(); + + $executedQueries = []; + foreach ($plan->getItems() as $migrationPlan) { + foreach ($this->executeMigration($connection, $metadataStorage, $migrationPlan) as $query) { + $executedQueries[] = $query; + } + } + + return $executedQueries; + } + + /** + * @return \Doctrine\Migrations\Query\Query[] + */ + private function executeMigration( + Connection $connection, + MetadataStorage $metadataStorage, + MigrationPlan $migrationPlan + ): array { + $executedAt = new DateTimeImmutable(); + + $migration = $migrationPlan->getMigration(); + $migration->up(new Schema()); + $queries = $migration->getSql(); + + foreach ($queries as $query) { + $connection->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); + } + + $result = new ExecutionResult($migrationPlan->getVersion(), $migrationPlan->getDirection(), $executedAt); + $metadataStorage->complete($result); + + return $queries; + } +} diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 965404750b..4a96b2cf16 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -5,6 +5,30 @@ services: arguments: - '@=service("kernel").locateResource("@IbexaCoreBundle/Resources/config/storage/legacy/schema.yaml")' + Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: + public: false + arguments: + # Optional: only resolves to a service if doctrine/migrations-bundle is installed and + # configured. Not defined here, since it belongs to that package, not this one. + # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID + $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller: abstract: true arguments: ['@ibexa.persistence.connection'] @@ -13,13 +37,15 @@ services: Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller: autowire: true parent: Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller + arguments: + $schemaBuilderEventEnabled: '%ibexa.installer.schema_builder_event.enabled%' tags: - { name: ibexa.installer, type: ibexa-oss } Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand: arguments: $connection: '@ibexa.persistence.connection' - $installers: [] + $installers: !tagged_locator { tag: 'ibexa.installer', index_by: 'type' } $cachePool: '@ibexa.cache_pool' $environment: "%kernel.environment%" $repositoryConfigurationProvider: '@Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml new file mode 100644 index 0000000000..d7c5b372ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml @@ -0,0 +1,243 @@ +up: + - file: 'sql/mysql/data/0001_insert_ezcobj_state.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0001_insert_ezcobj_state.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0001_insert_ezcobj_state.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0002_insert_ezcobj_state_group.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0002_insert_ezcobj_state_group.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0002_insert_ezcobj_state_group.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0004_insert_ezcobj_state_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0004_insert_ezcobj_state_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0004_insert_ezcobj_state_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0005_insert_ezcobj_state_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0005_insert_ezcobj_state_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0005_insert_ezcobj_state_link.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0006_insert_ezcontent_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0006_insert_ezcontent_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0006_insert_ezcontent_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0007_insert_ezcontentclass.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0007_insert_ezcontentclass.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0007_insert_ezcontentclass.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0010_insert_ezcontentclass_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0010_insert_ezcontentclass_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0010_insert_ezcontentclass_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0012_insert_ezcontentobject.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0012_insert_ezcontentobject.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0012_insert_ezcontentobject.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0014_insert_ezcontentobject_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0014_insert_ezcontentobject_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0014_insert_ezcontentobject_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0016_insert_ezcontentobject_version.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0016_insert_ezcontentobject_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0016_insert_ezcontentobject_version.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0017_insert_eznode_assignment.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0017_insert_eznode_assignment.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0017_insert_eznode_assignment.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0018_insert_ezpolicy.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0018_insert_ezpolicy.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0018_insert_ezpolicy.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0021_insert_ezrole.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0021_insert_ezrole.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0021_insert_ezrole.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0022_insert_ezsection.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0022_insert_ezsection.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0022_insert_ezsection.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0023_insert_ezsite_data.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0023_insert_ezsite_data.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0023_insert_ezsite_data.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0024_insert_ezurlalias.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0024_insert_ezurlalias.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0024_insert_ezurlalias.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0025_insert_ezurlalias_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0025_insert_ezurlalias_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0025_insert_ezurlalias_ml.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0027_insert_ezuser.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0027_insert_ezuser.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0027_insert_ezuser.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0028_insert_ezuser_role.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0028_insert_ezuser_role.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0028_insert_ezuser_role.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0029_insert_ezuser_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0029_insert_ezuser_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0029_insert_ezuser_setting.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0030_insert_ezpreferences.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0030_insert_ezpreferences.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0030_insert_ezpreferences.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0046_setval_eznotification_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0047_setval_ezpackage_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0052_setval_ezrole_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0055_setval_ezsection_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0056_setval_ezurl_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql' + platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml new file mode 100644 index 0000000000..1aca414724 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml @@ -0,0 +1,773 @@ +up: + - file: 'sql/mysql/0001_create_ezbinaryfile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0001_create_ezbinaryfile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0001_create_ezbinaryfile.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0002_create_ezcobj_state.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0002_create_ezcobj_state.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0002_create_ezcobj_state.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0003_create_ezcobj_state_group.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0006_create_ezcobj_state_group.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0006_create_ezcobj_state_group.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0004_create_ezcobj_state_group_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0009_create_ezcobj_state_group_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0009_create_ezcobj_state_group_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0005_create_ezcobj_state_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0010_create_ezcobj_state_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0010_create_ezcobj_state_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0006_create_ezcobj_state_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0011_create_ezcobj_state_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0011_create_ezcobj_state_link.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0007_create_ezcontent_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0012_create_ezcontent_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0012_create_ezcontent_language.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0008_create_ezuser.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0014_create_ezuser.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0014_create_ezuser.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0015_index_ezuser_ezuser_login.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0015_index_ezuser_ezuser_login.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0009_create_ezcontentobject_tree.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0016_create_ezcontentobject_tree.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0016_create_ezcontentobject_tree.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0010_create_ezcontentbrowsebookmark.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0025_create_ezcontentbrowsebookmark.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0025_create_ezcontentbrowsebookmark.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0011_create_ezcontentclass.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0029_create_ezcontentclass.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0029_create_ezcontentclass.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0012_create_ezcontentclass_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0032_create_ezcontentclass_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0032_create_ezcontentclass_attribute.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0013_create_ezcontentclass_attribute_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0014_create_ezcontentclass_classgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0037_create_ezcontentclass_classgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0037_create_ezcontentclass_classgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0015_create_ezcontentclass_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0038_create_ezcontentclass_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0038_create_ezcontentclass_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0016_create_ezcontentclassgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0039_create_ezcontentclassgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0039_create_ezcontentclassgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0017_create_ezcontentobject.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0040_create_ezcontentobject.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0040_create_ezcontentobject.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0018_create_ezcontentobject_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0049_create_ezcontentobject_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0049_create_ezcontentobject_attribute.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0019_create_ezcontentobject_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0056_create_ezcontentobject_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0056_create_ezcontentobject_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0020_create_ezcontentobject_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0060_create_ezcontentobject_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0060_create_ezcontentobject_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0021_create_ezcontentobject_trash.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0064_create_ezcontentobject_trash.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0064_create_ezcontentobject_trash.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0022_create_ezcontentobject_version.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0071_create_ezcontentobject_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0071_create_ezcontentobject_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0023_create_ezdfsfile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0076_create_ezdfsfile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0076_create_ezdfsfile.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0024_create_ezgmaplocation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0081_create_ezgmaplocation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0081_create_ezgmaplocation.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0025_create_ezimagefile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0083_create_ezimagefile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0083_create_ezimagefile.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0026_create_ezkeyword.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0086_create_ezkeyword.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0086_create_ezkeyword.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0027_create_ezkeyword_attribute_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0088_create_ezkeyword_attribute_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0088_create_ezkeyword_attribute_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0028_create_ezmedia.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0092_create_ezmedia.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0092_create_ezmedia.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0029_create_eznode_assignment.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0093_create_eznode_assignment.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0093_create_eznode_assignment.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0030_create_eznotification.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0098_create_eznotification.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0098_create_eznotification.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0100_index_eznotification_eznotification_owner.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0100_index_eznotification_eznotification_owner.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0031_create_ezpackage.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0101_create_ezpackage.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0101_create_ezpackage.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0032_create_ezpolicy.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0102_create_ezpolicy.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0102_create_ezpolicy.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0033_create_ezpolicy_limitation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0105_create_ezpolicy_limitation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0105_create_ezpolicy_limitation.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0034_create_ezpolicy_limitation_value.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0107_create_ezpolicy_limitation_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0107_create_ezpolicy_limitation_value.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0035_create_ezpreferences.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0110_create_ezpreferences.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0110_create_ezpreferences.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0036_create_ezrole.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0113_create_ezrole.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0113_create_ezrole.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0037_create_ezsearch_object_word_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0114_create_ezsearch_object_word_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0114_create_ezsearch_object_word_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0038_create_ezsearch_word.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0120_create_ezsearch_word.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0120_create_ezsearch_word.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0039_create_ezsection.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0123_create_ezsection.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0123_create_ezsection.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0040_create_ezsite_data.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0124_create_ezsite_data.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0124_create_ezsite_data.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0041_create_ezurl.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0125_create_ezurl.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0125_create_ezurl.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0126_index_ezurl_ezurl_url.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0126_index_ezurl_ezurl_url.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0042_create_ezurl_object_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0127_create_ezurl_object_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0127_create_ezurl_object_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0043_create_ezurlalias.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0132_create_ezurlalias.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0132_create_ezurlalias.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0044_create_ezurlalias_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0139_create_ezurlalias_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0139_create_ezurlalias_ml.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0045_create_ezurlalias_ml_incr.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0148_create_ezurlalias_ml_incr.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0148_create_ezurlalias_ml_incr.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0046_create_ezurlwildcard.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0149_create_ezurlwildcard.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0149_create_ezurlwildcard.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0047_create_ezuser_accountkey.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0150_create_ezuser_accountkey.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0150_create_ezuser_accountkey.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0048_create_ezuser_role.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0152_create_ezuser_role.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0152_create_ezuser_role.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0049_create_ezuser_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0155_create_ezuser_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0155_create_ezuser_setting.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0050_create_ibexa_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0156_create_ibexa_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0156_create_ibexa_setting.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0051_create_ibexa_token_type.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0159_create_ibexa_token_type.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0159_create_ibexa_token_type.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0052_create_ibexa_token.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0161_create_ibexa_token.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0161_create_ibexa_token.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql' + platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..4550a8fde8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..b7b2dcff8a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..8db47cc4fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..7d6cb0efc5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..ce7fbc900b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..8905130d9f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql new file mode 100644 index 0000000000..d314ccc990 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql new file mode 100644 index 0000000000..902d1740c8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..ba5486f96c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..f7d7851f12 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql new file mode 100644 index 0000000000..333a9e52f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..b222dde913 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..8e6a1f9070 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..f5a3c2d20a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..c6e7644e14 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..e39f7864f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql new file mode 100644 index 0000000000..0e84bc9642 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..a15e961c0c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..b41b6b97cb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..8031fb6dce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..a6a8e86f13 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..50606c73b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql new file mode 100644 index 0000000000..165177694f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT '0' NOT NULL, status TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql new file mode 100644 index 0000000000..096c46dd2d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql new file mode 100644 index 0000000000..5b9e6d2c2c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql new file mode 100644 index 0000000000..2a586c9192 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..3cd519f470 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql new file mode 100644 index 0000000000..2b9c743704 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql new file mode 100644 index 0000000000..e7765ae00a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql new file mode 100644 index 0000000000..20edb16ebd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql new file mode 100644 index 0000000000..adba6500dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql new file mode 100644 index 0000000000..a8130e913a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..992c1aba35 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..d354086aa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql new file mode 100644 index 0000000000..67795da3c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql new file mode 100644 index 0000000000..ae9d6d1647 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..5bc76956bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql new file mode 100644 index 0000000000..07b9e3eeb0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql new file mode 100644 index 0000000000..9c6a91c30d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql new file mode 100644 index 0000000000..6ed8657e61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql new file mode 100644 index 0000000000..bd531c02d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql new file mode 100644 index 0000000000..a795d1afba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql new file mode 100644 index 0000000000..10be1ded9d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..f60a5debf8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..0e028a410a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql new file mode 100644 index 0000000000..49e6fdb7cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..0bca83a3b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql new file mode 100644 index 0000000000..89f78ae40d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql new file mode 100644 index 0000000000..c3c035a3ea --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql new file mode 100644 index 0000000000..d664bb1bf9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql new file mode 100644 index 0000000000..050286548c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql new file mode 100644 index 0000000000..2cc774c11a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT '0' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql new file mode 100644 index 0000000000..fd2f319c2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql new file mode 100644 index 0000000000..a4fe1c30db --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..9d8fb82dc7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql new file mode 100644 index 0000000000..f8e58ffca0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..64e0eacdd1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..677a43ca5c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..9930341865 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..dc7872d95b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..9a0dd8d0e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..97bfa86644 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..540efcb3ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..30ad516ff8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..ffa17693b0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..1f517c87e3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..61aea82715 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..c18bc54f7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..d2ec35a36f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..fc75852a7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..1cfc2b9049 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..f8ba2fe49d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..b69e8a455f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..7e0d289d2b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..d1dfc57ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..26ef009ea8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..16605e3ee2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..a12ae3cbfb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..82536384d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..dbdfab1b74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..1a3fce42c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..60ee1309ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..151e4f6fa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..5ad1f12f1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..c87f9291dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..5a44f420f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..14531f39f5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..16d6b76be3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql new file mode 100644 index 0000000000..acd97e80ae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql new file mode 100644 index 0000000000..6d6498dfa3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql new file mode 100644 index 0000000000..a622a7319b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..aa60df6bbf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql new file mode 100644 index 0000000000..8693d6bab5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql new file mode 100644 index 0000000000..36481c9271 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..e73ef9404d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..75a6e90f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..f90c53635b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql new file mode 100644 index 0000000000..fc7a9a2fdf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql new file mode 100644 index 0000000000..0a236b1d78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql new file mode 100644 index 0000000000..aaf5f8ae89 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql new file mode 100644 index 0000000000..382bc2fe6f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..ebb309ad93 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql new file mode 100644 index 0000000000..7a3cbafefc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql new file mode 100644 index 0000000000..a0694b8c61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql new file mode 100644 index 0000000000..80dcea65d9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql new file mode 100644 index 0000000000..9f76373cac --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql new file mode 100644 index 0000000000..d7b5136f63 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql new file mode 100644 index 0000000000..f0c7ac9ecc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql new file mode 100644 index 0000000000..87676071e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql new file mode 100644 index 0000000000..22d066cdca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..c9c6672a2d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql new file mode 100644 index 0000000000..659a26c514 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql new file mode 100644 index 0000000000..5b0696a7e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql new file mode 100644 index 0000000000..6c77193029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql new file mode 100644 index 0000000000..d983cc5378 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql new file mode 100644 index 0000000000..7fd0e3cfa1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql new file mode 100644 index 0000000000..24c8111651 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..273341c716 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql new file mode 100644 index 0000000000..7875734dae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql new file mode 100644 index 0000000000..ba2700ac55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..8f5af634b4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..f17be3c68c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..3a8d83fa44 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..ebcc1e629b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..4d31939956 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql new file mode 100644 index 0000000000..06925bdc48 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql new file mode 100644 index 0000000000..5dddc18819 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql new file mode 100644 index 0000000000..6fd63f61d8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql new file mode 100644 index 0000000000..022ffd1c54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql new file mode 100644 index 0000000000..2459702346 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql new file mode 100644 index 0000000000..cb0f62d824 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql new file mode 100644 index 0000000000..17c73894b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql new file mode 100644 index 0000000000..f68fa6262f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql new file mode 100644 index 0000000000..6e86f88cfe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..1d315de98a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql new file mode 100644 index 0000000000..6b23dbfdcb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql new file mode 100644 index 0000000000..c8391d6730 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql new file mode 100644 index 0000000000..320329b4f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql new file mode 100644 index 0000000000..31e10963b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql new file mode 100644 index 0000000000..d89a560a80 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql new file mode 100644 index 0000000000..3a0b46cb82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..26d2b46d1c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql new file mode 100644 index 0000000000..c09dfefbf0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql new file mode 100644 index 0000000000..5553d5dbb9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql new file mode 100644 index 0000000000..576d349337 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..fb0c9cf656 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql new file mode 100644 index 0000000000..a53893b840 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql new file mode 100644 index 0000000000..d47ec6ff06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql new file mode 100644 index 0000000000..066bdd2ddf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..cbc1d75091 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql new file mode 100644 index 0000000000..22a5480ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql new file mode 100644 index 0000000000..1b230d30c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql new file mode 100644 index 0000000000..e97fae979c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql new file mode 100644 index 0000000000..4f2edf4230 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql new file mode 100644 index 0000000000..980553e6cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql new file mode 100644 index 0000000000..41f87ea995 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..0379c24c58 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql new file mode 100644 index 0000000000..eb1712c587 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql new file mode 100644 index 0000000000..d9ade282a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql @@ -0,0 +1 @@ +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql new file mode 100644 index 0000000000..f8b3625958 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql new file mode 100644 index 0000000000..7ad71e9d33 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql new file mode 100644 index 0000000000..9c43e1a6d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql new file mode 100644 index 0000000000..a52478c504 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql new file mode 100644 index 0000000000..b6a67a8141 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql new file mode 100644 index 0000000000..b1093dd031 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql new file mode 100644 index 0000000000..74974918cf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql new file mode 100644 index 0000000000..7783fe956a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql new file mode 100644 index 0000000000..c71ce38856 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql @@ -0,0 +1 @@ +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql new file mode 100644 index 0000000000..10daf6c34e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql new file mode 100644 index 0000000000..9fd53f1f99 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql new file mode 100644 index 0000000000..4aa9687e74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql new file mode 100644 index 0000000000..15f8411056 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql new file mode 100644 index 0000000000..d8e144c201 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..0f542cd006 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql new file mode 100644 index 0000000000..8d8572e8bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql new file mode 100644 index 0000000000..f07b97d9ab --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql new file mode 100644 index 0000000000..0404bc617b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql new file mode 100644 index 0000000000..f2a1f54018 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql new file mode 100644 index 0000000000..9c81b2afb8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql new file mode 100644 index 0000000000..5e5ed94263 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql new file mode 100644 index 0000000000..987539c281 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql new file mode 100644 index 0000000000..7c7225c18d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql new file mode 100644 index 0000000000..6b519ccc54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql new file mode 100644 index 0000000000..4850a0a117 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT 'true' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql new file mode 100644 index 0000000000..862b80ddf5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql new file mode 100644 index 0000000000..b621afd705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql new file mode 100644 index 0000000000..675d8f105c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql new file mode 100644 index 0000000000..2fe0b4c43f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql new file mode 100644 index 0000000000..366c989ec0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql new file mode 100644 index 0000000000..9a3d4f8171 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..5e7abb39e5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql new file mode 100644 index 0000000000..6640c10ce8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql @@ -0,0 +1 @@ +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..a0f290af9d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql new file mode 100644 index 0000000000..446a27fdaa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql new file mode 100644 index 0000000000..8c0458bdde --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql new file mode 100644 index 0000000000..6c23ca2fe5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql new file mode 100644 index 0000000000..e8330b63d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql new file mode 100644 index 0000000000..e33390d2a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql new file mode 100644 index 0000000000..3a828c94f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..3fd4f08a00 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql new file mode 100644 index 0000000000..fb984de9f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql new file mode 100644 index 0000000000..724819087d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql new file mode 100644 index 0000000000..9c46453535 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql new file mode 100644 index 0000000000..058c9b9de2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql new file mode 100644 index 0000000000..6864b9d5b8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql new file mode 100644 index 0000000000..c4ac6e1ae2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql new file mode 100644 index 0000000000..d1f15870a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql new file mode 100644 index 0000000000..ee7a50072c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql new file mode 100644 index 0000000000..6bb9b22705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql new file mode 100644 index 0000000000..51b1319beb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql new file mode 100644 index 0000000000..9f0b264139 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql new file mode 100644 index 0000000000..d49afdc63d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql new file mode 100644 index 0000000000..e9641de5ed --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql new file mode 100644 index 0000000000..67e46a38fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql new file mode 100644 index 0000000000..6b9fa680c3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql new file mode 100644 index 0000000000..0160b9c1a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql new file mode 100644 index 0000000000..e2b3d317a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql new file mode 100644 index 0000000000..3fc9158ca2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql new file mode 100644 index 0000000000..b447996855 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql new file mode 100644 index 0000000000..c884362677 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql new file mode 100644 index 0000000000..2cd160e33f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql new file mode 100644 index 0000000000..062366e854 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql new file mode 100644 index 0000000000..aa37643b1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql new file mode 100644 index 0000000000..07e4107f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..498ed19ceb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql new file mode 100644 index 0000000000..84fd80638b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql new file mode 100644 index 0000000000..b33960fcad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql new file mode 100644 index 0000000000..7ba3dc6750 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql new file mode 100644 index 0000000000..8a9145ac6c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql new file mode 100644 index 0000000000..cbcd9b056a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql new file mode 100644 index 0000000000..139b8c5f68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql new file mode 100644 index 0000000000..5e0c908085 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql new file mode 100644 index 0000000000..91393fd7ee --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..80a0370490 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql new file mode 100644 index 0000000000..7de76a2918 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..8de6d5dc85 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql new file mode 100644 index 0000000000..b6d4c50c07 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql @@ -0,0 +1 @@ +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql new file mode 100644 index 0000000000..f7ce47113b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql new file mode 100644 index 0000000000..2224306ce1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql new file mode 100644 index 0000000000..2f779bf8a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql new file mode 100644 index 0000000000..1c4fed4d8c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql new file mode 100644 index 0000000000..d3ae1af8b3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql new file mode 100644 index 0000000000..d6f3d3b0dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql @@ -0,0 +1 @@ +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql new file mode 100644 index 0000000000..e2a05c6a8d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql new file mode 100644 index 0000000000..34e08782fb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql new file mode 100644 index 0000000000..17f4b2cf68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql new file mode 100644 index 0000000000..a67a678e35 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql new file mode 100644 index 0000000000..8217faeab1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql @@ -0,0 +1 @@ +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql new file mode 100644 index 0000000000..1d13c98da4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql new file mode 100644 index 0000000000..612b0012d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql new file mode 100644 index 0000000000..f9e3a7a770 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..a13558b04b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql new file mode 100644 index 0000000000..973e602987 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..c17884a304 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..cc78821e78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, 'ez_lock', 3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..609826a7c2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, '', 3, 'Lock', 2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..db716c0d84 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..a0d990da69 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..7c748fde7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..792d15f4ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..e00a5afc39 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..83aa440947 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..9ccdaaf91f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..0621f947ba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..8d9a9b0b2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..34b8980372 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..ac4544a1c6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..261cb89e36 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..498e2577b1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..bf8f363666 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..17d9668f7f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..587bb93d15 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..7c0e184943 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..9d65153a4f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..5b4c34ea06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..92ea4ab159 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezsite_data" ("name", "value") +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..60f8aa7a42 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..125c3e3393 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..257e76532c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..dd2c144a37 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..9e5ff0b7d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..ba202749ca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..4b87da9303 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql new file mode 100644 index 0000000000..056312175f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql @@ -0,0 +1,2 @@ +-- Set proper sequence values after inserting data +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql new file mode 100644 index 0000000000..c8e051aa09 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql new file mode 100644 index 0000000000..a488f42672 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql new file mode 100644 index 0000000000..e7945c3bf6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql new file mode 100644 index 0000000000..1c15b1970e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql new file mode 100644 index 0000000000..67c66a320c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql new file mode 100644 index 0000000000..d8f66b1c65 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql new file mode 100644 index 0000000000..b21db5ae2f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql new file mode 100644 index 0000000000..8800566349 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql new file mode 100644 index 0000000000..0308bdc43c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql new file mode 100644 index 0000000000..dfd67783fd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql new file mode 100644 index 0000000000..48b5dc9a8e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql new file mode 100644 index 0000000000..fa8e547c55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql new file mode 100644 index 0000000000..8a3f1a9ae0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql new file mode 100644 index 0000000000..1892a4da3d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql new file mode 100644 index 0000000000..f3e2e4c7a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql new file mode 100644 index 0000000000..a0590cbafe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql new file mode 100644 index 0000000000..bea26a1658 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql new file mode 100644 index 0000000000..32e1a5952c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql new file mode 100644 index 0000000000..809801b081 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql new file mode 100644 index 0000000000..47287e5919 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql new file mode 100644 index 0000000000..994366ebbe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql new file mode 100644 index 0000000000..6f91042d3b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql new file mode 100644 index 0000000000..2a9b0dee98 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql new file mode 100644 index 0000000000..c5078959e5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql new file mode 100644 index 0000000000..f80598be3f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql new file mode 100644 index 0000000000..cd49369f7b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql new file mode 100644 index 0000000000..277a5e62f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql new file mode 100644 index 0000000000..7969e16eea --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql new file mode 100644 index 0000000000..f2557a86a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql new file mode 100644 index 0000000000..e2f0f7229c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..0bf69c19ad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..b1708d93c6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql new file mode 100644 index 0000000000..acd97e80ae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql new file mode 100644 index 0000000000..6d6498dfa3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql new file mode 100644 index 0000000000..a622a7319b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..a312f68826 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql new file mode 100644 index 0000000000..8693d6bab5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql new file mode 100644 index 0000000000..36481c9271 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..bf099e3762 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..e0c93b23f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..ab29b826f2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql new file mode 100644 index 0000000000..3f3f93dd8f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql new file mode 100644 index 0000000000..0a236b1d78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql new file mode 100644 index 0000000000..6f85547ed8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql new file mode 100644 index 0000000000..382bc2fe6f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..cd5fdd8520 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql new file mode 100644 index 0000000000..7a3cbafefc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql new file mode 100644 index 0000000000..a0694b8c61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql new file mode 100644 index 0000000000..80dcea65d9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql new file mode 100644 index 0000000000..9f76373cac --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql new file mode 100644 index 0000000000..d7b5136f63 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql new file mode 100644 index 0000000000..f0c7ac9ecc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql new file mode 100644 index 0000000000..87676071e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql new file mode 100644 index 0000000000..22d066cdca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..5e78454445 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql new file mode 100644 index 0000000000..659a26c514 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql new file mode 100644 index 0000000000..5b0696a7e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql new file mode 100644 index 0000000000..6c77193029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql new file mode 100644 index 0000000000..47fcb50231 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql new file mode 100644 index 0000000000..7fd0e3cfa1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql new file mode 100644 index 0000000000..24c8111651 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..4afcafb110 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql new file mode 100644 index 0000000000..7875734dae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql new file mode 100644 index 0000000000..ba2700ac55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..e94bd6f294 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..f17be3c68c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..25cac4ef2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..776d327767 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..7a7cde12e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql new file mode 100644 index 0000000000..f1364cf079 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql new file mode 100644 index 0000000000..5dddc18819 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql new file mode 100644 index 0000000000..6fd63f61d8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql new file mode 100644 index 0000000000..022ffd1c54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql new file mode 100644 index 0000000000..2459702346 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql new file mode 100644 index 0000000000..cb0f62d824 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql new file mode 100644 index 0000000000..17c73894b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql new file mode 100644 index 0000000000..f68fa6262f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql new file mode 100644 index 0000000000..6e86f88cfe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..13b2780ba6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql new file mode 100644 index 0000000000..6b23dbfdcb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql new file mode 100644 index 0000000000..c8391d6730 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql new file mode 100644 index 0000000000..320329b4f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql new file mode 100644 index 0000000000..31e10963b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql new file mode 100644 index 0000000000..d89a560a80 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql new file mode 100644 index 0000000000..3a0b46cb82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..9c80af1662 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql new file mode 100644 index 0000000000..c09dfefbf0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql new file mode 100644 index 0000000000..5553d5dbb9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql new file mode 100644 index 0000000000..576d349337 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..330a997cdc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql new file mode 100644 index 0000000000..a53893b840 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql new file mode 100644 index 0000000000..d47ec6ff06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql new file mode 100644 index 0000000000..066bdd2ddf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..8cf7a78639 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql new file mode 100644 index 0000000000..22a5480ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql new file mode 100644 index 0000000000..1b230d30c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql new file mode 100644 index 0000000000..e97fae979c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql new file mode 100644 index 0000000000..4f2edf4230 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql new file mode 100644 index 0000000000..980553e6cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql new file mode 100644 index 0000000000..41f87ea995 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..73919870ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql new file mode 100644 index 0000000000..eb1712c587 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql new file mode 100644 index 0000000000..d9ade282a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql @@ -0,0 +1 @@ +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql new file mode 100644 index 0000000000..f8b3625958 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql new file mode 100644 index 0000000000..7ad71e9d33 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql new file mode 100644 index 0000000000..0dc2e4d0ff --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql new file mode 100644 index 0000000000..a52478c504 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql new file mode 100644 index 0000000000..b6a67a8141 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql new file mode 100644 index 0000000000..b1093dd031 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql new file mode 100644 index 0000000000..74974918cf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql new file mode 100644 index 0000000000..a16efa09bf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql new file mode 100644 index 0000000000..c71ce38856 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql @@ -0,0 +1 @@ +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql new file mode 100644 index 0000000000..f22ea4c070 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql new file mode 100644 index 0000000000..9fd53f1f99 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql new file mode 100644 index 0000000000..4aa9687e74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql new file mode 100644 index 0000000000..5cba288e70 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql new file mode 100644 index 0000000000..d8e144c201 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..cd675686ed --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql new file mode 100644 index 0000000000..8d8572e8bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql new file mode 100644 index 0000000000..f07b97d9ab --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql new file mode 100644 index 0000000000..0404bc617b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql new file mode 100644 index 0000000000..5cc240e09b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql new file mode 100644 index 0000000000..5e822ef0c9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql new file mode 100644 index 0000000000..5e5ed94263 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql new file mode 100644 index 0000000000..987539c281 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql new file mode 100644 index 0000000000..7c7225c18d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql new file mode 100644 index 0000000000..6b519ccc54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql new file mode 100644 index 0000000000..3f6a172e7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql new file mode 100644 index 0000000000..862b80ddf5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql new file mode 100644 index 0000000000..b621afd705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql new file mode 100644 index 0000000000..18c04aae4b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql new file mode 100644 index 0000000000..0ea197813d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql new file mode 100644 index 0000000000..366c989ec0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql new file mode 100644 index 0000000000..9a3d4f8171 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..79c443ef85 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql new file mode 100644 index 0000000000..6640c10ce8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql @@ -0,0 +1 @@ +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..08bd1cf9d0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql new file mode 100644 index 0000000000..446a27fdaa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql new file mode 100644 index 0000000000..8c0458bdde --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql new file mode 100644 index 0000000000..3b64a2bfba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql new file mode 100644 index 0000000000..e8330b63d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql new file mode 100644 index 0000000000..e33390d2a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql new file mode 100644 index 0000000000..a712365e6b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..568edef679 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql new file mode 100644 index 0000000000..fb984de9f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql new file mode 100644 index 0000000000..724819087d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql new file mode 100644 index 0000000000..9c46453535 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql new file mode 100644 index 0000000000..058c9b9de2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql new file mode 100644 index 0000000000..6864b9d5b8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql new file mode 100644 index 0000000000..bea025a97c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql new file mode 100644 index 0000000000..d1f15870a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql new file mode 100644 index 0000000000..ee7a50072c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql new file mode 100644 index 0000000000..6e77c80b0a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql new file mode 100644 index 0000000000..0cabe9726b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql new file mode 100644 index 0000000000..40720c87df --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql new file mode 100644 index 0000000000..d49afdc63d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql new file mode 100644 index 0000000000..4457d5a9ca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql new file mode 100644 index 0000000000..67e46a38fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql new file mode 100644 index 0000000000..6b9fa680c3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql new file mode 100644 index 0000000000..0160b9c1a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql new file mode 100644 index 0000000000..e2b3d317a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql new file mode 100644 index 0000000000..46fd22ba70 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql new file mode 100644 index 0000000000..b447996855 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql new file mode 100644 index 0000000000..c884362677 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql new file mode 100644 index 0000000000..2cd160e33f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql new file mode 100644 index 0000000000..062366e854 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql new file mode 100644 index 0000000000..aa37643b1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql new file mode 100644 index 0000000000..07e4107f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..fc7ced0139 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql new file mode 100644 index 0000000000..84fd80638b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql new file mode 100644 index 0000000000..b33960fcad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql new file mode 100644 index 0000000000..c3f47f4bb7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql new file mode 100644 index 0000000000..8a9145ac6c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql new file mode 100644 index 0000000000..2a952aa64e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql new file mode 100644 index 0000000000..139b8c5f68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql new file mode 100644 index 0000000000..5e0c908085 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql new file mode 100644 index 0000000000..91393fd7ee --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..b559dae946 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql new file mode 100644 index 0000000000..4fef3f6bce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..0644e63339 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql new file mode 100644 index 0000000000..b6d4c50c07 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql @@ -0,0 +1 @@ +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql new file mode 100644 index 0000000000..045b996bbd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql new file mode 100644 index 0000000000..2224306ce1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql new file mode 100644 index 0000000000..2f779bf8a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql new file mode 100644 index 0000000000..5d10f19c92 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql new file mode 100644 index 0000000000..8d12ee2b45 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql @@ -0,0 +1,2 @@ +CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) +); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql new file mode 100644 index 0000000000..d6f3d3b0dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql @@ -0,0 +1 @@ +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql new file mode 100644 index 0000000000..e2a05c6a8d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql new file mode 100644 index 0000000000..56545a77df --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql new file mode 100644 index 0000000000..17f4b2cf68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql new file mode 100644 index 0000000000..4ccb1fc31a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql new file mode 100644 index 0000000000..8217faeab1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql @@ -0,0 +1 @@ +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql new file mode 100644 index 0000000000..1d13c98da4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..64e0eacdd1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..677a43ca5c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..9930341865 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..dc7872d95b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..9a0dd8d0e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..97bfa86644 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..540efcb3ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..30ad516ff8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..ffa17693b0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..1f517c87e3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..61aea82715 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..c18bc54f7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..d2ec35a36f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..fc75852a7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..1cfc2b9049 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..f8ba2fe49d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..b69e8a455f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..7e0d289d2b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..d1dfc57ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..26ef009ea8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..16605e3ee2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..a12ae3cbfb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..82536384d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..dbdfab1b74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..1a3fce42c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..60ee1309ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..151e4f6fa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..5ad1f12f1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..c87f9291dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..5a44f420f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php deleted file mode 100644 index 0582363709..0000000000 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php +++ /dev/null @@ -1,58 +0,0 @@ -setDefinition( - InstallPlatformCommand::class, - new Definition(InstallPlatformCommand::class, ['$installers' => []]) - ); - $definition = new Definition(); - $definition->addTag( - InstallerTagPass::INSTALLER_TAG, - [ - 'type' => 'installer_type', - ] - ); - - $this->setDefinition('service_id', $definition); - $this->compile(); - - $this->assertContainerBuilderHasServiceDefinitionWithArgument( - InstallPlatformCommand::class, - '$installers', - [ - 'installer_type' => new Reference('service_id'), - ] - ); - } - - protected function registerCompilerPass(ContainerBuilder $container): void - { - $container->addCompilerPass(new InstallerTagPass()); - } -} - -class_alias(InstallerTagPassTest::class, 'EzSystems\PlatformInstallerBundleTests\DependencyInjection\Compiler\InstallerTagPassTest'); diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index 19ff4e77d1..ef93b0dbf8 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -9,7 +9,6 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection; use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension; use Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller; use Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller; @@ -32,7 +31,7 @@ public function testLoadLoadsTaggedCoreInstaller(): void ); $this->assertContainerBuilderHasServiceDefinitionWithTag( CoreInstaller::class, - InstallerTagPass::INSTALLER_TAG, + 'ibexa.installer', ['type' => 'clean'] ); } diff --git a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php index 323370c693..fec8749159 100644 --- a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php +++ b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php @@ -9,10 +9,8 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DependencyInjection\DoctrineSchemaExtension; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\IbexaRepositoryInstallerBundle; use PHPUnit\Framework\TestCase; -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; @@ -33,17 +31,10 @@ public function testBuild(): void { $container = new ContainerBuilder(); $container->registerExtension(new DoctrineSchemaExtension()); + $this->bundle->build($container); - // check if InstallerTagPass was added - self::assertNotEmpty( - array_filter( - $container->getCompilerPassConfig()->getPasses(), - static function (CompilerPassInterface $compilerPass) { - return $compilerPass instanceof InstallerTagPass; - } - ) - ); + $this->expectNotToPerformAssertions(); } /** From 6afd5921bea905f7fd7ae0c28a74fe94956771a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 17 Jul 2026 10:04:41 +0200 Subject: [PATCH 02/88] Fixed PHPStan generics error on ServiceLocator Symfony\Component\DependencyInjection\ServiceLocator is not a generic class, so PHPStan rejects the ServiceLocator PHPDoc type used for InstallPlatformCommand::$installers. Removed the invalid generic parameter; the type-hint itself (plain ServiceLocator) is unaffected. --- .../RepositoryInstaller/Command/InstallPlatformCommand.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index f9f62de371..567f33680a 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -34,7 +34,6 @@ final class InstallPlatformCommand extends Command implements BackwardCompatible private string $environment; - /** @var \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> */ private ServiceLocator $installers; private RepositoryConfigurationProvider $repositoryConfigurationProvider; @@ -44,9 +43,6 @@ final class InstallPlatformCommand extends Command implements BackwardCompatible public const EXIT_UNKNOWN_INSTALL_TYPE = 6; public const EXIT_MISSING_PERMISSIONS = 7; - /** - * @param \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> $installers - */ public function __construct( Connection $connection, ServiceLocator $installers, From 4fcae33106dafb5a269f2679b52498d0054c0534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 17 Jul 2026 12:42:50 +0200 Subject: [PATCH 03/88] [Doctrine Migrations] Inlined SQL directly into migration classes Converts InstallSchemaMigration and ImportDataMigration from Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion (which loads its SQL from a YAML manifest + one-statement-per-file pairs at runtime) to Doctrine\Migrations\AbstractMigration directly, with every statement inlined as an addSql() call in up(), branching on $this->platform (MySqlPlatform/PostgreSqlPlatform/SqlitePlatform). Both still implement IbexaMigrationInterface and are tagged with IbexaMigrationTag::TAG in services.yml, so they remain discoverable by TaggedMigrationsRunner/ServiceMigrationsRepository/IbexaOnlyDependencyFactory exactly as before - no other part of the installer changes. Removes the entire Resources/migrations/ YAML+SQL-file tree (509 files), generated from the same schema.yaml/cleandata.sql sources as before. --- .../Migration/ImportDataMigration.php | 883 +++++++++++++++++- .../Migration/InstallSchemaMigration.php | 413 +++++++- .../Resources/migrations/import_data.yaml | 243 ----- .../Resources/migrations/install_schema.yaml | 773 --------------- .../sql/mysql/0001_create_ezbinaryfile.sql | 1 - .../sql/mysql/0002_create_ezcobj_state.sql | 1 - .../mysql/0003_create_ezcobj_state_group.sql | 1 - ...004_create_ezcobj_state_group_language.sql | 1 - .../0005_create_ezcobj_state_language.sql | 1 - .../mysql/0006_create_ezcobj_state_link.sql | 1 - .../mysql/0007_create_ezcontent_language.sql | 1 - .../sql/mysql/0008_create_ezuser.sql | 1 - .../0009_create_ezcontentobject_tree.sql | 1 - .../0010_create_ezcontentbrowsebookmark.sql | 1 - .../sql/mysql/0011_create_ezcontentclass.sql | 1 - .../0012_create_ezcontentclass_attribute.sql | 1 - ...013_create_ezcontentclass_attribute_ml.sql | 1 - .../0014_create_ezcontentclass_classgroup.sql | 1 - .../mysql/0015_create_ezcontentclass_name.sql | 1 - .../mysql/0016_create_ezcontentclassgroup.sql | 1 - .../sql/mysql/0017_create_ezcontentobject.sql | 1 - .../0018_create_ezcontentobject_attribute.sql | 1 - .../0019_create_ezcontentobject_link.sql | 1 - .../0020_create_ezcontentobject_name.sql | 1 - .../0021_create_ezcontentobject_trash.sql | 1 - .../0022_create_ezcontentobject_version.sql | 1 - .../sql/mysql/0023_create_ezdfsfile.sql | 1 - .../sql/mysql/0024_create_ezgmaplocation.sql | 1 - .../sql/mysql/0025_create_ezimagefile.sql | 1 - .../sql/mysql/0026_create_ezkeyword.sql | 1 - .../0027_create_ezkeyword_attribute_link.sql | 1 - .../sql/mysql/0028_create_ezmedia.sql | 1 - .../mysql/0029_create_eznode_assignment.sql | 1 - .../sql/mysql/0030_create_eznotification.sql | 1 - .../sql/mysql/0031_create_ezpackage.sql | 1 - .../sql/mysql/0032_create_ezpolicy.sql | 1 - .../mysql/0033_create_ezpolicy_limitation.sql | 1 - .../0034_create_ezpolicy_limitation_value.sql | 1 - .../sql/mysql/0035_create_ezpreferences.sql | 1 - .../sql/mysql/0036_create_ezrole.sql | 1 - .../0037_create_ezsearch_object_word_link.sql | 1 - .../sql/mysql/0038_create_ezsearch_word.sql | 1 - .../sql/mysql/0039_create_ezsection.sql | 1 - .../sql/mysql/0040_create_ezsite_data.sql | 1 - .../sql/mysql/0041_create_ezurl.sql | 1 - .../mysql/0042_create_ezurl_object_link.sql | 1 - .../sql/mysql/0043_create_ezurlalias.sql | 1 - .../sql/mysql/0044_create_ezurlalias_ml.sql | 1 - .../mysql/0045_create_ezurlalias_ml_incr.sql | 1 - .../sql/mysql/0046_create_ezurlwildcard.sql | 1 - .../mysql/0047_create_ezuser_accountkey.sql | 1 - .../sql/mysql/0048_create_ezuser_role.sql | 1 - .../sql/mysql/0049_create_ezuser_setting.sql | 1 - .../sql/mysql/0050_create_ibexa_setting.sql | 1 - .../mysql/0051_create_ibexa_token_type.sql | 1 - .../sql/mysql/0052_create_ibexa_token.sql | 1 - ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 - ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 - .../mysql/data/0001_insert_ezcobj_state.sql | 3 - .../data/0002_insert_ezcobj_state_group.sql | 2 - ...003_insert_ezcobj_state_group_language.sql | 2 - .../0004_insert_ezcobj_state_language.sql | 3 - .../data/0005_insert_ezcobj_state_link.sql | 13 - .../data/0006_insert_ezcontent_language.sql | 2 - .../mysql/data/0007_insert_ezcontentclass.sql | 7 - .../0008_insert_ezcontentclass_attribute.sql | 25 - .../0009_insert_ezcontentclass_classgroup.sql | 7 - .../data/0010_insert_ezcontentclass_name.sql | 7 - .../data/0011_insert_ezcontentclassgroup.sql | 4 - .../data/0012_insert_ezcontentobject.sql | 13 - .../0013_insert_ezcontentobject_attribute.sql | 41 - .../data/0014_insert_ezcontentobject_name.sql | 13 - .../data/0015_insert_ezcontentobject_tree.sql | 14 - .../0016_insert_ezcontentobject_version.sql | 13 - .../data/0017_insert_eznode_assignment.sql | 13 - .../sql/mysql/data/0018_insert_ezpolicy.sql | 9 - .../data/0019_insert_ezpolicy_limitation.sql | 7 - .../0020_insert_ezpolicy_limitation_value.sql | 8 - .../sql/mysql/data/0021_insert_ezrole.sql | 5 - .../sql/mysql/data/0022_insert_ezsection.sql | 4 - .../mysql/data/0023_insert_ezsite_data.sql | 2 - .../sql/mysql/data/0024_insert_ezurlalias.sql | 13 - .../mysql/data/0025_insert_ezurlalias_ml.sql | 26 - .../data/0026_insert_ezurlalias_ml_incr.sql | 4 - .../sql/mysql/data/0027_insert_ezuser.sql | 3 - .../mysql/data/0028_insert_ezuser_role.sql | 7 - .../mysql/data/0029_insert_ezuser_setting.sql | 3 - .../mysql/data/0030_insert_ezpreferences.sql | 2 - .../postgresql/0001_create_ezbinaryfile.sql | 1 - .../postgresql/0002_create_ezcobj_state.sql | 1 - ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 - ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 - ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 - .../0006_create_ezcobj_state_group.sql | 1 - ...j_state_group_ezcobj_state_group_lmask.sql | 1 - ...te_group_ezcobj_state_group_identifier.sql | 1 - ...009_create_ezcobj_state_group_language.sql | 1 - .../0010_create_ezcobj_state_language.sql | 1 - .../0011_create_ezcobj_state_link.sql | 1 - .../0012_create_ezcontent_language.sql | 1 - ...ntent_language_ezcontent_language_name.sql | 1 - .../sql/postgresql/0014_create_ezuser.sql | 1 - .../0015_index_ezuser_ezuser_login.sql | 1 - .../0016_create_ezcontentobject_tree.sql | 1 - ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 - ...t_tree_ezcontentobject_tree_path_ident.sql | 1 - ...ject_tree_contentobject_id_path_string.sql | 1 - ...object_tree_ezcontentobject_tree_co_id.sql | 1 - ...object_tree_ezcontentobject_tree_depth.sql | 1 - ...tobject_tree_ezcontentobject_tree_path.sql | 1 - ..._ezcontentobject_tree_modified_subnode.sql | 1 - ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 - .../0025_create_ezcontentbrowsebookmark.sql | 1 - ...kmark_ezcontentbrowsebookmark_location.sql | 1 - ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 - ..._ezcontentbrowsebookmark_user_location.sql | 1 - .../postgresql/0029_create_ezcontentclass.sql | 1 - ..._ezcontentclass_ezcontentclass_version.sql | 1 - ...contentclass_ezcontentclass_identifier.sql | 1 - .../0032_create_ezcontentclass_attribute.sql | 1 - ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 - ...lass_attribute_ezcontentclass_attr_dts.sql | 1 - ...035_create_ezcontentclass_attribute_ml.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - .../0037_create_ezcontentclass_classgroup.sql | 1 - .../0038_create_ezcontentclass_name.sql | 1 - .../0039_create_ezcontentclassgroup.sql | 1 - .../0040_create_ezcontentobject.sql | 1 - ...zcontentobject_ezcontentobject_classid.sql | 1 - ..._ezcontentobject_ezcontentobject_lmask.sql | 1 - ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 - ...zcontentobject_ezcontentobject_section.sql | 1 - ...tobject_ezcontentobject_currentversion.sql | 1 - ..._ezcontentobject_ezcontentobject_owner.sql | 1 - ...ezcontentobject_ezcontentobject_status.sql | 1 - ...ontentobject_ezcontentobject_remote_id.sql | 1 - .../0049_create_ezcontentobject_attribute.sql | 1 - ...ntobject_attribute_co_id_ver_lang_code.sql | 1 - ...attribute_ezcontentobject_classattr_id.sql | 1 - ...ontentobject_attribute_sort_key_string.sql | 1 - ...zcontentobject_attribute_language_code.sql | 1 - ...ezcontentobject_attribute_sort_key_int.sql | 1 - ...te_ezcontentobject_attribute_co_id_ver.sql | 1 - .../0056_create_ezcontentobject_link.sql | 1 - ...zcontentobject_link_ezco_link_to_co_id.sql | 1 - ...ex_ezcontentobject_link_ezco_link_from.sql | 1 - ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 - .../0060_create_ezcontentobject_name.sql | 1 - ...ject_name_ezcontentobject_name_lang_id.sql | 1 - ...bject_name_ezcontentobject_name_cov_id.sql | 1 - ...tobject_name_ezcontentobject_name_name.sql | 1 - .../0064_create_ezcontentobject_trash.sql | 1 - ...contentobject_trash_ezcobj_trash_depth.sql | 1 - ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 - ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 - ...contentobject_trash_ezcobj_trash_co_id.sql | 1 - ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 - ...zcontentobject_trash_ezcobj_trash_path.sql | 1 - .../0071_create_ezcontentobject_version.sql | 1 - ...ntobject_version_ezcobj_version_status.sql | 1 - ...ject_version_idx_object_version_objver.sql | 1 - ...t_version_ezcontobj_version_obj_status.sql | 1 - ...ject_version_ezcobj_version_creator_id.sql | 1 - .../sql/postgresql/0076_create_ezdfsfile.sql | 1 - ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 - ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 - .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 - .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 - .../postgresql/0081_create_ezgmaplocation.sql | 1 - ..._ezgmaplocation_latitude_longitude_key.sql | 1 - .../postgresql/0083_create_ezimagefile.sql | 1 - ...084_index_ezimagefile_ezimagefile_file.sql | 1 - ...085_index_ezimagefile_ezimagefile_coid.sql | 1 - .../sql/postgresql/0086_create_ezkeyword.sql | 1 - ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 - .../0088_create_ezkeyword_attribute_link.sql | 1 - ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 - .../sql/postgresql/0092_create_ezmedia.sql | 1 - .../0093_create_eznode_assignment.sql | 1 - ...e_assignment_eznode_assignment_is_main.sql | 1 - ..._assignment_eznode_assignment_coid_cov.sql | 1 - ...signment_eznode_assignment_parent_node.sql | 1 - ...ssignment_eznode_assignment_co_version.sql | 1 - .../postgresql/0098_create_eznotification.sql | 1 - ...cation_eznotification_owner_is_pending.sql | 1 - ...ex_eznotification_eznotification_owner.sql | 1 - .../sql/postgresql/0101_create_ezpackage.sql | 1 - .../sql/postgresql/0102_create_ezpolicy.sql | 1 - .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 - ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 - .../0105_create_ezpolicy_limitation.sql | 1 - ...06_index_ezpolicy_limitation_policy_id.sql | 1 - .../0107_create_ezpolicy_limitation_value.sql | 1 - ...on_value_ezpolicy_limit_value_limit_id.sql | 1 - ...on_value_ezpolicy_limitation_value_val.sql | 1 - .../postgresql/0110_create_ezpreferences.sql | 1 - ...zpreferences_ezpreferences_user_id_idx.sql | 1 - ...index_ezpreferences_ezpreferences_name.sql | 1 - .../sql/postgresql/0113_create_ezrole.sql | 1 - .../0114_create_ezsearch_object_word_link.sql | 1 - ..._link_ezsearch_object_word_link_object.sql | 1 - ...k_ezsearch_object_word_link_identifier.sql | 1 - ...zsearch_object_word_link_integer_value.sql | 1 - ...rd_link_ezsearch_object_word_link_word.sql | 1 - ...nk_ezsearch_object_word_link_frequency.sql | 1 - .../postgresql/0120_create_ezsearch_word.sql | 1 - ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 - ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 - .../sql/postgresql/0123_create_ezsection.sql | 1 - .../postgresql/0124_create_ezsite_data.sql | 1 - .../sql/postgresql/0125_create_ezurl.sql | 1 - .../postgresql/0126_index_ezurl_ezurl_url.sql | 1 - .../0127_create_ezurl_object_link.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 - ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 - ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 - .../sql/postgresql/0132_create_ezurlalias.sql | 1 - ...index_ezurlalias_ezurlalias_source_md5.sql | 1 - ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 - ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 - ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 - ...index_ezurlalias_ezurlalias_source_url.sql | 1 - ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 - .../postgresql/0139_create_ezurlalias_ml.sql | 1 - ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 - ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 - ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 - ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 - ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 - ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 - .../0148_create_ezurlalias_ml_incr.sql | 1 - .../postgresql/0149_create_ezurlwildcard.sql | 1 - .../0150_create_ezuser_accountkey.sql | 1 - .../0151_index_ezuser_accountkey_hash_key.sql | 1 - .../postgresql/0152_create_ezuser_role.sql | 1 - ..._index_ezuser_role_ezuser_role_role_id.sql | 1 - ...user_role_ezuser_role_contentobject_id.sql | 1 - .../postgresql/0155_create_ezuser_setting.sql | 1 - .../postgresql/0156_create_ibexa_setting.sql | 1 - ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 - ...setting_ibexa_setting_group_identifier.sql | 1 - .../0159_create_ibexa_token_type.sql | 1 - ...exa_token_type_ibexa_token_type_unique.sql | 1 - .../postgresql/0161_create_ibexa_token.sql | 1 - ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 - ...3_index_ibexa_token_ibexa_token_unique.sql | 1 - ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 - ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 - .../data/0001_insert_ezcobj_state.sql | 3 - .../data/0002_insert_ezcobj_state_group.sql | 2 - ...003_insert_ezcobj_state_group_language.sql | 2 - .../0004_insert_ezcobj_state_language.sql | 3 - .../data/0005_insert_ezcobj_state_link.sql | 13 - .../data/0006_insert_ezcontent_language.sql | 2 - .../data/0007_insert_ezcontentclass.sql | 7 - .../0008_insert_ezcontentclass_attribute.sql | 25 - .../0009_insert_ezcontentclass_classgroup.sql | 7 - .../data/0010_insert_ezcontentclass_name.sql | 7 - .../data/0011_insert_ezcontentclassgroup.sql | 4 - .../data/0012_insert_ezcontentobject.sql | 13 - .../0013_insert_ezcontentobject_attribute.sql | 41 - .../data/0014_insert_ezcontentobject_name.sql | 13 - .../data/0015_insert_ezcontentobject_tree.sql | 14 - .../0016_insert_ezcontentobject_version.sql | 13 - .../data/0017_insert_eznode_assignment.sql | 13 - .../postgresql/data/0018_insert_ezpolicy.sql | 9 - .../data/0019_insert_ezpolicy_limitation.sql | 7 - .../0020_insert_ezpolicy_limitation_value.sql | 8 - .../postgresql/data/0021_insert_ezrole.sql | 5 - .../postgresql/data/0022_insert_ezsection.sql | 4 - .../data/0023_insert_ezsite_data.sql | 2 - .../data/0024_insert_ezurlalias.sql | 13 - .../data/0025_insert_ezurlalias_ml.sql | 26 - .../data/0026_insert_ezurlalias_ml_incr.sql | 4 - .../postgresql/data/0027_insert_ezuser.sql | 3 - .../data/0028_insert_ezuser_role.sql | 7 - .../data/0029_insert_ezuser_setting.sql | 3 - .../data/0030_insert_ezpreferences.sql | 2 - .../0031_setval_ezcobj_state_group_id_seq.sql | 2 - .../data/0032_setval_ezcobj_state_id_seq.sql | 1 - ..._setval_ezcontentbrowsebookmark_id_seq.sql | 1 - ...setval_ezcontentclass_attribute_id_seq.sql | 1 - .../0035_setval_ezcontentclass_id_seq.sql | 1 - ...0036_setval_ezcontentclassgroup_id_seq.sql | 1 - ...etval_ezcontentobject_attribute_id_seq.sql | 1 - .../0038_setval_ezcontentobject_id_seq.sql | 1 - ...039_setval_ezcontentobject_link_id_seq.sql | 1 - ...etval_ezcontentobject_tree_node_id_seq.sql | 1 - ..._setval_ezcontentobject_version_id_seq.sql | 1 - .../data/0042_setval_ezimagefile_id_seq.sql | 1 - ...setval_ezkeyword_attribute_link_id_seq.sql | 1 - .../data/0044_setval_ezkeyword_id_seq.sql | 1 - .../0045_setval_eznode_assignment_id_seq.sql | 1 - .../0046_setval_eznotification_id_seq.sql | 1 - .../data/0047_setval_ezpackage_id_seq.sql | 1 - .../data/0048_setval_ezpolicy_id_seq.sql | 1 - ...0049_setval_ezpolicy_limitation_id_seq.sql | 1 - ...etval_ezpolicy_limitation_value_id_seq.sql | 1 - .../data/0051_setval_ezpreferences_id_seq.sql | 1 - .../data/0052_setval_ezrole_id_seq.sql | 1 - ...etval_ezsearch_object_word_link_id_seq.sql | 1 - .../data/0054_setval_ezsearch_word_id_seq.sql | 1 - .../data/0055_setval_ezsection_id_seq.sql | 1 - .../data/0056_setval_ezurl_id_seq.sql | 1 - .../data/0057_setval_ezurlalias_id_seq.sql | 1 - .../0058_setval_ezurlalias_ml_incr_id_seq.sql | 1 - .../data/0059_setval_ezurlwildcard_id_seq.sql | 1 - .../0060_setval_ezuser_accountkey_id_seq.sql | 1 - .../data/0061_setval_ezuser_role_id_seq.sql | 1 - .../sql/sqlite/0001_create_ezbinaryfile.sql | 1 - .../sql/sqlite/0002_create_ezcobj_state.sql | 1 - ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 - ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 - ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 - .../sqlite/0006_create_ezcobj_state_group.sql | 1 - ...j_state_group_ezcobj_state_group_lmask.sql | 1 - ...te_group_ezcobj_state_group_identifier.sql | 1 - ...009_create_ezcobj_state_group_language.sql | 1 - .../0010_create_ezcobj_state_language.sql | 1 - .../sqlite/0011_create_ezcobj_state_link.sql | 1 - .../sqlite/0012_create_ezcontent_language.sql | 1 - ...ntent_language_ezcontent_language_name.sql | 1 - .../sql/sqlite/0014_create_ezuser.sql | 1 - .../sqlite/0015_index_ezuser_ezuser_login.sql | 1 - .../0016_create_ezcontentobject_tree.sql | 1 - ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 - ...t_tree_ezcontentobject_tree_path_ident.sql | 1 - ...ject_tree_contentobject_id_path_string.sql | 1 - ...object_tree_ezcontentobject_tree_co_id.sql | 1 - ...object_tree_ezcontentobject_tree_depth.sql | 1 - ...tobject_tree_ezcontentobject_tree_path.sql | 1 - ..._ezcontentobject_tree_modified_subnode.sql | 1 - ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 - .../0025_create_ezcontentbrowsebookmark.sql | 1 - ...kmark_ezcontentbrowsebookmark_location.sql | 1 - ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 - ..._ezcontentbrowsebookmark_user_location.sql | 1 - .../sql/sqlite/0029_create_ezcontentclass.sql | 1 - ..._ezcontentclass_ezcontentclass_version.sql | 1 - ...contentclass_ezcontentclass_identifier.sql | 1 - .../0032_create_ezcontentclass_attribute.sql | 1 - ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 - ...lass_attribute_ezcontentclass_attr_dts.sql | 1 - ...035_create_ezcontentclass_attribute_ml.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - .../0037_create_ezcontentclass_classgroup.sql | 1 - .../0038_create_ezcontentclass_name.sql | 1 - .../0039_create_ezcontentclassgroup.sql | 1 - .../sqlite/0040_create_ezcontentobject.sql | 1 - ...zcontentobject_ezcontentobject_classid.sql | 1 - ..._ezcontentobject_ezcontentobject_lmask.sql | 1 - ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 - ...zcontentobject_ezcontentobject_section.sql | 1 - ...tobject_ezcontentobject_currentversion.sql | 1 - ..._ezcontentobject_ezcontentobject_owner.sql | 1 - ...ezcontentobject_ezcontentobject_status.sql | 1 - ...ontentobject_ezcontentobject_remote_id.sql | 1 - .../0049_create_ezcontentobject_attribute.sql | 1 - ...ntobject_attribute_co_id_ver_lang_code.sql | 1 - ...attribute_ezcontentobject_classattr_id.sql | 1 - ...ontentobject_attribute_sort_key_string.sql | 1 - ...zcontentobject_attribute_language_code.sql | 1 - ...ezcontentobject_attribute_sort_key_int.sql | 1 - ...te_ezcontentobject_attribute_co_id_ver.sql | 1 - .../0056_create_ezcontentobject_link.sql | 1 - ...zcontentobject_link_ezco_link_to_co_id.sql | 1 - ...ex_ezcontentobject_link_ezco_link_from.sql | 1 - ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 - .../0060_create_ezcontentobject_name.sql | 1 - ...ject_name_ezcontentobject_name_lang_id.sql | 1 - ...bject_name_ezcontentobject_name_cov_id.sql | 1 - ...tobject_name_ezcontentobject_name_name.sql | 1 - .../0064_create_ezcontentobject_trash.sql | 1 - ...contentobject_trash_ezcobj_trash_depth.sql | 1 - ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 - ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 - ...contentobject_trash_ezcobj_trash_co_id.sql | 1 - ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 - ...zcontentobject_trash_ezcobj_trash_path.sql | 1 - .../0071_create_ezcontentobject_version.sql | 1 - ...ntobject_version_ezcobj_version_status.sql | 1 - ...ject_version_idx_object_version_objver.sql | 1 - ...t_version_ezcontobj_version_obj_status.sql | 1 - ...ject_version_ezcobj_version_creator_id.sql | 1 - .../sql/sqlite/0076_create_ezdfsfile.sql | 1 - ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 - ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 - .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 - .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 - .../sql/sqlite/0081_create_ezgmaplocation.sql | 1 - ..._ezgmaplocation_latitude_longitude_key.sql | 1 - .../sql/sqlite/0083_create_ezimagefile.sql | 1 - ...084_index_ezimagefile_ezimagefile_file.sql | 1 - ...085_index_ezimagefile_ezimagefile_coid.sql | 1 - .../sql/sqlite/0086_create_ezkeyword.sql | 1 - ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 - .../0088_create_ezkeyword_attribute_link.sql | 1 - ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 - .../sql/sqlite/0092_create_ezmedia.sql | 1 - .../sqlite/0093_create_eznode_assignment.sql | 1 - ...e_assignment_eznode_assignment_is_main.sql | 1 - ..._assignment_eznode_assignment_coid_cov.sql | 1 - ...signment_eznode_assignment_parent_node.sql | 1 - ...ssignment_eznode_assignment_co_version.sql | 1 - .../sql/sqlite/0098_create_eznotification.sql | 1 - ...cation_eznotification_owner_is_pending.sql | 1 - ...ex_eznotification_eznotification_owner.sql | 1 - .../sql/sqlite/0101_create_ezpackage.sql | 1 - .../sql/sqlite/0102_create_ezpolicy.sql | 1 - .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 - ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 - .../0105_create_ezpolicy_limitation.sql | 1 - ...06_index_ezpolicy_limitation_policy_id.sql | 1 - .../0107_create_ezpolicy_limitation_value.sql | 1 - ...on_value_ezpolicy_limit_value_limit_id.sql | 1 - ...on_value_ezpolicy_limitation_value_val.sql | 1 - .../sql/sqlite/0110_create_ezpreferences.sql | 1 - ...zpreferences_ezpreferences_user_id_idx.sql | 1 - ...index_ezpreferences_ezpreferences_name.sql | 1 - .../sql/sqlite/0113_create_ezrole.sql | 1 - .../0114_create_ezsearch_object_word_link.sql | 1 - ..._link_ezsearch_object_word_link_object.sql | 1 - ...k_ezsearch_object_word_link_identifier.sql | 1 - ...zsearch_object_word_link_integer_value.sql | 1 - ...rd_link_ezsearch_object_word_link_word.sql | 1 - ...nk_ezsearch_object_word_link_frequency.sql | 1 - .../sql/sqlite/0120_create_ezsearch_word.sql | 1 - ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 - ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 - .../sql/sqlite/0123_create_ezsection.sql | 1 - .../sql/sqlite/0124_create_ezsite_data.sql | 1 - .../sql/sqlite/0125_create_ezurl.sql | 1 - .../sql/sqlite/0126_index_ezurl_ezurl_url.sql | 1 - .../sqlite/0127_create_ezurl_object_link.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 - ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 - ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 - .../sql/sqlite/0132_create_ezurlalias.sql | 1 - ...index_ezurlalias_ezurlalias_source_md5.sql | 1 - ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 - ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 - ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 - ...index_ezurlalias_ezurlalias_source_url.sql | 1 - ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 - .../sql/sqlite/0139_create_ezurlalias_ml.sql | 1 - ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 - ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 - ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 - ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 - ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 - ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 - .../sqlite/0148_create_ezurlalias_ml_incr.sql | 1 - .../sql/sqlite/0149_create_ezurlwildcard.sql | 1 - .../sqlite/0150_create_ezuser_accountkey.sql | 1 - .../0151_index_ezuser_accountkey_hash_key.sql | 1 - .../sql/sqlite/0152_create_ezuser_role.sql | 1 - ..._index_ezuser_role_ezuser_role_role_id.sql | 1 - ...user_role_ezuser_role_contentobject_id.sql | 1 - .../sql/sqlite/0155_create_ezuser_setting.sql | 1 - .../sql/sqlite/0156_create_ibexa_setting.sql | 2 - ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 - ...setting_ibexa_setting_group_identifier.sql | 1 - .../sqlite/0159_create_ibexa_token_type.sql | 1 - ...exa_token_type_ibexa_token_type_unique.sql | 1 - .../sql/sqlite/0161_create_ibexa_token.sql | 1 - ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 - ...3_index_ibexa_token_ibexa_token_unique.sql | 1 - .../sqlite/data/0001_insert_ezcobj_state.sql | 3 - .../data/0002_insert_ezcobj_state_group.sql | 2 - ...003_insert_ezcobj_state_group_language.sql | 2 - .../0004_insert_ezcobj_state_language.sql | 3 - .../data/0005_insert_ezcobj_state_link.sql | 13 - .../data/0006_insert_ezcontent_language.sql | 2 - .../data/0007_insert_ezcontentclass.sql | 7 - .../0008_insert_ezcontentclass_attribute.sql | 25 - .../0009_insert_ezcontentclass_classgroup.sql | 7 - .../data/0010_insert_ezcontentclass_name.sql | 7 - .../data/0011_insert_ezcontentclassgroup.sql | 4 - .../data/0012_insert_ezcontentobject.sql | 13 - .../0013_insert_ezcontentobject_attribute.sql | 41 - .../data/0014_insert_ezcontentobject_name.sql | 13 - .../data/0015_insert_ezcontentobject_tree.sql | 14 - .../0016_insert_ezcontentobject_version.sql | 13 - .../data/0017_insert_eznode_assignment.sql | 13 - .../sql/sqlite/data/0018_insert_ezpolicy.sql | 9 - .../data/0019_insert_ezpolicy_limitation.sql | 7 - .../0020_insert_ezpolicy_limitation_value.sql | 8 - .../sql/sqlite/data/0021_insert_ezrole.sql | 5 - .../sql/sqlite/data/0022_insert_ezsection.sql | 4 - .../sqlite/data/0023_insert_ezsite_data.sql | 2 - .../sqlite/data/0024_insert_ezurlalias.sql | 13 - .../sqlite/data/0025_insert_ezurlalias_ml.sql | 26 - .../data/0026_insert_ezurlalias_ml_incr.sql | 4 - .../sql/sqlite/data/0027_insert_ezuser.sql | 3 - .../sqlite/data/0028_insert_ezuser_role.sql | 7 - .../data/0029_insert_ezuser_setting.sql | 3 - .../sqlite/data/0030_insert_ezpreferences.sql | 2 - 511 files changed, 1270 insertions(+), 2286 deletions(-) delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index bd312b5608..f3ebfa20a9 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -9,19 +9,14 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion; +use Doctrine\DBAL\Platforms\MySqlPlatform; +use Doctrine\DBAL\Platforms\PostgreSqlPlatform; +use Doctrine\DBAL\Platforms\SqlitePlatform; +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -/** - * Imports the core Ibexa bootstrap data (default languages, sections, roles, ...), used by - * {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} to install a fresh database. - * - * Tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (see services.yml) so - * it is discoverable by the Doctrine Migrations pipeline like any other Ibexa migration. Its target version and - * creation date place it right after {@see InstallSchemaMigration} in {@see \Ibexa\Bundle\DoctrineMigrations\Comparator\IbexaMigrationComparator} - * order, since it inserts data into the tables that migration creates. - */ -final class ImportDataMigration extends AbstractVersion implements IbexaMigrationInterface +final class ImportDataMigration extends AbstractMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -38,8 +33,870 @@ public static function getCreationDate(): DateTimeImmutable return new DateTimeImmutable('2026-07-16 00:00:01'); } - protected function getYamlFilePath(): string + public function up(Schema $schema): void { - return __DIR__ . '/../Resources/migrations/import_data.yaml'; + if ($this->platform instanceof MySqlPlatform) { + $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, \'not_locked\', 3, 0), + (2, 2, 2, \'locked\', 3, 1)'); + $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,\'ez_lock\',3)'); + $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,\'\',3,\'Lock\',2)'); + $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,\'\',3,\'Not locked\'), + (2,\'\',3,\'Locked\')'); + $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1)'); + $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); + $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,\'\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), + (0,\'\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\' \',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); + $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), + (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), + (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); + $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, \'Content\'), + (2, 0, 1, \'Content\'), + (3, 0, 2, \'Users\'), + (4, 0, 2, \'Users\'), + (5, 0, 3, \'Media\'), + (12, 0, 3, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), + (2, 0, 3, \'eng-GB\', \'Article\'), + (3, 0, 3, \'eng-GB\', \'User group\'), + (4, 0, 3, \'eng-GB\', \'User\'), + (5, 0, 3, \'eng-GB\', \'Image\'), + (12, 0, 3, \'eng-GB\', \'File\')'); + $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), + (1031216941, 14, 2, 1033922113, 14, \'Users\'), + (1032009743, 14, 3, 1033922120, 14, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), + (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), + (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), + (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), + (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), + (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), + (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), + (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), + (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), + (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), + (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), + (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); + $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,119,1,NULL,NULL,\'
You are now ready to start your project.
\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), + (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), + (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), + (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), + (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), + (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), + (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), + (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), + (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), + (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), + (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), + (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), + (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), + (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), + (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), + (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), + (0,119,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), + (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), + (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), + (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), + (0,156,1,NULL,NULL,\'
This is the clean installation coming with Ibexa Platform.It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), + (0,156,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), + (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), + (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), + (0,119,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), + (0,156,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), + (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), + (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), + (0,119,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), + (0,156,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), + (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), + (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), + (0,119,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), + (0,156,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), + (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), + (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), + (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), + (0,180,14,0,0,\'\\n\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); + $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), + (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), + (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), + (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), + (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), + (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), + (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), + (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), + (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), + (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), + (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), + (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); + $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); + $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); + $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), + (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), + (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), + (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), + (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), + (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), + (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), + (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), + (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), + (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), + (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), + (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); + $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES (\'*\',317,\'content\',0,3), + (\'login\',319,\'user\',0,3), + (\'read\',328,\'content\',0,1), + (\'login\',331,\'user\',0,1), + (\'*\',332,\'*\',0,2), + (\'read\',333,\'content\',0,4), + (\'view_embed\',334,\'content\',0,1), + (\'*\',340,\'url\',0,3)'); + $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,\'Section\',328), + (252,\'Section\',329), + (253,\'SiteAccess\',331), + (254,\'Class\',333), + (255,\'Owner\',333), + (256,\'Class\',334)'); + $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,\'1\'), + (478,252,\'1\'), + (479,253,\'1766001124\'), + (480,254,\'4\'), + (481,255,\'1\'), + (482,256,\'5\'), + (483,256,\'12\')'); + $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,\'Anonymous\',\'\',0), + (2,0,\'Administrator\',\'0\',0), + (3,0,\'Editor\',\'\',0), + (4,0,\'Member\',\'\',0)'); + $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), + (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), + (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); + $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) +VALUES (\'ibexa-release\',\'4.6\')'); + $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), + (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), + (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), + (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), + (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), + (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), + (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), + (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), + (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), + (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), + (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), + (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); + $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), + (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), + (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), + (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), + (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), + (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), + (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), + (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), + (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), + (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), + (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), + (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), + (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), + (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), + (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), + (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), + (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), + (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), + (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); + $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37)'); + $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), + (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); + $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,\'\',\'\',1), + (42,31,\'\',\'\',1), + (13,32,\'Subtree\',\'/1/2/\',3), + (13,33,\'Subtree\',\'/1/43/\',3), + (12,34,\'\',\'\',2), + (13,35,\'\',\'\',4)'); + $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14)'); + $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + } elseif ($this->platform instanceof PostgreSqlPlatform) { + $this->addSql('INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, \'not_locked\', 3, 0), + (2, 2, 2, \'locked\', 3, 1)'); + $this->addSql('INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, \'ez_lock\', 3)'); + $this->addSql('INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, \'\', 3, \'Lock\', 2)'); + $this->addSql('INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,\'\',3,\'Not locked\'), + (2,\'\',3,\'Locked\')'); + $this->addSql('INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1)'); + $this->addSql('INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); + $this->addSql('INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,\'\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:6:"Folder";}\',1,1,NULL,0), + (0,\'\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\' \',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0)'); + $this->addSql('INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,FALSE,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:4:"Name";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}\',0), + (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,TRUE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,FALSE,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:17:"Short description";}\',0), + (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,FALSE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}\',0), + (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,FALSE,6,NULL,NULL,\'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,FALSE,7,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,FALSE,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:10:"Short name";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,FALSE,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:11:"Description";}\',0), + (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,TRUE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0)'); + $this->addSql('INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,\'Content\'), + (2,0,1,\'Content\'), + (3,0,2,\'Users\'), + (4,0,2,\'Users\'), + (5,0,3,\'Media\'), + (12,0,3,\'Media\')'); + $this->addSql('INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,\'eng-GB\',\'Folder\'), + (2,0,3,\'eng-GB\',\'Article\'), + (3,0,3,\'eng-GB\',\'User group\'), + (4,0,3,\'eng-GB\',\'User\'), + (5,0,3,\'eng-GB\',\'Image\'), + (12,0,3,\'eng-GB\',\'File\')'); + $this->addSql('INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), + (1031216941, 14, 2, 1033922113, 14, \'Users\'), + (1032009743, 14, 3, 1033922120, 14, \'Media\')'); + $this->addSql('INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), + (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), + (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), + (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), + (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), + (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), + (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), + (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), + (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), + (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), + (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), + (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); + $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,119,1,NULL,NULL,E\'
You are now ready to start your project.
\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), + (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), + (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), + (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), + (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), + (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), + (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), + (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), + (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), + (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), + (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), + (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), + (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), + (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), + (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), + (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), + (0,119,41,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), + (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), + (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), + (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), + (0,156,1,NULL,NULL,E\'
This is the clean installation coming with Ibexa Platform.It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), + (0,156,41,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), + (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), + (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), + (0,119,49,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), + (0,156,49,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), + (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), + (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), + (0,119,50,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), + (0,156,50,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), + (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), + (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), + (0,119,51,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), + (0,156,51,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), + (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), + (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), + (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), + (0,180,14,0,0,E\'\\n\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); + $this->addSql('INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), + (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), + (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), + (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), + (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), + (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), + (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), + (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), + (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), + (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), + (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), + (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); + $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); + $this->addSql('INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); + $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), + (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), + (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), + (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), + (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), + (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), + (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), + (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), + (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), + (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), + (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), + (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); + $this->addSql('INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES (\'*\',317,\'content\',0,3), + (\'login\',319,\'user\',0,3), + (\'read\',328,\'content\',0,1), + (\'login\',331,\'user\',0,1), + (\'*\',332,\'*\',0,2), + (\'read\',333,\'content\',0,4), + (\'view_embed\',334,\'content\',0,1), + (\'*\',340,\'url\',0,3)'); + $this->addSql('INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,\'Section\',328), + (252,\'Section\',329), + (253,\'SiteAccess\',331), + (254,\'Class\',333), + (255,\'Owner\',333), + (256,\'Class\',334)'); + $this->addSql('INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,\'1\'), + (478,252,\'1\'), + (479,253,\'1766001124\'), + (480,254,\'4\'), + (481,255,\'1\'), + (482,256,\'5\'), + (483,256,\'12\')'); + $this->addSql('INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,\'Anonymous\',\'\',0), + (2,0,\'Administrator\',\'0\',0), + (3,0,\'Editor\',\'\',0), + (4,0,\'Member\',\'\',0)'); + $this->addSql('INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), + (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), + (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); + $this->addSql('INSERT INTO "ezsite_data" ("name", "value") +VALUES (\'ibexa-release\',\'4.6\')'); + $this->addSql('INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), + (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), + (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), + (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), + (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), + (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), + (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), + (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), + (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), + (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), + (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), + (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); + $this->addSql('INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), + (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), + (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), + (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), + (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), + (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), + (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), + (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), + (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), + (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), + (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), + (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), + (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), + (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), + (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), + (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), + (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), + (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), + (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); + $this->addSql('INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37)'); + $this->addSql('INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), + (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); + $this->addSql('INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,\'\',\'\',1), + (42,31,\'\',\'\',1), + (13,32,\'Subtree\',\'/1/2/\',3), + (13,33,\'Subtree\',\'/1/43/\',3), + (12,34,\'\',\'\',2), + (13,35,\'\',\'\',4)'); + $this->addSql('INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14)'); + $this->addSql('INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM "ezuser" u WHERE u.login = \'admin\''); + $this->addSql('-- Set proper sequence values after inserting data +SELECT SETVAL(\'ezcobj_state_group_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group'); + $this->addSql('SELECT SETVAL(\'ezcobj_state_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state'); + $this->addSql('SELECT SETVAL(\'ezcontentbrowsebookmark_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark'); + $this->addSql('SELECT SETVAL(\'ezcontentclass_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute'); + $this->addSql('SELECT SETVAL(\'ezcontentclass_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass'); + $this->addSql('SELECT SETVAL(\'ezcontentclassgroup_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_tree_node_id_seq\', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_version_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version'); + $this->addSql('SELECT SETVAL(\'ezimagefile_id_seq\', COALESCE(MAX(id), 1) ) FROM ezimagefile'); + $this->addSql('SELECT SETVAL(\'ezkeyword_attribute_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link'); + $this->addSql('SELECT SETVAL(\'ezkeyword_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword'); + $this->addSql('SELECT SETVAL(\'eznode_assignment_id_seq\', COALESCE(MAX(id), 1) ) FROM eznode_assignment'); + $this->addSql('SELECT SETVAL(\'eznotification_id_seq\', COALESCE(MAX(id), 1) ) FROM eznotification'); + $this->addSql('SELECT SETVAL(\'ezpackage_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpackage'); + $this->addSql('SELECT SETVAL(\'ezpolicy_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy'); + $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation'); + $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_value_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value'); + $this->addSql('SELECT SETVAL(\'ezpreferences_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpreferences'); + $this->addSql('SELECT SETVAL(\'ezrole_id_seq\', COALESCE(MAX(id), 1) ) FROM ezrole'); + $this->addSql('SELECT SETVAL(\'ezsearch_object_word_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link'); + $this->addSql('SELECT SETVAL(\'ezsearch_word_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_word'); + $this->addSql('SELECT SETVAL(\'ezsection_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsection'); + $this->addSql('SELECT SETVAL(\'ezurl_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurl'); + $this->addSql('SELECT SETVAL(\'ezurlalias_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias'); + $this->addSql('SELECT SETVAL(\'ezurlalias_ml_incr_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr'); + $this->addSql('SELECT SETVAL(\'ezurlwildcard_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlwildcard'); + $this->addSql('SELECT SETVAL(\'ezuser_accountkey_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey'); + $this->addSql('SELECT SETVAL(\'ezuser_role_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_role'); + } elseif ($this->platform instanceof SqlitePlatform) { + $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, \'not_locked\', 3, 0), + (2, 2, 2, \'locked\', 3, 1)'); + $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,\'ez_lock\',3)'); + $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,\'\',3,\'Lock\',2)'); + $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,\'\',3,\'Not locked\'), + (2,\'\',3,\'Locked\')'); + $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1)'); + $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); + $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,\'\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), + (0,\'\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\' \',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); + $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), + (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), + (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); + $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, \'Content\'), + (2, 0, 1, \'Content\'), + (3, 0, 2, \'Users\'), + (4, 0, 2, \'Users\'), + (5, 0, 3, \'Media\'), + (12, 0, 3, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), + (2, 0, 3, \'eng-GB\', \'Article\'), + (3, 0, 3, \'eng-GB\', \'User group\'), + (4, 0, 3, \'eng-GB\', \'User\'), + (5, 0, 3, \'eng-GB\', \'Image\'), + (12, 0, 3, \'eng-GB\', \'File\')'); + $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), + (1031216941, 14, 2, 1033922113, 14, \'Users\'), + (1032009743, 14, 3, 1033922120, 14, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), + (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), + (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), + (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), + (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), + (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), + (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), + (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), + (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), + (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), + (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), + (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); + $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,119,1,NULL,NULL,\'
You are now ready to start your project.
\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), + (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), + (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), + (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), + (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), + (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), + (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), + (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), + (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), + (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), + (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), + (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), + (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), + (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), + (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), + (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), + (0,119,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), + (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), + (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), + (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), + (0,156,1,NULL,NULL,\'
This is the clean installation coming with Ibexa Platform.It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), + (0,156,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), + (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), + (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), + (0,119,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), + (0,156,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), + (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), + (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), + (0,119,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), + (0,156,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), + (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), + (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), + (0,119,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), + (0,156,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), + (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), + (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), + (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), + (0,180,14,0,0,\'\\n\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); + $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), + (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), + (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), + (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), + (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), + (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), + (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), + (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), + (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), + (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), + (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), + (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); + $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); + $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); + $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), + (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), + (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), + (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), + (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), + (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), + (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), + (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), + (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), + (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), + (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), + (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); + $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES (\'*\',317,\'content\',0,3), + (\'login\',319,\'user\',0,3), + (\'read\',328,\'content\',0,1), + (\'login\',331,\'user\',0,1), + (\'*\',332,\'*\',0,2), + (\'read\',333,\'content\',0,4), + (\'view_embed\',334,\'content\',0,1), + (\'*\',340,\'url\',0,3)'); + $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,\'Section\',328), + (252,\'Section\',329), + (253,\'SiteAccess\',331), + (254,\'Class\',333), + (255,\'Owner\',333), + (256,\'Class\',334)'); + $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,\'1\'), + (478,252,\'1\'), + (479,253,\'1766001124\'), + (480,254,\'4\'), + (481,255,\'1\'), + (482,256,\'5\'), + (483,256,\'12\')'); + $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,\'Anonymous\',\'\',0), + (2,0,\'Administrator\',\'0\',0), + (3,0,\'Editor\',\'\',0), + (4,0,\'Member\',\'\',0)'); + $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), + (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), + (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); + $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) +VALUES (\'ibexa-release\',\'4.6\')'); + $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), + (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), + (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), + (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), + (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), + (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), + (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), + (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), + (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), + (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), + (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), + (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); + $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), + (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), + (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), + (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), + (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), + (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), + (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), + (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), + (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), + (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), + (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), + (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), + (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), + (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), + (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), + (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), + (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), + (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), + (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); + $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37)'); + $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), + (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); + $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,\'\',\'\',1), + (42,31,\'\',\'\',1), + (13,32,\'Subtree\',\'/1/2/\',3), + (13,33,\'Subtree\',\'/1/43/\',3), + (12,34,\'\',\'\',2), + (13,35,\'\',\'\',4)'); + $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14)'); + $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + } else { + $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + } } } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index f58e4c8860..f10165ccc5 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -9,19 +9,14 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion; +use Doctrine\DBAL\Platforms\MySqlPlatform; +use Doctrine\DBAL\Platforms\PostgreSqlPlatform; +use Doctrine\DBAL\Platforms\SqlitePlatform; +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -/** - * Creates the core Ibexa database schema, used by {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} - * to install a fresh database. - * - * Tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (see services.yml) so - * it is discoverable by the Doctrine Migrations pipeline like any other Ibexa migration. It is also run directly - * by {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller}, which records its execution in the same - * migrations versioning table so it isn't re-applied by a later `doctrine:migrations:migrate` run. - */ -final class InstallSchemaMigration extends AbstractVersion implements IbexaMigrationInterface +final class InstallSchemaMigration extends AbstractMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -38,8 +33,400 @@ public static function getCreationDate(): DateTimeImmutable return new DateTimeImmutable('2026-07-16 00:00:00'); } - protected function getYamlFilePath(): string + public function up(Schema $schema): void { - return __DIR__ . '/../Resources/migrations/install_schema.yaml'; + if ($this->platform instanceof MySqlPlatform) { + $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT \'0\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT \'0\' NOT NULL, status TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE'); + $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE'); + $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE'); + } elseif ($this->platform instanceof PostgreSqlPlatform) { + $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); + $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); + $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); + $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); + $this->addSql('CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id))'); + $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); + $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); + $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); + $this->addSql('CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version))'); + $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); + $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'false\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id))'); + $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); + $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); + $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); + $this->addSql('CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); + $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); + $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); + $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); + $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); + $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); + $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); + $this->addSql('CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); + $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); + $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); + $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); + $this->addSql('CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); + $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); + $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); + $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); + $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); + $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); + $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); + $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); + $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); + $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); + $this->addSql('CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); + $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); + $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); + $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); + $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'false\' NOT NULL, status BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); + $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); + $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); + $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); + $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); + $this->addSql('CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); + $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); + $this->addSql('CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); + $this->addSql('CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); + $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); + $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); + $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); + $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); + $this->addSql('CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'true\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); + $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); + $this->addSql('CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); + $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); + $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); + $this->addSql('CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); + $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); + $this->addSql('CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); + $this->addSql('CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); + $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); + $this->addSql('CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name))'); + $this->addSql('CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); + $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); + $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); + $this->addSql('CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); + $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); + $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); + $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); + $this->addSql('CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); + $this->addSql('CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); + $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); + $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id))'); + $this->addSql('CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); + $this->addSql('CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); + $this->addSql('CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + } elseif ($this->platform instanceof SqlitePlatform) { + $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); + $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); + $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); + $this->addSql('CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); + $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); + $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); + $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); + $this->addSql('CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); + $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'0\' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL)'); + $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); + $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); + $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); + $this->addSql('CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'0\' NOT NULL)'); + $this->addSql('CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT \'0\' NOT NULL)'); + $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); + $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); + $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); + $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); + $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); + $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); + $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); + $this->addSql('CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); + $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); + $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); + $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); + $this->addSql('CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); + $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); + $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); + $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); + $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); + $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); + $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); + $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); + $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); + $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); + $this->addSql('CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0)'); + $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); + $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); + $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); + $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); + $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'0\' NOT NULL, status BOOLEAN DEFAULT \'0\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); + $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); + $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); + $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); + $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); + $this->addSql('CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL)'); + $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); + $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); + $this->addSql('CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); + $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); + $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); + $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); + $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); + $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); + $this->addSql('CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL)'); + $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); + $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); + $this->addSql('CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL)'); + $this->addSql('CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); + $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INTEGER DEFAULT NULL)'); + $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); + $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); + $this->addSql('CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); + $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); + $this->addSql('CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0)'); + $this->addSql('CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); + $this->addSql('CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); + $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); + $this->addSql('CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\')'); + $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name))'); + $this->addSql('CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url CLOB DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); + $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); + $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); + $this->addSql('CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL)'); + $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); + $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); + $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); + $this->addSql('CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); + $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)'); + $this->addSql('CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); + $this->addSql('CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INTEGER DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); + $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); + $this->addSql('CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id))'); + $this->addSql('CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) +)'); + $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); + $this->addSql('CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); + $this->addSql('CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'0\' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); + } else { + $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + } } } diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml deleted file mode 100644 index d7c5b372ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml +++ /dev/null @@ -1,243 +0,0 @@ -up: - - file: 'sql/mysql/data/0001_insert_ezcobj_state.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0001_insert_ezcobj_state.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0001_insert_ezcobj_state.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0002_insert_ezcobj_state_group.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0002_insert_ezcobj_state_group.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0002_insert_ezcobj_state_group.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0003_insert_ezcobj_state_group_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0004_insert_ezcobj_state_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0004_insert_ezcobj_state_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0004_insert_ezcobj_state_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0005_insert_ezcobj_state_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0005_insert_ezcobj_state_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0005_insert_ezcobj_state_link.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0006_insert_ezcontent_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0006_insert_ezcontent_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0006_insert_ezcontent_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0007_insert_ezcontentclass.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0007_insert_ezcontentclass.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0007_insert_ezcontentclass.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0008_insert_ezcontentclass_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0010_insert_ezcontentclass_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0010_insert_ezcontentclass_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0010_insert_ezcontentclass_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0011_insert_ezcontentclassgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0011_insert_ezcontentclassgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0011_insert_ezcontentclassgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0012_insert_ezcontentobject.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0012_insert_ezcontentobject.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0012_insert_ezcontentobject.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0013_insert_ezcontentobject_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0014_insert_ezcontentobject_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0014_insert_ezcontentobject_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0014_insert_ezcontentobject_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0015_insert_ezcontentobject_tree.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0015_insert_ezcontentobject_tree.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0015_insert_ezcontentobject_tree.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0016_insert_ezcontentobject_version.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0016_insert_ezcontentobject_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0016_insert_ezcontentobject_version.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0017_insert_eznode_assignment.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0017_insert_eznode_assignment.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0017_insert_eznode_assignment.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0018_insert_ezpolicy.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0018_insert_ezpolicy.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0018_insert_ezpolicy.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0019_insert_ezpolicy_limitation.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0019_insert_ezpolicy_limitation.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0019_insert_ezpolicy_limitation.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0021_insert_ezrole.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0021_insert_ezrole.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0021_insert_ezrole.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0022_insert_ezsection.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0022_insert_ezsection.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0022_insert_ezsection.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0023_insert_ezsite_data.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0023_insert_ezsite_data.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0023_insert_ezsite_data.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0024_insert_ezurlalias.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0024_insert_ezurlalias.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0024_insert_ezurlalias.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0025_insert_ezurlalias_ml.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0025_insert_ezurlalias_ml.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0025_insert_ezurlalias_ml.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0027_insert_ezuser.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0027_insert_ezuser.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0027_insert_ezuser.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0028_insert_ezuser_role.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0028_insert_ezuser_role.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0028_insert_ezuser_role.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0029_insert_ezuser_setting.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0029_insert_ezuser_setting.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0029_insert_ezuser_setting.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0030_insert_ezpreferences.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0030_insert_ezpreferences.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0030_insert_ezpreferences.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0046_setval_eznotification_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0047_setval_ezpackage_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0052_setval_ezrole_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0055_setval_ezsection_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0056_setval_ezurl_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql' - platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml deleted file mode 100644 index 1aca414724..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml +++ /dev/null @@ -1,773 +0,0 @@ -up: - - file: 'sql/mysql/0001_create_ezbinaryfile.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0001_create_ezbinaryfile.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0001_create_ezbinaryfile.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0002_create_ezcobj_state.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0002_create_ezcobj_state.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0002_create_ezcobj_state.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0003_create_ezcobj_state_group.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0006_create_ezcobj_state_group.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0006_create_ezcobj_state_group.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0004_create_ezcobj_state_group_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0009_create_ezcobj_state_group_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0009_create_ezcobj_state_group_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0005_create_ezcobj_state_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0010_create_ezcobj_state_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0010_create_ezcobj_state_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0006_create_ezcobj_state_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0011_create_ezcobj_state_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0011_create_ezcobj_state_link.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0007_create_ezcontent_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0012_create_ezcontent_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0012_create_ezcontent_language.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0008_create_ezuser.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0014_create_ezuser.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0014_create_ezuser.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0015_index_ezuser_ezuser_login.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0015_index_ezuser_ezuser_login.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0009_create_ezcontentobject_tree.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0016_create_ezcontentobject_tree.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0016_create_ezcontentobject_tree.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0010_create_ezcontentbrowsebookmark.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0025_create_ezcontentbrowsebookmark.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0025_create_ezcontentbrowsebookmark.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0011_create_ezcontentclass.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0029_create_ezcontentclass.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0029_create_ezcontentclass.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0012_create_ezcontentclass_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0032_create_ezcontentclass_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0032_create_ezcontentclass_attribute.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0013_create_ezcontentclass_attribute_ml.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0014_create_ezcontentclass_classgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0037_create_ezcontentclass_classgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0037_create_ezcontentclass_classgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0015_create_ezcontentclass_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0038_create_ezcontentclass_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0038_create_ezcontentclass_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0016_create_ezcontentclassgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0039_create_ezcontentclassgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0039_create_ezcontentclassgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0017_create_ezcontentobject.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0040_create_ezcontentobject.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0040_create_ezcontentobject.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0018_create_ezcontentobject_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0049_create_ezcontentobject_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0049_create_ezcontentobject_attribute.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0019_create_ezcontentobject_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0056_create_ezcontentobject_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0056_create_ezcontentobject_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0020_create_ezcontentobject_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0060_create_ezcontentobject_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0060_create_ezcontentobject_name.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0021_create_ezcontentobject_trash.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0064_create_ezcontentobject_trash.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0064_create_ezcontentobject_trash.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0022_create_ezcontentobject_version.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0071_create_ezcontentobject_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0071_create_ezcontentobject_version.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0023_create_ezdfsfile.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0076_create_ezdfsfile.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0076_create_ezdfsfile.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0024_create_ezgmaplocation.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0081_create_ezgmaplocation.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0081_create_ezgmaplocation.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0025_create_ezimagefile.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0083_create_ezimagefile.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0083_create_ezimagefile.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0026_create_ezkeyword.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0086_create_ezkeyword.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0086_create_ezkeyword.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0027_create_ezkeyword_attribute_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0088_create_ezkeyword_attribute_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0088_create_ezkeyword_attribute_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0028_create_ezmedia.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0092_create_ezmedia.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0092_create_ezmedia.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0029_create_eznode_assignment.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0093_create_eznode_assignment.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0093_create_eznode_assignment.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0030_create_eznotification.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0098_create_eznotification.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0098_create_eznotification.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0100_index_eznotification_eznotification_owner.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0100_index_eznotification_eznotification_owner.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0031_create_ezpackage.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0101_create_ezpackage.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0101_create_ezpackage.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0032_create_ezpolicy.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0102_create_ezpolicy.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0102_create_ezpolicy.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0033_create_ezpolicy_limitation.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0105_create_ezpolicy_limitation.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0105_create_ezpolicy_limitation.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0034_create_ezpolicy_limitation_value.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0107_create_ezpolicy_limitation_value.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0107_create_ezpolicy_limitation_value.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0035_create_ezpreferences.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0110_create_ezpreferences.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0110_create_ezpreferences.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0036_create_ezrole.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0113_create_ezrole.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0113_create_ezrole.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0037_create_ezsearch_object_word_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0114_create_ezsearch_object_word_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0114_create_ezsearch_object_word_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0038_create_ezsearch_word.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0120_create_ezsearch_word.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0120_create_ezsearch_word.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0039_create_ezsection.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0123_create_ezsection.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0123_create_ezsection.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0040_create_ezsite_data.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0124_create_ezsite_data.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0124_create_ezsite_data.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0041_create_ezurl.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0125_create_ezurl.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0125_create_ezurl.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0126_index_ezurl_ezurl_url.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0126_index_ezurl_ezurl_url.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0042_create_ezurl_object_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0127_create_ezurl_object_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0127_create_ezurl_object_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0043_create_ezurlalias.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0132_create_ezurlalias.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0132_create_ezurlalias.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0044_create_ezurlalias_ml.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0139_create_ezurlalias_ml.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0139_create_ezurlalias_ml.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0045_create_ezurlalias_ml_incr.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0148_create_ezurlalias_ml_incr.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0148_create_ezurlalias_ml_incr.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0046_create_ezurlwildcard.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0149_create_ezurlwildcard.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0149_create_ezurlwildcard.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0047_create_ezuser_accountkey.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0150_create_ezuser_accountkey.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0150_create_ezuser_accountkey.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0048_create_ezuser_role.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0152_create_ezuser_role.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0152_create_ezuser_role.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0049_create_ezuser_setting.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0155_create_ezuser_setting.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0155_create_ezuser_setting.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0050_create_ibexa_setting.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0156_create_ibexa_setting.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0156_create_ibexa_setting.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0051_create_ibexa_token_type.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0159_create_ibexa_token_type.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0159_create_ibexa_token_type.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0052_create_ibexa_token.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0161_create_ibexa_token.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0161_create_ibexa_token.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' - platforms: 'postgresql' - - file: 'sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' - platforms: 'postgresql' - - file: 'sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'postgresql' - - file: 'sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql' - platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql deleted file mode 100644 index 4550a8fde8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql deleted file mode 100644 index b7b2dcff8a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql deleted file mode 100644 index 8db47cc4fe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql deleted file mode 100644 index 7d6cb0efc5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql deleted file mode 100644 index ce7fbc900b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql deleted file mode 100644 index 8905130d9f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql deleted file mode 100644 index d314ccc990..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql deleted file mode 100644 index 902d1740c8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql deleted file mode 100644 index ba5486f96c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql deleted file mode 100644 index f7d7851f12..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql deleted file mode 100644 index 333a9e52f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql deleted file mode 100644 index b222dde913..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql deleted file mode 100644 index 8e6a1f9070..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql deleted file mode 100644 index f5a3c2d20a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql deleted file mode 100644 index c6e7644e14..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql deleted file mode 100644 index e39f7864f8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql deleted file mode 100644 index 0e84bc9642..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql deleted file mode 100644 index a15e961c0c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql deleted file mode 100644 index b41b6b97cb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql deleted file mode 100644 index 8031fb6dce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql deleted file mode 100644 index a6a8e86f13..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql deleted file mode 100644 index 50606c73b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql deleted file mode 100644 index 165177694f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT '0' NOT NULL, status TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql deleted file mode 100644 index 096c46dd2d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql deleted file mode 100644 index 5b9e6d2c2c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql deleted file mode 100644 index 2a586c9192..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql deleted file mode 100644 index 3cd519f470..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql deleted file mode 100644 index 2b9c743704..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql deleted file mode 100644 index e7765ae00a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql deleted file mode 100644 index 20edb16ebd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql deleted file mode 100644 index adba6500dd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql deleted file mode 100644 index a8130e913a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql deleted file mode 100644 index 992c1aba35..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql deleted file mode 100644 index d354086aa4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql deleted file mode 100644 index 67795da3c0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql deleted file mode 100644 index ae9d6d1647..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql deleted file mode 100644 index 5bc76956bd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql deleted file mode 100644 index 07b9e3eeb0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql deleted file mode 100644 index 9c6a91c30d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql deleted file mode 100644 index 6ed8657e61..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql deleted file mode 100644 index bd531c02d4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql deleted file mode 100644 index a795d1afba..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql deleted file mode 100644 index 10be1ded9d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql deleted file mode 100644 index f60a5debf8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql deleted file mode 100644 index 0e028a410a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql deleted file mode 100644 index 49e6fdb7cc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql deleted file mode 100644 index 0bca83a3b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql deleted file mode 100644 index 89f78ae40d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql deleted file mode 100644 index c3c035a3ea..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql deleted file mode 100644 index d664bb1bf9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql deleted file mode 100644 index 050286548c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql deleted file mode 100644 index 2cc774c11a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT '0' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql deleted file mode 100644 index fd2f319c2a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql deleted file mode 100644 index a4fe1c30db..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index 9d8fb82dc7..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql deleted file mode 100644 index f8e58ffca0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql deleted file mode 100644 index 64e0eacdd1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql deleted file mode 100644 index 677a43ca5c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql deleted file mode 100644 index 9930341865..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql deleted file mode 100644 index dc7872d95b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql deleted file mode 100644 index 9a0dd8d0e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql deleted file mode 100644 index 97bfa86644..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql deleted file mode 100644 index 540efcb3ef..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql deleted file mode 100644 index 30ad516ff8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql +++ /dev/null @@ -1,25 +0,0 @@ -INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql deleted file mode 100644 index ffa17693b0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql deleted file mode 100644 index 1f517c87e3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql deleted file mode 100644 index 61aea82715..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql deleted file mode 100644 index c18bc54f7d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql deleted file mode 100644 index d2ec35a36f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql +++ /dev/null @@ -1,41 +0,0 @@ -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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql deleted file mode 100644 index fc75852a7c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql deleted file mode 100644 index 1cfc2b9049..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql +++ /dev/null @@ -1,14 +0,0 @@ -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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql deleted file mode 100644 index f8ba2fe49d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql +++ /dev/null @@ -1,13 +0,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 (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql deleted file mode 100644 index b69e8a455f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql +++ /dev/null @@ -1,13 +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql deleted file mode 100644 index 7e0d289d2b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql deleted file mode 100644 index d1dfc57ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql deleted file mode 100644 index 26ef009ea8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql deleted file mode 100644 index 16605e3ee2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql deleted file mode 100644 index a12ae3cbfb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql deleted file mode 100644 index 82536384d3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql deleted file mode 100644 index dbdfab1b74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql deleted file mode 100644 index 1a3fce42c5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql +++ /dev/null @@ -1,26 +0,0 @@ -INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql deleted file mode 100644 index 60ee1309ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql deleted file mode 100644 index 151e4f6fa4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql deleted file mode 100644 index 5ad1f12f1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql deleted file mode 100644 index c87f9291dd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql deleted file mode 100644 index 5a44f420f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql deleted file mode 100644 index 14531f39f5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql deleted file mode 100644 index 16d6b76be3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql deleted file mode 100644 index acd97e80ae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql deleted file mode 100644 index 6d6498dfa3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql deleted file mode 100644 index a622a7319b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql deleted file mode 100644 index aa60df6bbf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql deleted file mode 100644 index 8693d6bab5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql deleted file mode 100644 index 36481c9271..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql deleted file mode 100644 index e73ef9404d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql deleted file mode 100644 index 75a6e90f82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql deleted file mode 100644 index f90c53635b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql deleted file mode 100644 index fc7a9a2fdf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql deleted file mode 100644 index 0a236b1d78..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql deleted file mode 100644 index aaf5f8ae89..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql deleted file mode 100644 index 382bc2fe6f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql deleted file mode 100644 index ebb309ad93..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql deleted file mode 100644 index 7a3cbafefc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql deleted file mode 100644 index a0694b8c61..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql deleted file mode 100644 index 80dcea65d9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql deleted file mode 100644 index 9f76373cac..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql deleted file mode 100644 index d7b5136f63..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql deleted file mode 100644 index f0c7ac9ecc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql deleted file mode 100644 index 87676071e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql deleted file mode 100644 index 22d066cdca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql deleted file mode 100644 index c9c6672a2d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql deleted file mode 100644 index 659a26c514..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql deleted file mode 100644 index 5b0696a7e8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql deleted file mode 100644 index 6c77193029..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql deleted file mode 100644 index d983cc5378..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql deleted file mode 100644 index 7fd0e3cfa1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql deleted file mode 100644 index 24c8111651..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql deleted file mode 100644 index 273341c716..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql deleted file mode 100644 index 7875734dae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql deleted file mode 100644 index ba2700ac55..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql deleted file mode 100644 index 8f5af634b4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index f17be3c68c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql deleted file mode 100644 index 3a8d83fa44..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql deleted file mode 100644 index ebcc1e629b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql deleted file mode 100644 index 4d31939956..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql deleted file mode 100644 index 06925bdc48..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql deleted file mode 100644 index 5dddc18819..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql deleted file mode 100644 index 6fd63f61d8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql deleted file mode 100644 index 022ffd1c54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql deleted file mode 100644 index 2459702346..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql deleted file mode 100644 index cb0f62d824..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql deleted file mode 100644 index 17c73894b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql deleted file mode 100644 index f68fa6262f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql deleted file mode 100644 index 6e86f88cfe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql deleted file mode 100644 index 1d315de98a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql deleted file mode 100644 index 6b23dbfdcb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql deleted file mode 100644 index c8391d6730..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql deleted file mode 100644 index 320329b4f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql deleted file mode 100644 index 31e10963b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql deleted file mode 100644 index d89a560a80..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql deleted file mode 100644 index 3a0b46cb82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql deleted file mode 100644 index 26d2b46d1c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql deleted file mode 100644 index c09dfefbf0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql deleted file mode 100644 index 5553d5dbb9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql deleted file mode 100644 index 576d349337..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql deleted file mode 100644 index fb0c9cf656..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql deleted file mode 100644 index a53893b840..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql deleted file mode 100644 index d47ec6ff06..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql deleted file mode 100644 index 066bdd2ddf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql deleted file mode 100644 index cbc1d75091..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql deleted file mode 100644 index 22a5480ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql deleted file mode 100644 index 1b230d30c0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql deleted file mode 100644 index e97fae979c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql deleted file mode 100644 index 4f2edf4230..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql deleted file mode 100644 index 980553e6cc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql deleted file mode 100644 index 41f87ea995..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql deleted file mode 100644 index 0379c24c58..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql deleted file mode 100644 index eb1712c587..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql deleted file mode 100644 index d9ade282a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql deleted file mode 100644 index f8b3625958..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql deleted file mode 100644 index 7ad71e9d33..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql deleted file mode 100644 index 9c43e1a6d2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql deleted file mode 100644 index a52478c504..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql deleted file mode 100644 index b6a67a8141..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql deleted file mode 100644 index b1093dd031..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql deleted file mode 100644 index 74974918cf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql deleted file mode 100644 index 7783fe956a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql deleted file mode 100644 index c71ce38856..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql deleted file mode 100644 index 10daf6c34e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql deleted file mode 100644 index 9fd53f1f99..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql deleted file mode 100644 index 4aa9687e74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql deleted file mode 100644 index 15f8411056..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql deleted file mode 100644 index d8e144c201..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql deleted file mode 100644 index 0f542cd006..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql deleted file mode 100644 index 8d8572e8bd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql deleted file mode 100644 index f07b97d9ab..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql deleted file mode 100644 index 0404bc617b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql deleted file mode 100644 index f2a1f54018..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql deleted file mode 100644 index 9c81b2afb8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql deleted file mode 100644 index 5e5ed94263..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql deleted file mode 100644 index 987539c281..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql deleted file mode 100644 index 7c7225c18d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql deleted file mode 100644 index 6b519ccc54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql deleted file mode 100644 index 4850a0a117..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT 'true' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql deleted file mode 100644 index 862b80ddf5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql deleted file mode 100644 index b621afd705..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql deleted file mode 100644 index 675d8f105c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql deleted file mode 100644 index 2fe0b4c43f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql deleted file mode 100644 index 366c989ec0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql deleted file mode 100644 index 9a3d4f8171..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql deleted file mode 100644 index 5e7abb39e5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql deleted file mode 100644 index 6640c10ce8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql deleted file mode 100644 index a0f290af9d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql deleted file mode 100644 index 446a27fdaa..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql deleted file mode 100644 index 8c0458bdde..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql deleted file mode 100644 index 6c23ca2fe5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql deleted file mode 100644 index e8330b63d4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql deleted file mode 100644 index e33390d2a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql deleted file mode 100644 index 3a828c94f8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql deleted file mode 100644 index 3fd4f08a00..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql deleted file mode 100644 index fb984de9f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql deleted file mode 100644 index 724819087d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql deleted file mode 100644 index 9c46453535..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql deleted file mode 100644 index 058c9b9de2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql deleted file mode 100644 index 6864b9d5b8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql deleted file mode 100644 index c4ac6e1ae2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql deleted file mode 100644 index d1f15870a4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql deleted file mode 100644 index ee7a50072c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql deleted file mode 100644 index 6bb9b22705..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql deleted file mode 100644 index 51b1319beb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql deleted file mode 100644 index 9f0b264139..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql deleted file mode 100644 index d49afdc63d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql deleted file mode 100644 index e9641de5ed..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql deleted file mode 100644 index 67e46a38fe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql deleted file mode 100644 index 6b9fa680c3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql deleted file mode 100644 index 0160b9c1a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql deleted file mode 100644 index e2b3d317a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql deleted file mode 100644 index 3fc9158ca2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql deleted file mode 100644 index b447996855..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql deleted file mode 100644 index c884362677..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql deleted file mode 100644 index 2cd160e33f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql deleted file mode 100644 index 062366e854..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql deleted file mode 100644 index aa37643b1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql deleted file mode 100644 index 07e4107f82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql deleted file mode 100644 index 498ed19ceb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql deleted file mode 100644 index 84fd80638b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql deleted file mode 100644 index b33960fcad..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql deleted file mode 100644 index 7ba3dc6750..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql deleted file mode 100644 index 8a9145ac6c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql deleted file mode 100644 index cbcd9b056a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql deleted file mode 100644 index 139b8c5f68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql deleted file mode 100644 index 5e0c908085..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql deleted file mode 100644 index 91393fd7ee..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql deleted file mode 100644 index 80a0370490..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql deleted file mode 100644 index 7de76a2918..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql deleted file mode 100644 index 8de6d5dc85..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql deleted file mode 100644 index b6d4c50c07..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql deleted file mode 100644 index f7ce47113b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql deleted file mode 100644 index 2224306ce1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql deleted file mode 100644 index 2f779bf8a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql deleted file mode 100644 index 1c4fed4d8c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql deleted file mode 100644 index d3ae1af8b3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql deleted file mode 100644 index d6f3d3b0dc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql deleted file mode 100644 index e2a05c6a8d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql deleted file mode 100644 index 34e08782fb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql deleted file mode 100644 index 17f4b2cf68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql deleted file mode 100644 index a67a678e35..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql deleted file mode 100644 index 8217faeab1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql deleted file mode 100644 index 1d13c98da4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql deleted file mode 100644 index 612b0012d2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql deleted file mode 100644 index f9e3a7a770..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index a13558b04b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql deleted file mode 100644 index 973e602987..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql deleted file mode 100644 index c17884a304..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") -VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql deleted file mode 100644 index cc78821e78..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, 'ez_lock', 3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql deleted file mode 100644 index 609826a7c2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") -VALUES (2, '', 3, 'Lock', 2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql deleted file mode 100644 index db716c0d84..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") -VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql deleted file mode 100644 index a0d990da69..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") -VALUES ( 1, 1), - ( 4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql deleted file mode 100644 index 7c748fde7d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql deleted file mode 100644 index 792d15f4ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") -VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql deleted file mode 100644 index e00a5afc39..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql +++ /dev/null @@ -1,25 +0,0 @@ -INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql deleted file mode 100644 index 83aa440947..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") -VALUES (1,0,1,'Content'), - (2,0,1,'Content'), - (3,0,2,'Users'), - (4,0,2,'Users'), - (5,0,3,'Media'), - (12,0,3,'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql deleted file mode 100644 index 9ccdaaf91f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") -VALUES (1,0,2,'eng-GB','Folder'), - (2,0,3,'eng-GB','Article'), - (3,0,3,'eng-GB','User group'), - (4,0,3,'eng-GB','User'), - (5,0,3,'eng-GB','Image'), - (12,0,3,'eng-GB','File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql deleted file mode 100644 index 0621f947ba..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") -VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql deleted file mode 100644 index 8d9a9b0b2a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") -VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql deleted file mode 100644 index 34b8980372..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql +++ /dev/null @@ -1,41 +0,0 @@ -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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,E'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,E'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,E'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,E'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,E'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,E'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,E'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,E'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,E'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,E'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql deleted file mode 100644 index ac4544a1c6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") -VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql deleted file mode 100644 index 261cb89e36..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql +++ /dev/null @@ -1,14 +0,0 @@ -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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql deleted file mode 100644 index 498e2577b1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql +++ /dev/null @@ -1,13 +0,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 (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql deleted file mode 100644 index bf8f363666..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql +++ /dev/null @@ -1,13 +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql deleted file mode 100644 index 17d9668f7f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") -VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql deleted file mode 100644 index 587bb93d15..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") -VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql deleted file mode 100644 index 7c0e184943..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") -VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql deleted file mode 100644 index 9d65153a4f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") -VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql deleted file mode 100644 index 5b4c34ea06..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") -VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql deleted file mode 100644 index 92ea4ab159..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezsite_data" ("name", "value") -VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql deleted file mode 100644 index 60f8aa7a42..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") -VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql deleted file mode 100644 index 125c3e3393..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql +++ /dev/null @@ -1,26 +0,0 @@ -INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") -VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql deleted file mode 100644 index 257e76532c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO "ezurlalias_ml_incr" ("id") -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql deleted file mode 100644 index dd2c144a37..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") -VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql deleted file mode 100644 index 9e5ff0b7d2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") -VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql deleted file mode 100644 index ba202749ca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") -VALUES (1, 1000, 10), - (1, 10, 14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql deleted file mode 100644 index 4b87da9303..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezpreferences" ("name", "user_id", "value") -SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql deleted file mode 100644 index 056312175f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql +++ /dev/null @@ -1,2 +0,0 @@ --- Set proper sequence values after inserting data -SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql deleted file mode 100644 index c8e051aa09..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql deleted file mode 100644 index a488f42672..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql deleted file mode 100644 index e7945c3bf6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql deleted file mode 100644 index 1c15b1970e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql deleted file mode 100644 index 67c66a320c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql deleted file mode 100644 index d8f66b1c65..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql deleted file mode 100644 index b21db5ae2f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql deleted file mode 100644 index 8800566349..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql deleted file mode 100644 index 0308bdc43c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql deleted file mode 100644 index dfd67783fd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql deleted file mode 100644 index 48b5dc9a8e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql deleted file mode 100644 index fa8e547c55..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql deleted file mode 100644 index 8a3f1a9ae0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql deleted file mode 100644 index 1892a4da3d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql deleted file mode 100644 index f3e2e4c7a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql deleted file mode 100644 index a0590cbafe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql deleted file mode 100644 index bea26a1658..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql deleted file mode 100644 index 32e1a5952c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql deleted file mode 100644 index 809801b081..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql deleted file mode 100644 index 47287e5919..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql deleted file mode 100644 index 994366ebbe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql deleted file mode 100644 index 6f91042d3b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql deleted file mode 100644 index 2a9b0dee98..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql deleted file mode 100644 index c5078959e5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql deleted file mode 100644 index f80598be3f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql deleted file mode 100644 index cd49369f7b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql deleted file mode 100644 index 277a5e62f8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql deleted file mode 100644 index 7969e16eea..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql deleted file mode 100644 index f2557a86a4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql deleted file mode 100644 index e2f0f7229c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql deleted file mode 100644 index 0bf69c19ad..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql deleted file mode 100644 index b1708d93c6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql deleted file mode 100644 index acd97e80ae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql deleted file mode 100644 index 6d6498dfa3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql deleted file mode 100644 index a622a7319b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql deleted file mode 100644 index a312f68826..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql deleted file mode 100644 index 8693d6bab5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql deleted file mode 100644 index 36481c9271..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql deleted file mode 100644 index bf099e3762..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql deleted file mode 100644 index e0c93b23f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql deleted file mode 100644 index ab29b826f2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql deleted file mode 100644 index 3f3f93dd8f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql deleted file mode 100644 index 0a236b1d78..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql deleted file mode 100644 index 6f85547ed8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql deleted file mode 100644 index 382bc2fe6f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql deleted file mode 100644 index cd5fdd8520..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql deleted file mode 100644 index 7a3cbafefc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql deleted file mode 100644 index a0694b8c61..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql deleted file mode 100644 index 80dcea65d9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql deleted file mode 100644 index 9f76373cac..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql deleted file mode 100644 index d7b5136f63..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql deleted file mode 100644 index f0c7ac9ecc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql deleted file mode 100644 index 87676071e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql deleted file mode 100644 index 22d066cdca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql deleted file mode 100644 index 5e78454445..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql deleted file mode 100644 index 659a26c514..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql deleted file mode 100644 index 5b0696a7e8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql deleted file mode 100644 index 6c77193029..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql deleted file mode 100644 index 47fcb50231..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql deleted file mode 100644 index 7fd0e3cfa1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql deleted file mode 100644 index 24c8111651..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql deleted file mode 100644 index 4afcafb110..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql deleted file mode 100644 index 7875734dae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql deleted file mode 100644 index ba2700ac55..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql deleted file mode 100644 index e94bd6f294..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index f17be3c68c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql deleted file mode 100644 index 25cac4ef2a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql deleted file mode 100644 index 776d327767..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql deleted file mode 100644 index 7a7cde12e8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql deleted file mode 100644 index f1364cf079..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql deleted file mode 100644 index 5dddc18819..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql deleted file mode 100644 index 6fd63f61d8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql deleted file mode 100644 index 022ffd1c54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql deleted file mode 100644 index 2459702346..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql deleted file mode 100644 index cb0f62d824..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql deleted file mode 100644 index 17c73894b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql deleted file mode 100644 index f68fa6262f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql deleted file mode 100644 index 6e86f88cfe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql deleted file mode 100644 index 13b2780ba6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql deleted file mode 100644 index 6b23dbfdcb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql deleted file mode 100644 index c8391d6730..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql deleted file mode 100644 index 320329b4f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql deleted file mode 100644 index 31e10963b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql deleted file mode 100644 index d89a560a80..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql deleted file mode 100644 index 3a0b46cb82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql deleted file mode 100644 index 9c80af1662..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql deleted file mode 100644 index c09dfefbf0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql deleted file mode 100644 index 5553d5dbb9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql deleted file mode 100644 index 576d349337..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql deleted file mode 100644 index 330a997cdc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql deleted file mode 100644 index a53893b840..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql deleted file mode 100644 index d47ec6ff06..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql deleted file mode 100644 index 066bdd2ddf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql deleted file mode 100644 index 8cf7a78639..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql deleted file mode 100644 index 22a5480ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql deleted file mode 100644 index 1b230d30c0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql deleted file mode 100644 index e97fae979c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql deleted file mode 100644 index 4f2edf4230..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql deleted file mode 100644 index 980553e6cc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql deleted file mode 100644 index 41f87ea995..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql deleted file mode 100644 index 73919870ef..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql deleted file mode 100644 index eb1712c587..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql deleted file mode 100644 index d9ade282a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql deleted file mode 100644 index f8b3625958..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql deleted file mode 100644 index 7ad71e9d33..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql deleted file mode 100644 index 0dc2e4d0ff..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql deleted file mode 100644 index a52478c504..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql deleted file mode 100644 index b6a67a8141..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql deleted file mode 100644 index b1093dd031..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql deleted file mode 100644 index 74974918cf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql deleted file mode 100644 index a16efa09bf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql deleted file mode 100644 index c71ce38856..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql deleted file mode 100644 index f22ea4c070..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql deleted file mode 100644 index 9fd53f1f99..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql deleted file mode 100644 index 4aa9687e74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql deleted file mode 100644 index 5cba288e70..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql deleted file mode 100644 index d8e144c201..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql deleted file mode 100644 index cd675686ed..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql deleted file mode 100644 index 8d8572e8bd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql deleted file mode 100644 index f07b97d9ab..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql deleted file mode 100644 index 0404bc617b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql deleted file mode 100644 index 5cc240e09b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql deleted file mode 100644 index 5e822ef0c9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql deleted file mode 100644 index 5e5ed94263..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql deleted file mode 100644 index 987539c281..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql deleted file mode 100644 index 7c7225c18d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql deleted file mode 100644 index 6b519ccc54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql deleted file mode 100644 index 3f6a172e7c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql deleted file mode 100644 index 862b80ddf5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql deleted file mode 100644 index b621afd705..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql deleted file mode 100644 index 18c04aae4b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql deleted file mode 100644 index 0ea197813d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql deleted file mode 100644 index 366c989ec0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql deleted file mode 100644 index 9a3d4f8171..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql deleted file mode 100644 index 79c443ef85..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql deleted file mode 100644 index 6640c10ce8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql deleted file mode 100644 index 08bd1cf9d0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql deleted file mode 100644 index 446a27fdaa..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql deleted file mode 100644 index 8c0458bdde..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql deleted file mode 100644 index 3b64a2bfba..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql deleted file mode 100644 index e8330b63d4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql deleted file mode 100644 index e33390d2a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql deleted file mode 100644 index a712365e6b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql deleted file mode 100644 index 568edef679..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql deleted file mode 100644 index fb984de9f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql deleted file mode 100644 index 724819087d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql deleted file mode 100644 index 9c46453535..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql deleted file mode 100644 index 058c9b9de2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql deleted file mode 100644 index 6864b9d5b8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql deleted file mode 100644 index bea025a97c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql deleted file mode 100644 index d1f15870a4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql deleted file mode 100644 index ee7a50072c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql deleted file mode 100644 index 6e77c80b0a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql deleted file mode 100644 index 0cabe9726b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql deleted file mode 100644 index 40720c87df..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql deleted file mode 100644 index d49afdc63d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql deleted file mode 100644 index 4457d5a9ca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql deleted file mode 100644 index 67e46a38fe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql deleted file mode 100644 index 6b9fa680c3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql deleted file mode 100644 index 0160b9c1a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql deleted file mode 100644 index e2b3d317a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql deleted file mode 100644 index 46fd22ba70..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql deleted file mode 100644 index b447996855..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql deleted file mode 100644 index c884362677..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql deleted file mode 100644 index 2cd160e33f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql deleted file mode 100644 index 062366e854..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql deleted file mode 100644 index aa37643b1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql deleted file mode 100644 index 07e4107f82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql deleted file mode 100644 index fc7ced0139..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql deleted file mode 100644 index 84fd80638b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql deleted file mode 100644 index b33960fcad..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql deleted file mode 100644 index c3f47f4bb7..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql deleted file mode 100644 index 8a9145ac6c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql deleted file mode 100644 index 2a952aa64e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql deleted file mode 100644 index 139b8c5f68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql deleted file mode 100644 index 5e0c908085..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql deleted file mode 100644 index 91393fd7ee..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql deleted file mode 100644 index b559dae946..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql deleted file mode 100644 index 4fef3f6bce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql deleted file mode 100644 index 0644e63339..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql deleted file mode 100644 index b6d4c50c07..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql deleted file mode 100644 index 045b996bbd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql deleted file mode 100644 index 2224306ce1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql deleted file mode 100644 index 2f779bf8a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql deleted file mode 100644 index 5d10f19c92..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql deleted file mode 100644 index 8d12ee2b45..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) -); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql deleted file mode 100644 index d6f3d3b0dc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql deleted file mode 100644 index e2a05c6a8d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql deleted file mode 100644 index 56545a77df..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql deleted file mode 100644 index 17f4b2cf68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql deleted file mode 100644 index 4ccb1fc31a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql deleted file mode 100644 index 8217faeab1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql deleted file mode 100644 index 1d13c98da4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql deleted file mode 100644 index 64e0eacdd1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql deleted file mode 100644 index 677a43ca5c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql deleted file mode 100644 index 9930341865..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql deleted file mode 100644 index dc7872d95b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql deleted file mode 100644 index 9a0dd8d0e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql deleted file mode 100644 index 97bfa86644..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql deleted file mode 100644 index 540efcb3ef..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql deleted file mode 100644 index 30ad516ff8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql +++ /dev/null @@ -1,25 +0,0 @@ -INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql deleted file mode 100644 index ffa17693b0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql deleted file mode 100644 index 1f517c87e3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql deleted file mode 100644 index 61aea82715..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql deleted file mode 100644 index c18bc54f7d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql deleted file mode 100644 index d2ec35a36f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql +++ /dev/null @@ -1,41 +0,0 @@ -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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql deleted file mode 100644 index fc75852a7c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql deleted file mode 100644 index 1cfc2b9049..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql +++ /dev/null @@ -1,14 +0,0 @@ -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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql deleted file mode 100644 index f8ba2fe49d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql +++ /dev/null @@ -1,13 +0,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 (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql deleted file mode 100644 index b69e8a455f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql +++ /dev/null @@ -1,13 +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql deleted file mode 100644 index 7e0d289d2b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql deleted file mode 100644 index d1dfc57ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql deleted file mode 100644 index 26ef009ea8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql deleted file mode 100644 index 16605e3ee2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql deleted file mode 100644 index a12ae3cbfb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql deleted file mode 100644 index 82536384d3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql deleted file mode 100644 index dbdfab1b74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql deleted file mode 100644 index 1a3fce42c5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql +++ /dev/null @@ -1,26 +0,0 @@ -INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql deleted file mode 100644 index 60ee1309ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql deleted file mode 100644 index 151e4f6fa4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql deleted file mode 100644 index 5ad1f12f1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql deleted file mode 100644 index c87f9291dd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql deleted file mode 100644 index 5a44f420f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; From 41d610df2879fa2a7faa4dd08856d8dd9402bee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 17 Jul 2026 12:53:44 +0200 Subject: [PATCH 04/88] [Doctrine Migrations] Reformatted long/multiline SQL using NOWDOC CREATE TABLE statements are now pretty-printed one column per line, and other long or naturally multi-line statements (multi-row INSERT, long ALTER TABLE ... ADD CONSTRAINT) use NOWDOC instead of a single escaped string literal, for readability. SQL content is unchanged. --- .../Migration/ImportDataMigration.php | 1836 +++++++------- .../Migration/InstallSchemaMigration.php | 2105 +++++++++++++++-- 2 files changed, 2950 insertions(+), 991 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index f3ebfa20a9..47b68b5ddd 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -36,559 +36,681 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { if ($this->platform instanceof MySqlPlatform) { - $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, \'not_locked\', 3, 0), - (2, 2, 2, \'locked\', 3, 1)'); - $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,\'ez_lock\',3)'); - $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,\'\',3,\'Lock\',2)'); - $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,\'\',3,\'Not locked\'), - (2,\'\',3,\'Locked\')'); - $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1)'); - $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); - $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,\'\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), - (0,\'\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\' \',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); - $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), - (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), - (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); - $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, \'Content\'), - (2, 0, 1, \'Content\'), - (3, 0, 2, \'Users\'), - (4, 0, 2, \'Users\'), - (5, 0, 3, \'Media\'), - (12, 0, 3, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), - (2, 0, 3, \'eng-GB\', \'Article\'), - (3, 0, 3, \'eng-GB\', \'User group\'), - (4, 0, 3, \'eng-GB\', \'User\'), - (5, 0, 3, \'eng-GB\', \'Image\'), - (12, 0, 3, \'eng-GB\', \'File\')'); - $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), - (1031216941, 14, 2, 1033922113, 14, \'Users\'), - (1032009743, 14, 3, 1033922120, 14, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), - (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), - (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), - (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), - (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), - (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), - (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), - (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), - (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), - (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), - (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), - (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); - $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,119,1,NULL,NULL,\'
You are now ready to start your project.
\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), - (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), - (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), - (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), - (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), - (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), - (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), - (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), - (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), - (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), - (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), - (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), - (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), - (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), - (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), - (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), - (0,119,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), - (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), - (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), - (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), - (0,156,1,NULL,NULL,\'
This is the clean installation coming with Ibexa Platform.It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), - (0,156,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), - (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), - (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), - (0,119,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), - (0,156,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), - (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), - (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), - (0,119,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), - (0,156,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), - (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), - (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), - (0,119,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), - (0,156,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), - (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), - (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), - (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), - (0,180,14,0,0,\'\\n\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); - $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), - (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), - (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), - (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), - (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), - (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), - (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), - (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), - (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), - (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), - (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), - (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); - $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); - $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) -VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); - $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), - (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), - (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), - (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), - (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), - (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), - (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), - (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), - (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), - (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), - (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), - (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); - $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES (\'*\',317,\'content\',0,3), - (\'login\',319,\'user\',0,3), - (\'read\',328,\'content\',0,1), - (\'login\',331,\'user\',0,1), - (\'*\',332,\'*\',0,2), - (\'read\',333,\'content\',0,4), - (\'view_embed\',334,\'content\',0,1), - (\'*\',340,\'url\',0,3)'); - $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,\'Section\',328), - (252,\'Section\',329), - (253,\'SiteAccess\',331), - (254,\'Class\',333), - (255,\'Owner\',333), - (256,\'Class\',334)'); - $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,\'1\'), - (478,252,\'1\'), - (479,253,\'1766001124\'), - (480,254,\'4\'), - (481,255,\'1\'), - (482,256,\'5\'), - (483,256,\'12\')'); - $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,\'Anonymous\',\'\',0), - (2,0,\'Administrator\',\'0\',0), - (3,0,\'Editor\',\'\',0), - (4,0,\'Member\',\'\',0)'); - $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), - (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), - (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); - $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) -VALUES (\'ibexa-release\',\'4.6\')'); - $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), - (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), - (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), - (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), - (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), - (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), - (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), - (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), - (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), - (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), - (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), - (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); - $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), - (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), - (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), - (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), - (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), - (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), - (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), - (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), - (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), - (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), - (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), - (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), - (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), - (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), - (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), - (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), - (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), - (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), - (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); - $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37)'); - $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), - (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); - $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,\'\',\'\',1), - (42,31,\'\',\'\',1), - (13,32,\'Subtree\',\'/1/2/\',3), - (13,33,\'Subtree\',\'/1/43/\',3), - (12,34,\'\',\'\',2), - (13,35,\'\',\'\',4)'); - $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14)'); - $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) + VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) + VALUES (2,2,'ez_lock',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) + VALUES (2,'',3,'Lock',2) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) + VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) + VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) + VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) + VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) + VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) + VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) + VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) + VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) + VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + SQL); + $this->addSql(<<<'SQL' + 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) + VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') + SQL); + $this->addSql(<<<'SQL' + 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) + VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + SQL); + $this->addSql(<<<'SQL' + 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) + VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) + VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) + VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) + VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) + VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsite_data` (`name`, `value`) + VALUES ('ibexa-release','4.6') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) + VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) + VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml_incr` (`id`) + VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) + VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) + VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) + VALUES (1,1000,10), + (1,10,14) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) + SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' + SQL); } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql('INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") -VALUES (2, 2, 1, \'not_locked\', 3, 0), - (2, 2, 2, \'locked\', 3, 1)'); - $this->addSql('INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, \'ez_lock\', 3)'); - $this->addSql('INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") -VALUES (2, \'\', 3, \'Lock\', 2)'); - $this->addSql('INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") -VALUES (1,\'\',3,\'Not locked\'), - (2,\'\',3,\'Locked\')'); - $this->addSql('INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") -VALUES ( 1, 1), - ( 4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1)'); - $this->addSql('INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") -VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); - $this->addSql('INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") -VALUES (1,\'\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:6:"Folder";}\',1,1,NULL,0), - (0,\'\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\' \',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0)'); - $this->addSql('INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") -VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,FALSE,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:4:"Name";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}\',0), - (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,TRUE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,FALSE,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:17:"Short description";}\',0), - (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,FALSE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}\',0), - (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,FALSE,6,NULL,NULL,\'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,FALSE,7,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,FALSE,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:10:"Short name";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,FALSE,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:11:"Description";}\',0), - (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,TRUE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0)'); - $this->addSql('INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") -VALUES (1,0,1,\'Content\'), - (2,0,1,\'Content\'), - (3,0,2,\'Users\'), - (4,0,2,\'Users\'), - (5,0,3,\'Media\'), - (12,0,3,\'Media\')'); - $this->addSql('INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") -VALUES (1,0,2,\'eng-GB\',\'Folder\'), - (2,0,3,\'eng-GB\',\'Article\'), - (3,0,3,\'eng-GB\',\'User group\'), - (4,0,3,\'eng-GB\',\'User\'), - (5,0,3,\'eng-GB\',\'Image\'), - (12,0,3,\'eng-GB\',\'File\')'); - $this->addSql('INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") -VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), - (1031216941, 14, 2, 1033922113, 14, \'Users\'), - (1032009743, 14, 3, 1033922120, 14, \'Media\')'); - $this->addSql('INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") -VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), - (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), - (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), - (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), - (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), - (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), - (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), - (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), - (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), - (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), - (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), - (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); - $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,119,1,NULL,NULL,E\'
You are now ready to start your project.
\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), - (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), - (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), - (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), - (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), - (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), - (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), - (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), - (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), - (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), - (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), - (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), - (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), - (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), - (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), - (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), - (0,119,41,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), - (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), - (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), - (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), - (0,156,1,NULL,NULL,E\'
This is the clean installation coming with Ibexa Platform.It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), - (0,156,41,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), - (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), - (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), - (0,119,49,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), - (0,156,49,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), - (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), - (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), - (0,119,50,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), - (0,156,50,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), - (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), - (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), - (0,119,51,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), - (0,156,51,0,1045487555,E\'\\n
\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), - (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), - (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), - (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), - (0,180,14,0,0,E\'\\n\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); - $this->addSql('INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") -VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), - (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), - (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), - (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), - (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), - (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), - (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), - (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), - (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), - (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), - (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), - (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); - $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); - $this->addSql('INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") -VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); - $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), - (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), - (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), - (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), - (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), - (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), - (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), - (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), - (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), - (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), - (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), - (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); - $this->addSql('INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") -VALUES (\'*\',317,\'content\',0,3), - (\'login\',319,\'user\',0,3), - (\'read\',328,\'content\',0,1), - (\'login\',331,\'user\',0,1), - (\'*\',332,\'*\',0,2), - (\'read\',333,\'content\',0,4), - (\'view_embed\',334,\'content\',0,1), - (\'*\',340,\'url\',0,3)'); - $this->addSql('INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") -VALUES (251,\'Section\',328), - (252,\'Section\',329), - (253,\'SiteAccess\',331), - (254,\'Class\',333), - (255,\'Owner\',333), - (256,\'Class\',334)'); - $this->addSql('INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") -VALUES (477,251,\'1\'), - (478,252,\'1\'), - (479,253,\'1766001124\'), - (480,254,\'4\'), - (481,255,\'1\'), - (482,256,\'5\'), - (483,256,\'12\')'); - $this->addSql('INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") -VALUES (1,0,\'Anonymous\',\'\',0), - (2,0,\'Administrator\',\'0\',0), - (3,0,\'Editor\',\'\',0), - (4,0,\'Member\',\'\',0)'); - $this->addSql('INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") -VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), - (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), - (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); - $this->addSql('INSERT INTO "ezsite_data" ("name", "value") -VALUES (\'ibexa-release\',\'4.6\')'); - $this->addSql('INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") -VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), - (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), - (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), - (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), - (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), - (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), - (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), - (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), - (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), - (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), - (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), - (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); - $this->addSql('INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") -VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), - (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), - (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), - (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), - (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), - (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), - (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), - (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), - (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), - (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), - (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), - (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), - (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), - (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), - (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), - (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), - (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), - (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), - (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); - $this->addSql('INSERT INTO "ezurlalias_ml_incr" ("id") -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37)'); - $this->addSql('INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") -VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), - (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); - $this->addSql('INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") -VALUES (11,28,\'\',\'\',1), - (42,31,\'\',\'\',1), - (13,32,\'Subtree\',\'/1/2/\',3), - (13,33,\'Subtree\',\'/1/43/\',3), - (12,34,\'\',\'\',2), - (13,35,\'\',\'\',4)'); - $this->addSql('INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") -VALUES (1, 1000, 10), - (1, 10, 14)'); - $this->addSql('INSERT INTO "ezpreferences" ("name", "user_id", "value") -SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM "ezuser" u WHERE u.login = \'admin\''); - $this->addSql('-- Set proper sequence values after inserting data -SELECT SETVAL(\'ezcobj_state_group_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group'); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") + VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") + VALUES (2, 2, 'ez_lock', 3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") + VALUES (2, '', 3, 'Lock', 2) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") + VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") + VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") + VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") + VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") + VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") + VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") + VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") + VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") + VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + SQL); + $this->addSql(<<<'SQL' + 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") + VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') + SQL); + $this->addSql(<<<'SQL' + 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") + VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + SQL); + $this->addSql(<<<'SQL' + 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") + VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") + VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") + VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") + VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") + VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezsite_data" ("name", "value") + VALUES ('ibexa-release','4.6') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") + VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") + VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezurlalias_ml_incr" ("id") + VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") + VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") + VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") + VALUES (1, 1000, 10), + (1, 10, 14) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpreferences" ("name", "user_id", "value") + SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' + SQL); + $this->addSql(<<<'SQL' + -- Set proper sequence values after inserting data + SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group + SQL); $this->addSql('SELECT SETVAL(\'ezcobj_state_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state'); $this->addSql('SELECT SETVAL(\'ezcontentbrowsebookmark_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark'); $this->addSql('SELECT SETVAL(\'ezcontentclass_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute'); @@ -620,281 +742,341 @@ public function up(Schema $schema): void $this->addSql('SELECT SETVAL(\'ezuser_accountkey_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey'); $this->addSql('SELECT SETVAL(\'ezuser_role_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_role'); } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, \'not_locked\', 3, 0), - (2, 2, 2, \'locked\', 3, 1)'); - $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,\'ez_lock\',3)'); - $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,\'\',3,\'Lock\',2)'); - $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,\'\',3,\'Not locked\'), - (2,\'\',3,\'Locked\')'); - $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1)'); - $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); - $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,\'\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), - (0,\'\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\' \',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); - $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), - (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), - (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); - $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, \'Content\'), - (2, 0, 1, \'Content\'), - (3, 0, 2, \'Users\'), - (4, 0, 2, \'Users\'), - (5, 0, 3, \'Media\'), - (12, 0, 3, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), - (2, 0, 3, \'eng-GB\', \'Article\'), - (3, 0, 3, \'eng-GB\', \'User group\'), - (4, 0, 3, \'eng-GB\', \'User\'), - (5, 0, 3, \'eng-GB\', \'Image\'), - (12, 0, 3, \'eng-GB\', \'File\')'); - $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), - (1031216941, 14, 2, 1033922113, 14, \'Users\'), - (1032009743, 14, 3, 1033922120, 14, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), - (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), - (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), - (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), - (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), - (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), - (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), - (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), - (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), - (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), - (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), - (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); - $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,119,1,NULL,NULL,\'
You are now ready to start your project.
\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), - (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), - (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), - (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), - (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), - (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), - (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), - (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), - (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), - (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), - (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), - (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), - (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), - (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), - (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), - (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), - (0,119,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), - (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), - (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), - (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), - (0,156,1,NULL,NULL,\'
This is the clean installation coming with Ibexa Platform.It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), - (0,156,41,0,1045487555,\'\\n
\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), - (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), - (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), - (0,119,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), - (0,156,49,0,1045487555,\'\\n
\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), - (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), - (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), - (0,119,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), - (0,156,50,0,1045487555,\'\\n
\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), - (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), - (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), - (0,119,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), - (0,156,51,0,1045487555,\'\\n
\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), - (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), - (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), - (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), - (0,180,14,0,0,\'\\n\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); - $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), - (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), - (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), - (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), - (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), - (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), - (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), - (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), - (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), - (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), - (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), - (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); - $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); - $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) -VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); - $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), - (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), - (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), - (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), - (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), - (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), - (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), - (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), - (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), - (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), - (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), - (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); - $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES (\'*\',317,\'content\',0,3), - (\'login\',319,\'user\',0,3), - (\'read\',328,\'content\',0,1), - (\'login\',331,\'user\',0,1), - (\'*\',332,\'*\',0,2), - (\'read\',333,\'content\',0,4), - (\'view_embed\',334,\'content\',0,1), - (\'*\',340,\'url\',0,3)'); - $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,\'Section\',328), - (252,\'Section\',329), - (253,\'SiteAccess\',331), - (254,\'Class\',333), - (255,\'Owner\',333), - (256,\'Class\',334)'); - $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,\'1\'), - (478,252,\'1\'), - (479,253,\'1766001124\'), - (480,254,\'4\'), - (481,255,\'1\'), - (482,256,\'5\'), - (483,256,\'12\')'); - $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,\'Anonymous\',\'\',0), - (2,0,\'Administrator\',\'0\',0), - (3,0,\'Editor\',\'\',0), - (4,0,\'Member\',\'\',0)'); - $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), - (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), - (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); - $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) -VALUES (\'ibexa-release\',\'4.6\')'); - $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), - (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), - (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), - (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), - (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), - (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), - (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), - (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), - (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), - (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), - (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), - (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); - $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), - (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), - (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), - (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), - (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), - (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), - (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), - (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), - (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), - (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), - (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), - (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), - (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), - (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), - (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), - (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), - (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), - (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), - (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); - $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37)'); - $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), - (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); - $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,\'\',\'\',1), - (42,31,\'\',\'\',1), - (13,32,\'Subtree\',\'/1/2/\',3), - (13,33,\'Subtree\',\'/1/43/\',3), - (12,34,\'\',\'\',2), - (13,35,\'\',\'\',4)'); - $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14)'); - $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) + VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) + VALUES (2,2,'ez_lock',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) + VALUES (2,'',3,'Lock',2) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) + VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) + VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) + VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) + VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) + VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) + VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) + VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) + VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) + VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + SQL); + $this->addSql(<<<'SQL' + 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) + VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') + SQL); + $this->addSql(<<<'SQL' + 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) + VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + SQL); + $this->addSql(<<<'SQL' + 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) + VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) + VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) + VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) + VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) + VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsite_data` (`name`, `value`) + VALUES ('ibexa-release','4.6') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) + VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) + VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml_incr` (`id`) + VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) + VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) + VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) + VALUES (1,1000,10), + (1,10,14) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) + SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' + SQL); } else { $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index f10165ccc5..4ea895845e 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -36,79 +36,846 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { if ($this->platform instanceof MySqlPlatform) { - $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT \'0\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT \'0\' NOT NULL, status TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE'); - $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE'); + $this->addSql(<<<'SQL' + CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_priority (priority), + INDEX ezcobj_state_lmask (language_mask), + UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_group_lmask (language_mask), + UNIQUE INDEX ezcobj_state_group_identifier (identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontent_language_name (name(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + UNIQUE INDEX ezuser_login (login), + PRIMARY KEY(contentobject_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_tree ( + node_id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + INDEX ezcontentobject_tree_p_node_id (parent_node_id), + INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), + INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), + INDEX ezcontentobject_tree_co_id (contentobject_id), + INDEX ezcontentobject_tree_depth (depth), + INDEX ezcontentobject_tree_path (path_string(191)), + INDEX modified_subnode (modified_subnode), + INDEX ezcontentobject_tree_remote_id (remote_id), + PRIMARY KEY(node_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentbrowsebookmark ( + id INT AUTO_INCREMENT NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentbrowsebookmark_location (node_id), + INDEX ezcontentbrowsebookmark_user (user_id), + INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + INDEX ezcontentclass_version (version), + INDEX ezcontentclass_identifier (identifier, version), + PRIMARY KEY(id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text LONGTEXT DEFAULT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT NOT NULL, + INDEX ezcontentclass_attr_ccid (contentclass_id), + INDEX ezcontentclass_attr_dts (data_type_string), + PRIMARY KEY(id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + INDEX ezcontentclass_attribute_ml_lang_fk (language_id), + PRIMARY KEY(contentclass_attribute_id, version, language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclassgroup ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system TINYINT(1) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezcontentobject_classid (contentclass_id), + INDEX ezcontentobject_lmask (language_mask), + INDEX ezcontentobject_pub (published), + INDEX ezcontentobject_section (section_id), + INDEX ezcontentobject_currentversion (current_version), + INDEX ezcontentobject_owner (owner_id), + INDEX ezcontentobject_status (status), + UNIQUE INDEX ezcontentobject_remote_id (remote_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), + INDEX ezcontentobject_classattr_id (contentclassattribute_id), + INDEX sort_key_string (sort_key_string(191)), + INDEX ezcontentobject_attribute_language_code (language_code), + INDEX sort_key_int (sort_key_int), + INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), + PRIMARY KEY(id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + INDEX ezco_link_to_co_id (to_contentobject_id), + INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), + INDEX ezco_link_cca_id (contentclassattribute_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + INDEX ezcontentobject_name_lang_id (language_id), + INDEX ezcontentobject_name_cov_id (content_version), + INDEX ezcontentobject_name_name (name(191)), + PRIMARY KEY(contentobject_id, content_version, content_translation) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + INDEX ezcobj_trash_depth (depth), + INDEX ezcobj_trash_p_node_id (parent_node_id), + INDEX ezcobj_trash_path_ident (path_identification_string(50)), + INDEX ezcobj_trash_co_id (contentobject_id), + INDEX ezcobj_trash_modified_subnode (modified_subnode), + INDEX ezcobj_trash_path (path_string(191)), + PRIMARY KEY(node_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_version ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + INDEX ezcobj_version_status (status), + INDEX idx_object_version_objver (contentobject_id, version), + INDEX ezcontobj_version_obj_status (contentobject_id, status), + INDEX ezcobj_version_creator_id (creator_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired TINYINT(1) DEFAULT '0' NOT NULL, + status TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezdfsfile_name_trunk (name_trunk(191)), + INDEX ezdfsfile_expired_name (expired, name(191)), + INDEX ezdfsfile_name (name(191)), + INDEX ezdfsfile_mtime (mtime), + PRIMARY KEY(name_hash) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + INDEX latitude_longitude_key (latitude, longitude), + PRIMARY KEY(contentobject_attribute_id, contentobject_version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezimagefile ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath LONGTEXT NOT NULL, + INDEX ezimagefile_file (filepath(191)), + INDEX ezimagefile_coid (contentobject_attribute_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword ( + id INT AUTO_INCREMENT NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + INDEX ezkeyword_keyword (keyword(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword_attribute_link ( + id INT AUTO_INCREMENT NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + INDEX ezkeyword_attr_link_oaid (objectattribute_id), + INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), + INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznode_assignment ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + INDEX eznode_assignment_is_main (is_main), + INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), + INDEX eznode_assignment_parent_node (parent_node), + INDEX eznode_assignment_co_version (contentobject_version), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznotification ( + id INT AUTO_INCREMENT NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending TINYINT(1) DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data LONGTEXT DEFAULT NULL, + INDEX eznotification_owner_is_pending (owner_id, is_pending), + INDEX eznotification_owner (owner_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpackage ( + id INT AUTO_INCREMENT NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy ( + id INT AUTO_INCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + INDEX ezpolicy_role_id (role_id), + INDEX ezpolicy_original_id (original_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + INDEX policy_id (policy_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation_value ( + id INT AUTO_INCREMENT NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + INDEX ezpolicy_limit_value_limit_id (limitation_id), + INDEX ezpolicy_limitation_value_val (value(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpreferences ( + id INT AUTO_INCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value LONGTEXT DEFAULT NULL, + INDEX ezpreferences_user_id_idx (user_id, name), + INDEX ezpreferences_name (name), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezrole ( + id INT AUTO_INCREMENT NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_object_word_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezsearch_object_word_link_object (contentobject_id), + INDEX ezsearch_object_word_link_identifier (identifier(191)), + INDEX ezsearch_object_word_link_integer_value (integer_value), + INDEX ezsearch_object_word_link_word (word_id), + INDEX ezsearch_object_word_link_frequency (frequency), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_word ( + id INT AUTO_INCREMENT NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + INDEX ezsearch_word_word_i (word), + INDEX ezsearch_word_obj_count (object_count), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsection ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value LONGTEXT NOT NULL, + PRIMARY KEY(name) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url LONGTEXT DEFAULT NULL, + INDEX ezurl_url (url(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL, + INDEX ezurl_ol_coa_id (contentobject_attribute_id), + INDEX ezurl_ol_url_id (url_id), + INDEX ezurl_ol_coa_version (contentobject_attribute_version), + INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url LONGTEXT NOT NULL, + INDEX ezurlalias_source_md5 (source_md5), + INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), + INDEX ezurlalias_forward_to_id (forward_to_id), + INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), + INDEX ezurlalias_source_url (source_url(191)), + INDEX ezurlalias_desturl (destination_url(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action LONGTEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text LONGTEXT NOT NULL, + INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), + INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), + INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), + INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), + INDEX ezurlalias_ml_act_org (action(32), is_original), + INDEX ezurlalias_ml_text (text(32), id, link), + INDEX ezurlalias_ml_link (link), + INDEX ezurlalias_ml_id (id), + PRIMARY KEY(parent, text_md5) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml_incr ( + id INT AUTO_INCREMENT NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlwildcard ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + source_url LONGTEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_accountkey ( + id INT AUTO_INCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + INDEX hash_key (hash_key), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_role ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + INDEX ezuser_role_role_id (role_id), + INDEX ezuser_role_contentobject_id (contentobject_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_setting ( + id INT AUTO_INCREMENT NOT NULL, + `group` VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + INDEX ibexa_setting_id (id), + UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token_type ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL, + UNIQUE INDEX ibexa_token_type_unique (identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token ( + id INT AUTO_INCREMENT NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked TINYINT(1) DEFAULT '0' NOT NULL, + INDEX IDX_B5412887C54C8C93 (type_id), + UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE + SQL); $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE'); } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); - $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + PRIMARY KEY(contentobject_id) + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql('CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_tree ( + node_id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + PRIMARY KEY(node_id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); @@ -117,22 +884,140 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentbrowsebookmark ( + id SERIAL NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql('CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id, version) + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'false\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text TEXT DEFAULT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT NOT NULL, + PRIMARY KEY(id, version) + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); - $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); - $this->addSql('CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclassgroup ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject ( + id SERIAL NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); @@ -141,97 +1026,389 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql('CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id, version) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql('CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_link ( + id SERIAL NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql('CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_version ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'false\' NOT NULL, status BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT 'false' NOT NULL, + status BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(name_hash) + ) + SQL); $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) + ) + SQL); $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql('CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezimagefile ( + id SERIAL NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath TEXT NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql('CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword ( + id SERIAL NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql('CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword_attribute_link ( + id SERIAL NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznode_assignment ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql('CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'true\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE eznotification ( + id SERIAL NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT 'true' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data TEXT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql('CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpackage ( + id SERIAL NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy ( + id SERIAL NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation_value ( + id SERIAL NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql('CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpreferences ( + id SERIAL NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value TEXT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql('CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezrole ( + id SERIAL NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_object_word_link ( + id SERIAL NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql('CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_word ( + id SERIAL NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql('CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name))'); - $this->addSql('CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsection ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value TEXT NOT NULL, + PRIMARY KEY(name) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url TEXT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql('CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url TEXT NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action TEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text TEXT NOT NULL, + PRIMARY KEY(parent, text_md5) + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent)'); @@ -240,43 +1417,199 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql('CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml_incr ( + id SERIAL NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlwildcard ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + source_url TEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_accountkey ( + id SERIAL NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql('CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_role ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id))'); - $this->addSql('CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_setting ( + id SERIAL NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql('CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token_type ( + id SERIAL NOT NULL, + identifier VARCHAR(64) NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql('CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token ( + id SERIAL NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + download_count INTEGER DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); - $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_language ( + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_link ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INTEGER DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql('CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INTEGER DEFAULT 1 NOT NULL, + password_updated_at INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_id) + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_tree ( + node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_is_published INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1 + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); @@ -285,22 +1618,138 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentbrowsebookmark ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + node_id INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, + CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + ) + SQL); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql('CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + always_available INTEGER DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB DEFAULT NULL, + sort_field INTEGER DEFAULT 1 NOT NULL, + sort_order INTEGER DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'0\' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + can_translate INTEGER DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INTEGER DEFAULT NULL, + data_int2 INTEGER DEFAULT NULL, + data_int3 INTEGER DEFAULT NULL, + data_int4 INTEGER DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INTEGER DEFAULT 0 NOT NULL, + is_required INTEGER DEFAULT 0 NOT NULL, + is_searchable INTEGER DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + serialized_data_text CLOB DEFAULT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INTEGER NOT NULL, + version INTEGER NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description CLOB DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_json CLOB DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id), + CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); - $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); - $this->addSql('CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'0\' NOT NULL)'); - $this->addSql('CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT \'0\' NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_name ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclassgroup ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT '0' NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + current_version INTEGER DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0, + is_hidden BOOLEAN DEFAULT '0' NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); @@ -309,97 +1758,370 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql('CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + attribute_original_id INTEGER DEFAULT 0, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INTEGER DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INTEGER DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql('CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_version INTEGER DEFAULT 0 NOT NULL, + relation_type INTEGER DEFAULT 1 NOT NULL, + to_contentobject_id INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_name ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + content_version INTEGER DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_trash ( + node_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + trashed INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql('CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_version ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + workflow_event_pos INTEGER DEFAULT 0 + ) + SQL); $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'0\' NOT NULL, status BOOLEAN DEFAULT \'0\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name CLOB NOT NULL, + name_trunk CLOB NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INTEGER DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT '0' NOT NULL, + status BOOLEAN DEFAULT '0' NOT NULL, + PRIMARY KEY(name_hash) + ) + SQL); $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_version INTEGER DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) + ) + SQL); $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql('CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezimagefile ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + filepath CLOB NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql('CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + class_id INTEGER DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword_attribute_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + keyword_id INTEGER DEFAULT 0 NOT NULL, + objectattribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezmedia ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INTEGER DEFAULT 0, + height INTEGER DEFAULT NULL, + is_autoplay INTEGER DEFAULT 0, + is_loop INTEGER DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznode_assignment ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + from_node_id INTEGER DEFAULT 0, + is_main INTEGER DEFAULT 0 NOT NULL, + op_code INTEGER DEFAULT 0 NOT NULL, + parent_node INTEGER DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + priority INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql('CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE eznotification ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + data CLOB DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql('CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL)'); - $this->addSql('CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpackage ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + install_date INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INTEGER DEFAULT 0 NOT NULL, + role_id INTEGER DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INTEGER DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INTEGER DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation_value ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + limitation_id INTEGER DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql('CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpreferences ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + value CLOB DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql('CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0)'); - $this->addSql('CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezrole ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + is_new INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INTEGER DEFAULT 0 + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_object_word_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INTEGER DEFAULT 0 NOT NULL, + next_word_id INTEGER DEFAULT 0 NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + prev_word_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + word_id INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql('CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_word ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + object_count INTEGER DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql('CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\')'); - $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name))'); - $this->addSql('CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url CLOB DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsection ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value CLOB NOT NULL, + PRIMARY KEY(name) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + is_valid INTEGER DEFAULT 1 NOT NULL, + last_checked INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url CLOB DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, + url_id INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql('CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + forward_to_id INTEGER DEFAULT 0 NOT NULL, + is_imported INTEGER DEFAULT 0 NOT NULL, + is_internal INTEGER DEFAULT 1 NOT NULL, + is_wildcard INTEGER DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url CLOB NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql('CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml ( + parent INTEGER DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + "action" CLOB NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INTEGER DEFAULT 1 NOT NULL, + id INTEGER DEFAULT 0 NOT NULL, + is_alias INTEGER DEFAULT 0 NOT NULL, + is_original INTEGER DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INTEGER DEFAULT 0 NOT NULL, + text CLOB NOT NULL, + PRIMARY KEY(parent, text_md5) + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent)'); @@ -408,21 +2130,76 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)'); - $this->addSql('CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL)'); - $this->addSql('CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml_incr ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlwildcard ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + source_url CLOB NOT NULL, + type INTEGER DEFAULT 0 NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_accountkey ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql('CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INTEGER DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_role ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INTEGER DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql('CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id))'); - $this->addSql('CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) -)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_setting ( + user_id INTEGER DEFAULT 0 NOT NULL, + is_enabled INTEGER DEFAULT 0 NOT NULL, + max_login INTEGER DEFAULT NULL, + PRIMARY KEY(user_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_setting ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value CLOB NOT NULL --(DC2Type:json) + ) + SQL); $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql('CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token_type ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql('CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'0\' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + type_id INTEGER NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + expires INTEGER DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT '0' NOT NULL, + CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + ) + SQL); $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); } else { From 85932b79439b637933967c289c96371ef4b6f79e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Tue, 21 Jul 2026 17:12:34 +0200 Subject: [PATCH 05/88] IBX-11939: Adopted AbstractSqlMigration for platform-separated SQL Extends AbstractSqlMigration (added in ibexa/doctrine-migrations) instead of the plain Doctrine AbstractMigration, replacing `$this->platform instanceof ...` checks with isMySQL()/isPostgreSQL()/isSqlite(), and moving each platform Statement block out of the PHP file into its own sql/*.sql file loaded via addSqlFile(). Mechanical, content-preserving change: every migration was run before and after against all three platforms and the resulting SQL statement lists are byte-for-byte identical. --- .../Migration/ImportDataMigration.php | 1057 +------- .../Migration/InstallSchemaMigration.php | 2182 +---------------- .../Migration/sql/import-data-mysql.sql | 304 +++ .../Migration/sql/import-data-postgresql.sql | 367 +++ .../Migration/sql/import-data-sqlite.sql | 304 +++ .../Migration/sql/install-schema-mysql.sql | 679 +++++ .../sql/install-schema-postgresql.sql | 790 ++++++ .../Migration/sql/install-schema-sqlite.sql | 752 ++++++ 8 files changed, 3212 insertions(+), 3223 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 47b68b5ddd..5394841dca 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -9,14 +9,11 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Doctrine\DBAL\Platforms\MySqlPlatform; -use Doctrine\DBAL\Platforms\PostgreSqlPlatform; -use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; -use Doctrine\Migrations\AbstractMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -final class ImportDataMigration extends AbstractMigration implements IbexaMigrationInterface +final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -35,1050 +32,12 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - if ($this->platform instanceof MySqlPlatform) { - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) - VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) - VALUES (2,2,'ez_lock',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) - VALUES (2,'',3,'Lock',2) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) - VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) - VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) - VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) - VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) - VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) - VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) - VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) - VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) - VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) - SQL); - $this->addSql(<<<'SQL' - 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) - VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') - SQL); - $this->addSql(<<<'SQL' - 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) - VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) - SQL); - $this->addSql(<<<'SQL' - 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) - VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) - VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) - VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) - VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) - VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsite_data` (`name`, `value`) - VALUES ('ibexa-release','4.6') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) - VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) - VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml_incr` (`id`) - VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) - VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) - VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) - VALUES (1,1000,10), - (1,10,14) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) - SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' - SQL); - } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") - VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") - VALUES (2, 2, 'ez_lock', 3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") - VALUES (2, '', 3, 'Lock', 2) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") - VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") - VALUES ( 1, 1), - ( 4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") - VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") - VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") - VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") - VALUES (1,0,1,'Content'), - (2,0,1,'Content'), - (3,0,2,'Users'), - (4,0,2,'Users'), - (5,0,3,'Media'), - (12,0,3,'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") - VALUES (1,0,2,'eng-GB','Folder'), - (2,0,3,'eng-GB','Article'), - (3,0,3,'eng-GB','User group'), - (4,0,3,'eng-GB','User'), - (5,0,3,'eng-GB','Image'), - (12,0,3,'eng-GB','File') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") - VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") - VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) - SQL); - $this->addSql(<<<'SQL' - 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,E'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,E'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,E'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,E'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,E'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,E'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,E'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,E'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,E'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,E'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") - VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') - SQL); - $this->addSql(<<<'SQL' - 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") - VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) - SQL); - $this->addSql(<<<'SQL' - 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") - VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") - VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") - VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") - VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") - VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezsite_data" ("name", "value") - VALUES ('ibexa-release','4.6') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") - VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") - VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezurlalias_ml_incr" ("id") - VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") - VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") - VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") - VALUES (1, 1000, 10), - (1, 10, 14) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpreferences" ("name", "user_id", "value") - SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' - SQL); - $this->addSql(<<<'SQL' - -- Set proper sequence values after inserting data - SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group - SQL); - $this->addSql('SELECT SETVAL(\'ezcobj_state_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state'); - $this->addSql('SELECT SETVAL(\'ezcontentbrowsebookmark_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark'); - $this->addSql('SELECT SETVAL(\'ezcontentclass_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute'); - $this->addSql('SELECT SETVAL(\'ezcontentclass_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass'); - $this->addSql('SELECT SETVAL(\'ezcontentclassgroup_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_tree_node_id_seq\', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_version_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version'); - $this->addSql('SELECT SETVAL(\'ezimagefile_id_seq\', COALESCE(MAX(id), 1) ) FROM ezimagefile'); - $this->addSql('SELECT SETVAL(\'ezkeyword_attribute_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link'); - $this->addSql('SELECT SETVAL(\'ezkeyword_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword'); - $this->addSql('SELECT SETVAL(\'eznode_assignment_id_seq\', COALESCE(MAX(id), 1) ) FROM eznode_assignment'); - $this->addSql('SELECT SETVAL(\'eznotification_id_seq\', COALESCE(MAX(id), 1) ) FROM eznotification'); - $this->addSql('SELECT SETVAL(\'ezpackage_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpackage'); - $this->addSql('SELECT SETVAL(\'ezpolicy_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy'); - $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation'); - $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_value_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value'); - $this->addSql('SELECT SETVAL(\'ezpreferences_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpreferences'); - $this->addSql('SELECT SETVAL(\'ezrole_id_seq\', COALESCE(MAX(id), 1) ) FROM ezrole'); - $this->addSql('SELECT SETVAL(\'ezsearch_object_word_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link'); - $this->addSql('SELECT SETVAL(\'ezsearch_word_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_word'); - $this->addSql('SELECT SETVAL(\'ezsection_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsection'); - $this->addSql('SELECT SETVAL(\'ezurl_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurl'); - $this->addSql('SELECT SETVAL(\'ezurlalias_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias'); - $this->addSql('SELECT SETVAL(\'ezurlalias_ml_incr_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr'); - $this->addSql('SELECT SETVAL(\'ezurlwildcard_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlwildcard'); - $this->addSql('SELECT SETVAL(\'ezuser_accountkey_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey'); - $this->addSql('SELECT SETVAL(\'ezuser_role_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_role'); - } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) - VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) - VALUES (2,2,'ez_lock',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) - VALUES (2,'',3,'Lock',2) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) - VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) - VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) - VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) - VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) - VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) - VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) - VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) - VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) - VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) - SQL); - $this->addSql(<<<'SQL' - 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) - VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') - SQL); - $this->addSql(<<<'SQL' - 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) - VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) - SQL); - $this->addSql(<<<'SQL' - 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) - VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) - VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) - VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) - VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) - VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsite_data` (`name`, `value`) - VALUES ('ibexa-release','4.6') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) - VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) - VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml_incr` (`id`) - VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) - VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) - VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) - VALUES (1,1000,10), - (1,10,14) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) - SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' - SQL); - } else { - $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/import-data-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/import-data-sqlite.sql'); } } } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index 4ea895845e..566d742d66 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -9,14 +9,11 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Doctrine\DBAL\Platforms\MySqlPlatform; -use Doctrine\DBAL\Platforms\PostgreSqlPlatform; -use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; -use Doctrine\Migrations\AbstractMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -final class InstallSchemaMigration extends AbstractMigration implements IbexaMigrationInterface +final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -35,2175 +32,12 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - if ($this->platform instanceof MySqlPlatform) { - $this->addSql(<<<'SQL' - CREATE TABLE ezbinaryfile ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - download_count INT DEFAULT 0 NOT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - mime_type VARCHAR(255) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state ( - id INT AUTO_INCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - priority INT DEFAULT 0 NOT NULL, - INDEX ezcobj_state_priority (priority), - INDEX ezcobj_state_lmask (language_mask), - UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group ( - id INT AUTO_INCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - INDEX ezcobj_state_group_lmask (language_mask), - UNIQUE INDEX ezcobj_state_group_identifier (identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group_language ( - contentobject_state_group_id INT DEFAULT 0 NOT NULL, - real_language_id BIGINT DEFAULT 0 NOT NULL, - description LONGTEXT NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_group_id, real_language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_language ( - contentobject_state_id INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - description LONGTEXT NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_id, language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_link ( - contentobject_id INT DEFAULT 0 NOT NULL, - contentobject_state_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(contentobject_id, contentobject_state_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontent_language ( - id BIGINT DEFAULT 0 NOT NULL, - disabled INT DEFAULT 0 NOT NULL, - locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - INDEX ezcontent_language_name (name(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser ( - contentobject_id INT DEFAULT 0 NOT NULL, - email VARCHAR(150) DEFAULT '' NOT NULL, - login VARCHAR(150) DEFAULT '' NOT NULL, - password_hash VARCHAR(255) DEFAULT NULL, - password_hash_type INT DEFAULT 1 NOT NULL, - password_updated_at INT DEFAULT NULL, - UNIQUE INDEX ezuser_login (login), - PRIMARY KEY(contentobject_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_tree ( - node_id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_is_published INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string LONGTEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - INDEX ezcontentobject_tree_p_node_id (parent_node_id), - INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), - INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), - INDEX ezcontentobject_tree_co_id (contentobject_id), - INDEX ezcontentobject_tree_depth (depth), - INDEX ezcontentobject_tree_path (path_string(191)), - INDEX modified_subnode (modified_subnode), - INDEX ezcontentobject_tree_remote_id (remote_id), - PRIMARY KEY(node_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentbrowsebookmark ( - id INT AUTO_INCREMENT NOT NULL, - node_id INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - INDEX ezcontentbrowsebookmark_location (node_id), - INDEX ezcontentbrowsebookmark_user (user_id), - INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass ( - id INT AUTO_INCREMENT NOT NULL, - version INT DEFAULT 0 NOT NULL, - always_available INT DEFAULT 0 NOT NULL, - contentobject_name VARCHAR(255) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - is_container INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - serialized_description_list LONGTEXT DEFAULT NULL, - serialized_name_list LONGTEXT DEFAULT NULL, - sort_field INT DEFAULT 1 NOT NULL, - sort_order INT DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL, - INDEX ezcontentclass_version (version), - INDEX ezcontentclass_identifier (identifier, version), - PRIMARY KEY(id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute ( - id INT AUTO_INCREMENT NOT NULL, - version INT DEFAULT 0 NOT NULL, - can_translate INT DEFAULT 1, - category VARCHAR(25) DEFAULT '' NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - data_float1 DOUBLE PRECISION DEFAULT NULL, - data_float2 DOUBLE PRECISION DEFAULT NULL, - data_float3 DOUBLE PRECISION DEFAULT NULL, - data_float4 DOUBLE PRECISION DEFAULT NULL, - data_int1 INT DEFAULT NULL, - data_int2 INT DEFAULT NULL, - data_int3 INT DEFAULT NULL, - data_int4 INT DEFAULT NULL, - data_text1 VARCHAR(255) DEFAULT NULL, - data_text2 VARCHAR(50) DEFAULT NULL, - data_text3 VARCHAR(50) DEFAULT NULL, - data_text4 VARCHAR(255) DEFAULT NULL, - data_text5 LONGTEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '' NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - is_information_collector INT DEFAULT 0 NOT NULL, - is_required INT DEFAULT 0 NOT NULL, - is_searchable INT DEFAULT 0 NOT NULL, - is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, - placement INT DEFAULT 0 NOT NULL, - serialized_data_text LONGTEXT DEFAULT NULL, - serialized_description_list LONGTEXT DEFAULT NULL, - serialized_name_list LONGTEXT NOT NULL, - INDEX ezcontentclass_attr_ccid (contentclass_id), - INDEX ezcontentclass_attr_dts (data_type_string), - PRIMARY KEY(id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute_ml ( - contentclass_attribute_id INT NOT NULL, - version INT NOT NULL, - language_id BIGINT NOT NULL, - name VARCHAR(255) NOT NULL, - description TEXT DEFAULT NULL, - data_text TEXT DEFAULT NULL, - data_json TEXT DEFAULT NULL, - INDEX ezcontentclass_attribute_ml_lang_fk (language_id), - PRIMARY KEY(contentclass_attribute_id, version, language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_classgroup ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - group_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, group_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_name ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - language_locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclassgroup ( - id INT AUTO_INCREMENT NOT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - is_system TINYINT(1) DEFAULT '0' NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject ( - id INT AUTO_INCREMENT NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - current_version INT DEFAULT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - owner_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT NULL, - section_id INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0, - is_hidden TINYINT(1) DEFAULT '0' NOT NULL, - INDEX ezcontentobject_classid (contentclass_id), - INDEX ezcontentobject_lmask (language_mask), - INDEX ezcontentobject_pub (published), - INDEX ezcontentobject_section (section_id), - INDEX ezcontentobject_currentversion (current_version), - INDEX ezcontentobject_owner (owner_id), - INDEX ezcontentobject_status (status), - UNIQUE INDEX ezcontentobject_remote_id (remote_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_attribute ( - id INT AUTO_INCREMENT NOT NULL, - version INT DEFAULT 0 NOT NULL, - attribute_original_id INT DEFAULT 0, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - data_float DOUBLE PRECISION DEFAULT NULL, - data_int INT DEFAULT NULL, - data_text LONGTEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '', - language_code VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - sort_key_int INT DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, - INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), - INDEX ezcontentobject_classattr_id (contentclassattribute_id), - INDEX sort_key_string (sort_key_string(191)), - INDEX ezcontentobject_attribute_language_code (language_code), - INDEX sort_key_int (sort_key_int), - INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), - PRIMARY KEY(id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_link ( - id INT AUTO_INCREMENT NOT NULL, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - from_contentobject_id INT DEFAULT 0 NOT NULL, - from_contentobject_version INT DEFAULT 0 NOT NULL, - relation_type INT DEFAULT 1 NOT NULL, - to_contentobject_id INT DEFAULT 0 NOT NULL, - INDEX ezco_link_to_co_id (to_contentobject_id), - INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), - INDEX ezco_link_cca_id (contentclassattribute_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_name ( - contentobject_id INT DEFAULT 0 NOT NULL, - content_version INT DEFAULT 0 NOT NULL, - content_translation VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - real_translation VARCHAR(20) DEFAULT NULL, - INDEX ezcontentobject_name_lang_id (language_id), - INDEX ezcontentobject_name_cov_id (content_version), - INDEX ezcontentobject_name_name (name(191)), - PRIMARY KEY(contentobject_id, content_version, content_translation) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_trash ( - node_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string LONGTEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - trashed INT DEFAULT 0 NOT NULL, - INDEX ezcobj_trash_depth (depth), - INDEX ezcobj_trash_p_node_id (parent_node_id), - INDEX ezcobj_trash_path_ident (path_identification_string(50)), - INDEX ezcobj_trash_co_id (contentobject_id), - INDEX ezcobj_trash_modified_subnode (modified_subnode), - INDEX ezcobj_trash_path (path_string(191)), - PRIMARY KEY(node_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_version ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - workflow_event_pos INT DEFAULT 0, - INDEX ezcobj_version_status (status), - INDEX idx_object_version_objver (contentobject_id, version), - INDEX ezcontobj_version_obj_status (contentobject_id, status), - INDEX ezcobj_version_creator_id (creator_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezdfsfile ( - name_hash VARCHAR(34) DEFAULT '' NOT NULL, - name TEXT NOT NULL, - name_trunk TEXT NOT NULL, - datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, - scope VARCHAR(25) DEFAULT '' NOT NULL, - size BIGINT UNSIGNED DEFAULT 0 NOT NULL, - mtime INT DEFAULT 0 NOT NULL, - expired TINYINT(1) DEFAULT '0' NOT NULL, - status TINYINT(1) DEFAULT '0' NOT NULL, - INDEX ezdfsfile_name_trunk (name_trunk(191)), - INDEX ezdfsfile_expired_name (expired, name(191)), - INDEX ezdfsfile_name (name(191)), - INDEX ezdfsfile_mtime (mtime), - PRIMARY KEY(name_hash) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezgmaplocation ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_version INT DEFAULT 0 NOT NULL, - latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - address VARCHAR(150) DEFAULT NULL, - INDEX latitude_longitude_key (latitude, longitude), - PRIMARY KEY(contentobject_attribute_id, contentobject_version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezimagefile ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - filepath LONGTEXT NOT NULL, - INDEX ezimagefile_file (filepath(191)), - INDEX ezimagefile_coid (contentobject_attribute_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword ( - id INT AUTO_INCREMENT NOT NULL, - class_id INT DEFAULT 0 NOT NULL, - keyword VARCHAR(255) DEFAULT NULL, - INDEX ezkeyword_keyword (keyword(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword_attribute_link ( - id INT AUTO_INCREMENT NOT NULL, - keyword_id INT DEFAULT 0 NOT NULL, - objectattribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - INDEX ezkeyword_attr_link_oaid (objectattribute_id), - INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), - INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezmedia ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - controls VARCHAR(50) DEFAULT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - has_controller INT DEFAULT 0, - height INT DEFAULT NULL, - is_autoplay INT DEFAULT 0, - is_loop INT DEFAULT 0, - mime_type VARCHAR(50) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - pluginspage VARCHAR(255) DEFAULT NULL, - quality VARCHAR(50) DEFAULT NULL, - width INT DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznode_assignment ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - from_node_id INT DEFAULT 0, - is_main INT DEFAULT 0 NOT NULL, - op_code INT DEFAULT 0 NOT NULL, - parent_node INT DEFAULT NULL, - parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, - remote_id VARCHAR(100) DEFAULT '0' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - priority INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - INDEX eznode_assignment_is_main (is_main), - INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), - INDEX eznode_assignment_parent_node (parent_node), - INDEX eznode_assignment_co_version (contentobject_version), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznotification ( - id INT AUTO_INCREMENT NOT NULL, - owner_id INT DEFAULT 0 NOT NULL, - is_pending TINYINT(1) DEFAULT '1' NOT NULL, - type VARCHAR(128) DEFAULT '' NOT NULL, - created INT DEFAULT 0 NOT NULL, - data LONGTEXT DEFAULT NULL, - INDEX eznotification_owner_is_pending (owner_id, is_pending), - INDEX eznotification_owner (owner_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpackage ( - id INT AUTO_INCREMENT NOT NULL, - install_date INT DEFAULT 0 NOT NULL, - name VARCHAR(100) DEFAULT '' NOT NULL, - version VARCHAR(30) DEFAULT '0' NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy ( - id INT AUTO_INCREMENT NOT NULL, - function_name VARCHAR(255) DEFAULT NULL, - module_name VARCHAR(255) DEFAULT NULL, - original_id INT DEFAULT 0 NOT NULL, - role_id INT DEFAULT NULL, - INDEX ezpolicy_role_id (role_id), - INDEX ezpolicy_original_id (original_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation ( - id INT AUTO_INCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - policy_id INT DEFAULT NULL, - INDEX policy_id (policy_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation_value ( - id INT AUTO_INCREMENT NOT NULL, - limitation_id INT DEFAULT NULL, - value VARCHAR(255) DEFAULT NULL, - INDEX ezpolicy_limit_value_limit_id (limitation_id), - INDEX ezpolicy_limitation_value_val (value(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpreferences ( - id INT AUTO_INCREMENT NOT NULL, - name VARCHAR(100) DEFAULT NULL, - user_id INT DEFAULT 0 NOT NULL, - value LONGTEXT DEFAULT NULL, - INDEX ezpreferences_user_id_idx (user_id, name), - INDEX ezpreferences_name (name), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezrole ( - id INT AUTO_INCREMENT NOT NULL, - is_new INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - value CHAR(1) DEFAULT NULL, - version INT DEFAULT 0, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_object_word_link ( - id INT AUTO_INCREMENT NOT NULL, - contentclass_attribute_id INT DEFAULT 0 NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - integer_value INT DEFAULT 0 NOT NULL, - next_word_id INT DEFAULT 0 NOT NULL, - placement INT DEFAULT 0 NOT NULL, - prev_word_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - section_id INT DEFAULT 0 NOT NULL, - word_id INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - INDEX ezsearch_object_word_link_object (contentobject_id), - INDEX ezsearch_object_word_link_identifier (identifier(191)), - INDEX ezsearch_object_word_link_integer_value (integer_value), - INDEX ezsearch_object_word_link_word (word_id), - INDEX ezsearch_object_word_link_frequency (frequency), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_word ( - id INT AUTO_INCREMENT NOT NULL, - object_count INT DEFAULT 0 NOT NULL, - word VARCHAR(150) DEFAULT NULL, - INDEX ezsearch_word_word_i (word), - INDEX ezsearch_word_obj_count (object_count), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsection ( - id INT AUTO_INCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT NULL, - locale VARCHAR(255) DEFAULT NULL, - name VARCHAR(255) DEFAULT NULL, - navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsite_data ( - name VARCHAR(60) DEFAULT '' NOT NULL, - value LONGTEXT NOT NULL, - PRIMARY KEY(name) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl ( - id INT AUTO_INCREMENT NOT NULL, - created INT DEFAULT 0 NOT NULL, - is_valid INT DEFAULT 1 NOT NULL, - last_checked INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, - url LONGTEXT DEFAULT NULL, - INDEX ezurl_url (url(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl_object_link ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_attribute_version INT DEFAULT 0 NOT NULL, - url_id INT DEFAULT 0 NOT NULL, - INDEX ezurl_ol_coa_id (contentobject_attribute_id), - INDEX ezurl_ol_url_id (url_id), - INDEX ezurl_ol_coa_version (contentobject_attribute_version), - INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias ( - id INT AUTO_INCREMENT NOT NULL, - destination_url LONGTEXT NOT NULL, - forward_to_id INT DEFAULT 0 NOT NULL, - is_imported INT DEFAULT 0 NOT NULL, - is_internal INT DEFAULT 1 NOT NULL, - is_wildcard INT DEFAULT 0 NOT NULL, - source_md5 VARCHAR(32) DEFAULT NULL, - source_url LONGTEXT NOT NULL, - INDEX ezurlalias_source_md5 (source_md5), - INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), - INDEX ezurlalias_forward_to_id (forward_to_id), - INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), - INDEX ezurlalias_source_url (source_url(191)), - INDEX ezurlalias_desturl (destination_url(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml ( - parent INT DEFAULT 0 NOT NULL, - text_md5 VARCHAR(32) DEFAULT '' NOT NULL, - action LONGTEXT NOT NULL, - action_type VARCHAR(32) DEFAULT '' NOT NULL, - alias_redirects INT DEFAULT 1 NOT NULL, - id INT DEFAULT 0 NOT NULL, - is_alias INT DEFAULT 0 NOT NULL, - is_original INT DEFAULT 0 NOT NULL, - lang_mask BIGINT DEFAULT 0 NOT NULL, - link INT DEFAULT 0 NOT NULL, - text LONGTEXT NOT NULL, - INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), - INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), - INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), - INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), - INDEX ezurlalias_ml_act_org (action(32), is_original), - INDEX ezurlalias_ml_text (text(32), id, link), - INDEX ezurlalias_ml_link (link), - INDEX ezurlalias_ml_id (id), - PRIMARY KEY(parent, text_md5) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml_incr ( - id INT AUTO_INCREMENT NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlwildcard ( - id INT AUTO_INCREMENT NOT NULL, - destination_url LONGTEXT NOT NULL, - source_url LONGTEXT NOT NULL, - type INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_accountkey ( - id INT AUTO_INCREMENT NOT NULL, - hash_key VARCHAR(32) DEFAULT '' NOT NULL, - time INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - INDEX hash_key (hash_key), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_role ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - limit_identifier VARCHAR(255) DEFAULT '', - limit_value VARCHAR(255) DEFAULT '', - role_id INT DEFAULT NULL, - INDEX ezuser_role_role_id (role_id), - INDEX ezuser_role_contentobject_id (contentobject_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_setting ( - user_id INT DEFAULT 0 NOT NULL, - is_enabled INT DEFAULT 0 NOT NULL, - max_login INT DEFAULT NULL, - PRIMARY KEY(user_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_setting ( - id INT AUTO_INCREMENT NOT NULL, - `group` VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value JSON NOT NULL, - INDEX ibexa_setting_id (id), - UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token_type ( - id INT AUTO_INCREMENT NOT NULL, - identifier VARCHAR(64) NOT NULL, - UNIQUE INDEX ibexa_token_type_unique (identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token ( - id INT AUTO_INCREMENT NOT NULL, - type_id INT NOT NULL, - token VARCHAR(255) NOT NULL, - identifier VARCHAR(128) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - expires INT DEFAULT 0 NOT NULL, - revoked TINYINT(1) DEFAULT '0' NOT NULL, - INDEX IDX_B5412887C54C8C93 (type_id), - UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE - SQL); - $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE'); - } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql(<<<'SQL' - CREATE TABLE ezbinaryfile ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - download_count INT DEFAULT 0 NOT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - mime_type VARCHAR(255) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state ( - id SERIAL NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - priority INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); - $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group ( - id SERIAL NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group_language ( - contentobject_state_group_id INT DEFAULT 0 NOT NULL, - real_language_id BIGINT DEFAULT 0 NOT NULL, - description TEXT NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_group_id, real_language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_language ( - contentobject_state_id INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - description TEXT NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_id, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_link ( - contentobject_id INT DEFAULT 0 NOT NULL, - contentobject_state_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(contentobject_id, contentobject_state_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontent_language ( - id BIGINT DEFAULT 0 NOT NULL, - disabled INT DEFAULT 0 NOT NULL, - locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser ( - contentobject_id INT DEFAULT 0 NOT NULL, - email VARCHAR(150) DEFAULT '' NOT NULL, - login VARCHAR(150) DEFAULT '' NOT NULL, - password_hash VARCHAR(255) DEFAULT NULL, - password_hash_type INT DEFAULT 1 NOT NULL, - password_updated_at INT DEFAULT NULL, - PRIMARY KEY(contentobject_id) - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_tree ( - node_id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_is_published INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string TEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - PRIMARY KEY(node_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); - $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentbrowsebookmark ( - id SERIAL NOT NULL, - node_id INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass ( - id SERIAL NOT NULL, - version INT DEFAULT 0 NOT NULL, - always_available INT DEFAULT 0 NOT NULL, - contentobject_name VARCHAR(255) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - is_container INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - serialized_description_list TEXT DEFAULT NULL, - serialized_name_list TEXT DEFAULT NULL, - sort_field INT DEFAULT 1 NOT NULL, - sort_order INT DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(id, version) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); - $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute ( - id SERIAL NOT NULL, - version INT DEFAULT 0 NOT NULL, - can_translate INT DEFAULT 1, - category VARCHAR(25) DEFAULT '' NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - data_float1 DOUBLE PRECISION DEFAULT NULL, - data_float2 DOUBLE PRECISION DEFAULT NULL, - data_float3 DOUBLE PRECISION DEFAULT NULL, - data_float4 DOUBLE PRECISION DEFAULT NULL, - data_int1 INT DEFAULT NULL, - data_int2 INT DEFAULT NULL, - data_int3 INT DEFAULT NULL, - data_int4 INT DEFAULT NULL, - data_text1 VARCHAR(255) DEFAULT NULL, - data_text2 VARCHAR(50) DEFAULT NULL, - data_text3 VARCHAR(50) DEFAULT NULL, - data_text4 VARCHAR(255) DEFAULT NULL, - data_text5 TEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '' NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - is_information_collector INT DEFAULT 0 NOT NULL, - is_required INT DEFAULT 0 NOT NULL, - is_searchable INT DEFAULT 0 NOT NULL, - is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, - placement INT DEFAULT 0 NOT NULL, - serialized_data_text TEXT DEFAULT NULL, - serialized_description_list TEXT DEFAULT NULL, - serialized_name_list TEXT NOT NULL, - PRIMARY KEY(id, version) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute_ml ( - contentclass_attribute_id INT NOT NULL, - version INT NOT NULL, - language_id BIGINT NOT NULL, - name VARCHAR(255) NOT NULL, - description TEXT DEFAULT NULL, - data_text TEXT DEFAULT NULL, - data_json TEXT DEFAULT NULL, - PRIMARY KEY(contentclass_attribute_id, version, language_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_classgroup ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - group_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, group_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_name ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - language_locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclassgroup ( - id SERIAL NOT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - is_system BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject ( - id SERIAL NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - current_version INT DEFAULT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - owner_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT NULL, - section_id INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0, - is_hidden BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); - $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); - $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); - $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); - $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); - $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); - $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_attribute ( - id SERIAL NOT NULL, - version INT DEFAULT 0 NOT NULL, - attribute_original_id INT DEFAULT 0, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - data_float DOUBLE PRECISION DEFAULT NULL, - data_int INT DEFAULT NULL, - data_text TEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '', - language_code VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - sort_key_int INT DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id, version) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); - $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); - $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); - $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_link ( - id SERIAL NOT NULL, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - from_contentobject_id INT DEFAULT 0 NOT NULL, - from_contentobject_version INT DEFAULT 0 NOT NULL, - relation_type INT DEFAULT 1 NOT NULL, - to_contentobject_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); - $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); - $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_name ( - contentobject_id INT DEFAULT 0 NOT NULL, - content_version INT DEFAULT 0 NOT NULL, - content_translation VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - real_translation VARCHAR(20) DEFAULT NULL, - PRIMARY KEY(contentobject_id, content_version, content_translation) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); - $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); - $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_trash ( - node_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string TEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - trashed INT DEFAULT 0 NOT NULL, - PRIMARY KEY(node_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); - $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); - $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); - $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_version ( - id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - workflow_event_pos INT DEFAULT 0, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); - $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); - $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); - $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezdfsfile ( - name_hash VARCHAR(34) DEFAULT '' NOT NULL, - name TEXT NOT NULL, - name_trunk TEXT NOT NULL, - datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, - scope VARCHAR(25) DEFAULT '' NOT NULL, - size BIGINT DEFAULT 0 NOT NULL, - mtime INT DEFAULT 0 NOT NULL, - expired BOOLEAN DEFAULT 'false' NOT NULL, - status BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(name_hash) - ) - SQL); - $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); - $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); - $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); - $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezgmaplocation ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_version INT DEFAULT 0 NOT NULL, - latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - address VARCHAR(150) DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, contentobject_version) - ) - SQL); - $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezimagefile ( - id SERIAL NOT NULL, - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - filepath TEXT NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); - $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword ( - id SERIAL NOT NULL, - class_id INT DEFAULT 0 NOT NULL, - keyword VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword_attribute_link ( - id SERIAL NOT NULL, - keyword_id INT DEFAULT 0 NOT NULL, - objectattribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezmedia ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - controls VARCHAR(50) DEFAULT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - has_controller INT DEFAULT 0, - height INT DEFAULT NULL, - is_autoplay INT DEFAULT 0, - is_loop INT DEFAULT 0, - mime_type VARCHAR(50) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - pluginspage VARCHAR(255) DEFAULT NULL, - quality VARCHAR(50) DEFAULT NULL, - width INT DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznode_assignment ( - id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - from_node_id INT DEFAULT 0, - is_main INT DEFAULT 0 NOT NULL, - op_code INT DEFAULT 0 NOT NULL, - parent_node INT DEFAULT NULL, - parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, - remote_id VARCHAR(100) DEFAULT '0' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - priority INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); - $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); - $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); - $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE eznotification ( - id SERIAL NOT NULL, - owner_id INT DEFAULT 0 NOT NULL, - is_pending BOOLEAN DEFAULT 'true' NOT NULL, - type VARCHAR(128) DEFAULT '' NOT NULL, - created INT DEFAULT 0 NOT NULL, - data TEXT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); - $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpackage ( - id SERIAL NOT NULL, - install_date INT DEFAULT 0 NOT NULL, - name VARCHAR(100) DEFAULT '' NOT NULL, - version VARCHAR(30) DEFAULT '0' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy ( - id SERIAL NOT NULL, - function_name VARCHAR(255) DEFAULT NULL, - module_name VARCHAR(255) DEFAULT NULL, - original_id INT DEFAULT 0 NOT NULL, - role_id INT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); - $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation ( - id SERIAL NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - policy_id INT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation_value ( - id SERIAL NOT NULL, - limitation_id INT DEFAULT NULL, - value VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); - $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpreferences ( - id SERIAL NOT NULL, - name VARCHAR(100) DEFAULT NULL, - user_id INT DEFAULT 0 NOT NULL, - value TEXT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); - $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezrole ( - id SERIAL NOT NULL, - is_new INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - value CHAR(1) DEFAULT NULL, - version INT DEFAULT 0, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_object_word_link ( - id SERIAL NOT NULL, - contentclass_attribute_id INT DEFAULT 0 NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - integer_value INT DEFAULT 0 NOT NULL, - next_word_id INT DEFAULT 0 NOT NULL, - placement INT DEFAULT 0 NOT NULL, - prev_word_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - section_id INT DEFAULT 0 NOT NULL, - word_id INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_word ( - id SERIAL NOT NULL, - object_count INT DEFAULT 0 NOT NULL, - word VARCHAR(150) DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); - $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsection ( - id SERIAL NOT NULL, - identifier VARCHAR(255) DEFAULT NULL, - locale VARCHAR(255) DEFAULT NULL, - name VARCHAR(255) DEFAULT NULL, - navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsite_data ( - name VARCHAR(60) DEFAULT '' NOT NULL, - value TEXT NOT NULL, - PRIMARY KEY(name) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl ( - id SERIAL NOT NULL, - created INT DEFAULT 0 NOT NULL, - is_valid INT DEFAULT 1 NOT NULL, - last_checked INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, - url TEXT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl_object_link ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_attribute_version INT DEFAULT 0 NOT NULL, - url_id INT DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); - $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias ( - id SERIAL NOT NULL, - destination_url TEXT NOT NULL, - forward_to_id INT DEFAULT 0 NOT NULL, - is_imported INT DEFAULT 0 NOT NULL, - is_internal INT DEFAULT 1 NOT NULL, - is_wildcard INT DEFAULT 0 NOT NULL, - source_md5 VARCHAR(32) DEFAULT NULL, - source_url TEXT NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); - $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); - $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml ( - parent INT DEFAULT 0 NOT NULL, - text_md5 VARCHAR(32) DEFAULT '' NOT NULL, - action TEXT NOT NULL, - action_type VARCHAR(32) DEFAULT '' NOT NULL, - alias_redirects INT DEFAULT 1 NOT NULL, - id INT DEFAULT 0 NOT NULL, - is_alias INT DEFAULT 0 NOT NULL, - is_original INT DEFAULT 0 NOT NULL, - lang_mask BIGINT DEFAULT 0 NOT NULL, - link INT DEFAULT 0 NOT NULL, - text TEXT NOT NULL, - PRIMARY KEY(parent, text_md5) - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml_incr ( - id SERIAL NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlwildcard ( - id SERIAL NOT NULL, - destination_url TEXT NOT NULL, - source_url TEXT NOT NULL, - type INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_accountkey ( - id SERIAL NOT NULL, - hash_key VARCHAR(32) DEFAULT '' NOT NULL, - time INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_role ( - id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - limit_identifier VARCHAR(255) DEFAULT '', - limit_value VARCHAR(255) DEFAULT '', - role_id INT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); - $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_setting ( - user_id INT DEFAULT 0 NOT NULL, - is_enabled INT DEFAULT 0 NOT NULL, - max_login INT DEFAULT NULL, - PRIMARY KEY(user_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_setting ( - id SERIAL NOT NULL, - "group" VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value JSON NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token_type ( - id SERIAL NOT NULL, - identifier VARCHAR(64) NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token ( - id SERIAL NOT NULL, - type_id INT NOT NULL, - token VARCHAR(255) NOT NULL, - identifier VARCHAR(128) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - expires INT DEFAULT 0 NOT NULL, - revoked BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql(<<<'SQL' - CREATE TABLE ezbinaryfile ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - download_count INTEGER DEFAULT 0 NOT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - mime_type VARCHAR(255) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - group_id INTEGER DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - priority INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); - $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group_language ( - contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, - real_language_id BIGINT DEFAULT 0 NOT NULL, - description CLOB NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_group_id, real_language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_language ( - contentobject_state_id INTEGER DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - description CLOB NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_id, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_link ( - contentobject_id INTEGER DEFAULT 0 NOT NULL, - contentobject_state_id INTEGER DEFAULT 0 NOT NULL, - PRIMARY KEY(contentobject_id, contentobject_state_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontent_language ( - id BIGINT DEFAULT 0 NOT NULL, - disabled INTEGER DEFAULT 0 NOT NULL, - locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser ( - contentobject_id INTEGER DEFAULT 0 NOT NULL, - email VARCHAR(150) DEFAULT '' NOT NULL, - login VARCHAR(150) DEFAULT '' NOT NULL, - password_hash VARCHAR(255) DEFAULT NULL, - password_hash_type INTEGER DEFAULT 1 NOT NULL, - password_updated_at INTEGER DEFAULT NULL, - PRIMARY KEY(contentobject_id) - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_tree ( - node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - contentobject_is_published INTEGER DEFAULT NULL, - contentobject_version INTEGER DEFAULT NULL, - depth INTEGER DEFAULT 0 NOT NULL, - is_hidden INTEGER DEFAULT 0 NOT NULL, - is_invisible INTEGER DEFAULT 0 NOT NULL, - main_node_id INTEGER DEFAULT NULL, - modified_subnode INTEGER DEFAULT 0, - parent_node_id INTEGER DEFAULT 0 NOT NULL, - path_identification_string CLOB DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INTEGER DEFAULT 1, - sort_order INTEGER DEFAULT 1 - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); - $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentbrowsebookmark ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - node_id INTEGER DEFAULT 0 NOT NULL, - user_id INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, - CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - ) - SQL); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - always_available INTEGER DEFAULT 0 NOT NULL, - contentobject_name VARCHAR(255) DEFAULT NULL, - created INTEGER DEFAULT 0 NOT NULL, - creator_id INTEGER DEFAULT 0 NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - is_container INTEGER DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - modifier_id INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - serialized_description_list CLOB DEFAULT NULL, - serialized_name_list CLOB DEFAULT NULL, - sort_field INTEGER DEFAULT 1 NOT NULL, - sort_order INTEGER DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); - $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - can_translate INTEGER DEFAULT 1, - category VARCHAR(25) DEFAULT '' NOT NULL, - contentclass_id INTEGER DEFAULT 0 NOT NULL, - data_float1 DOUBLE PRECISION DEFAULT NULL, - data_float2 DOUBLE PRECISION DEFAULT NULL, - data_float3 DOUBLE PRECISION DEFAULT NULL, - data_float4 DOUBLE PRECISION DEFAULT NULL, - data_int1 INTEGER DEFAULT NULL, - data_int2 INTEGER DEFAULT NULL, - data_int3 INTEGER DEFAULT NULL, - data_int4 INTEGER DEFAULT NULL, - data_text1 VARCHAR(255) DEFAULT NULL, - data_text2 VARCHAR(50) DEFAULT NULL, - data_text3 VARCHAR(50) DEFAULT NULL, - data_text4 VARCHAR(255) DEFAULT NULL, - data_text5 CLOB DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '' NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - is_information_collector INTEGER DEFAULT 0 NOT NULL, - is_required INTEGER DEFAULT 0 NOT NULL, - is_searchable INTEGER DEFAULT 0 NOT NULL, - is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, - placement INTEGER DEFAULT 0 NOT NULL, - serialized_data_text CLOB DEFAULT NULL, - serialized_description_list CLOB DEFAULT NULL, - serialized_name_list CLOB NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute_ml ( - contentclass_attribute_id INTEGER NOT NULL, - version INTEGER NOT NULL, - language_id BIGINT NOT NULL, - name VARCHAR(255) NOT NULL, - description CLOB DEFAULT NULL, - data_text CLOB DEFAULT NULL, - data_json CLOB DEFAULT NULL, - PRIMARY KEY(contentclass_attribute_id, version, language_id), - CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_classgroup ( - contentclass_id INTEGER DEFAULT 0 NOT NULL, - contentclass_version INTEGER DEFAULT 0 NOT NULL, - group_id INTEGER DEFAULT 0 NOT NULL, - group_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, group_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_name ( - contentclass_id INTEGER DEFAULT 0 NOT NULL, - contentclass_version INTEGER DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - language_locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclassgroup ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - created INTEGER DEFAULT 0 NOT NULL, - creator_id INTEGER DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - modifier_id INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - is_system BOOLEAN DEFAULT '0' NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentclass_id INTEGER DEFAULT 0 NOT NULL, - current_version INTEGER DEFAULT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - owner_id INTEGER DEFAULT 0 NOT NULL, - published INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT NULL, - section_id INTEGER DEFAULT 0 NOT NULL, - status INTEGER DEFAULT 0, - is_hidden BOOLEAN DEFAULT '0' NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); - $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); - $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); - $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); - $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); - $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); - $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - attribute_original_id INTEGER DEFAULT 0, - contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, - contentobject_id INTEGER DEFAULT 0 NOT NULL, - data_float DOUBLE PRECISION DEFAULT NULL, - data_int INTEGER DEFAULT NULL, - data_text CLOB DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '', - language_code VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - sort_key_int INTEGER DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); - $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); - $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); - $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_link ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, - from_contentobject_id INTEGER DEFAULT 0 NOT NULL, - from_contentobject_version INTEGER DEFAULT 0 NOT NULL, - relation_type INTEGER DEFAULT 1 NOT NULL, - to_contentobject_id INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); - $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); - $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_name ( - contentobject_id INTEGER DEFAULT 0 NOT NULL, - content_version INTEGER DEFAULT 0 NOT NULL, - content_translation VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - real_translation VARCHAR(20) DEFAULT NULL, - PRIMARY KEY(contentobject_id, content_version, content_translation) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); - $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); - $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_trash ( - node_id INTEGER DEFAULT 0 NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - contentobject_version INTEGER DEFAULT NULL, - depth INTEGER DEFAULT 0 NOT NULL, - is_hidden INTEGER DEFAULT 0 NOT NULL, - is_invisible INTEGER DEFAULT 0 NOT NULL, - main_node_id INTEGER DEFAULT NULL, - modified_subnode INTEGER DEFAULT 0, - parent_node_id INTEGER DEFAULT 0 NOT NULL, - path_identification_string CLOB DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INTEGER DEFAULT 1, - sort_order INTEGER DEFAULT 1, - trashed INTEGER DEFAULT 0 NOT NULL, - PRIMARY KEY(node_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); - $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); - $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); - $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_version ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - created INTEGER DEFAULT 0 NOT NULL, - creator_id INTEGER DEFAULT 0 NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - status INTEGER DEFAULT 0 NOT NULL, - user_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - workflow_event_pos INTEGER DEFAULT 0 - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); - $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); - $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); - $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezdfsfile ( - name_hash VARCHAR(34) DEFAULT '' NOT NULL, - name CLOB NOT NULL, - name_trunk CLOB NOT NULL, - datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, - scope VARCHAR(25) DEFAULT '' NOT NULL, - size BIGINT UNSIGNED DEFAULT 0 NOT NULL, - mtime INTEGER DEFAULT 0 NOT NULL, - expired BOOLEAN DEFAULT '0' NOT NULL, - status BOOLEAN DEFAULT '0' NOT NULL, - PRIMARY KEY(name_hash) - ) - SQL); - $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); - $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); - $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); - $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezgmaplocation ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - contentobject_version INTEGER DEFAULT 0 NOT NULL, - latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - address VARCHAR(150) DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, contentobject_version) - ) - SQL); - $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezimagefile ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - filepath CLOB NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); - $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - class_id INTEGER DEFAULT 0 NOT NULL, - keyword VARCHAR(255) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword_attribute_link ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - keyword_id INTEGER DEFAULT 0 NOT NULL, - objectattribute_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezmedia ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - controls VARCHAR(50) DEFAULT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - has_controller INTEGER DEFAULT 0, - height INTEGER DEFAULT NULL, - is_autoplay INTEGER DEFAULT 0, - is_loop INTEGER DEFAULT 0, - mime_type VARCHAR(50) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - pluginspage VARCHAR(255) DEFAULT NULL, - quality VARCHAR(50) DEFAULT NULL, - width INTEGER DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznode_assignment ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - contentobject_version INTEGER DEFAULT NULL, - from_node_id INTEGER DEFAULT 0, - is_main INTEGER DEFAULT 0 NOT NULL, - op_code INTEGER DEFAULT 0 NOT NULL, - parent_node INTEGER DEFAULT NULL, - parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, - remote_id VARCHAR(100) DEFAULT '0' NOT NULL, - sort_field INTEGER DEFAULT 1, - sort_order INTEGER DEFAULT 1, - priority INTEGER DEFAULT 0 NOT NULL, - is_hidden INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); - $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); - $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); - $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE eznotification ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - owner_id INTEGER DEFAULT 0 NOT NULL, - is_pending BOOLEAN DEFAULT '1' NOT NULL, - type VARCHAR(128) DEFAULT '' NOT NULL, - created INTEGER DEFAULT 0 NOT NULL, - data CLOB DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); - $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpackage ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - install_date INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(100) DEFAULT '' NOT NULL, - version VARCHAR(30) DEFAULT '0' NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - function_name VARCHAR(255) DEFAULT NULL, - module_name VARCHAR(255) DEFAULT NULL, - original_id INTEGER DEFAULT 0 NOT NULL, - role_id INTEGER DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); - $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - policy_id INTEGER DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation_value ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - limitation_id INTEGER DEFAULT NULL, - value VARCHAR(255) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); - $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpreferences ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - name VARCHAR(100) DEFAULT NULL, - user_id INTEGER DEFAULT 0 NOT NULL, - value CLOB DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); - $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezrole ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - is_new INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - value CHAR(1) DEFAULT NULL, - version INTEGER DEFAULT 0 - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_object_word_link ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, - contentclass_id INTEGER DEFAULT 0 NOT NULL, - contentobject_id INTEGER DEFAULT 0 NOT NULL, - frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - integer_value INTEGER DEFAULT 0 NOT NULL, - next_word_id INTEGER DEFAULT 0 NOT NULL, - placement INTEGER DEFAULT 0 NOT NULL, - prev_word_id INTEGER DEFAULT 0 NOT NULL, - published INTEGER DEFAULT 0 NOT NULL, - section_id INTEGER DEFAULT 0 NOT NULL, - word_id INTEGER DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_word ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - object_count INTEGER DEFAULT 0 NOT NULL, - word VARCHAR(150) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); - $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsection ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT NULL, - locale VARCHAR(255) DEFAULT NULL, - name VARCHAR(255) DEFAULT NULL, - navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsite_data ( - name VARCHAR(60) DEFAULT '' NOT NULL, - value CLOB NOT NULL, - PRIMARY KEY(name) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - created INTEGER DEFAULT 0 NOT NULL, - is_valid INTEGER DEFAULT 1 NOT NULL, - last_checked INTEGER DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, - url CLOB DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl_object_link ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, - url_id INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); - $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - destination_url CLOB NOT NULL, - forward_to_id INTEGER DEFAULT 0 NOT NULL, - is_imported INTEGER DEFAULT 0 NOT NULL, - is_internal INTEGER DEFAULT 1 NOT NULL, - is_wildcard INTEGER DEFAULT 0 NOT NULL, - source_md5 VARCHAR(32) DEFAULT NULL, - source_url CLOB NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); - $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); - $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml ( - parent INTEGER DEFAULT 0 NOT NULL, - text_md5 VARCHAR(32) DEFAULT '' NOT NULL, - "action" CLOB NOT NULL, - action_type VARCHAR(32) DEFAULT '' NOT NULL, - alias_redirects INTEGER DEFAULT 1 NOT NULL, - id INTEGER DEFAULT 0 NOT NULL, - is_alias INTEGER DEFAULT 0 NOT NULL, - is_original INTEGER DEFAULT 0 NOT NULL, - lang_mask BIGINT DEFAULT 0 NOT NULL, - link INTEGER DEFAULT 0 NOT NULL, - text CLOB NOT NULL, - PRIMARY KEY(parent, text_md5) - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml_incr ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlwildcard ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - destination_url CLOB NOT NULL, - source_url CLOB NOT NULL, - type INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_accountkey ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - hash_key VARCHAR(32) DEFAULT '' NOT NULL, - time INTEGER DEFAULT 0 NOT NULL, - user_id INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_role ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - limit_identifier VARCHAR(255) DEFAULT '', - limit_value VARCHAR(255) DEFAULT '', - role_id INTEGER DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); - $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_setting ( - user_id INTEGER DEFAULT 0 NOT NULL, - is_enabled INTEGER DEFAULT 0 NOT NULL, - max_login INTEGER DEFAULT NULL, - PRIMARY KEY(user_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_setting ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - "group" VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value CLOB NOT NULL --(DC2Type:json) - ) - SQL); - $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token_type ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - identifier VARCHAR(64) NOT NULL - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - type_id INTEGER NOT NULL, - token VARCHAR(255) NOT NULL, - identifier VARCHAR(128) DEFAULT NULL, - created INTEGER DEFAULT 0 NOT NULL, - expires INTEGER DEFAULT 0 NOT NULL, - revoked BOOLEAN DEFAULT '0' NOT NULL, - CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - ) - SQL); - $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); - } else { - $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-sqlite.sql'); } } } diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql new file mode 100644 index 0000000000..f06caa6c82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql @@ -0,0 +1,304 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) +-- ibexa:sql-statement-separator +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') +-- ibexa:sql-statement-separator +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) +-- ibexa:sql-statement-separator +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') +-- ibexa:sql-statement-separator +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') +-- ibexa:sql-statement-separator +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14) +-- ibexa:sql-statement-separator +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql new file mode 100644 index 0000000000..51df923e0d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql @@ -0,0 +1,367 @@ +INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, 'ez_lock', 3) +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, '', 3, 'Lock', 2) +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) +-- ibexa:sql-statement-separator +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') +-- ibexa:sql-statement-separator +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) +-- ibexa:sql-statement-separator +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) +-- ibexa:sql-statement-separator +INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) +-- ibexa:sql-statement-separator +INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) +-- ibexa:sql-statement-separator +INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') +-- ibexa:sql-statement-separator +INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) +-- ibexa:sql-statement-separator +INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') +-- ibexa:sql-statement-separator +INSERT INTO "ezsite_data" ("name", "value") +VALUES ('ibexa-release','4.6') +-- ibexa:sql-statement-separator +INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') +-- ibexa:sql-statement-separator +INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') +-- ibexa:sql-statement-separator +INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) +-- ibexa:sql-statement-separator +INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) +-- ibexa:sql-statement-separator +INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) +-- ibexa:sql-statement-separator +INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14) +-- ibexa:sql-statement-separator +INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' +-- ibexa:sql-statement-separator +-- Set proper sequence values after inserting data +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version +-- ibexa:sql-statement-separator +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile +-- ibexa:sql-statement-separator +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link +-- ibexa:sql-statement-separator +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword +-- ibexa:sql-statement-separator +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment +-- ibexa:sql-statement-separator +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences +-- ibexa:sql-statement-separator +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole +-- ibexa:sql-statement-separator +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link +-- ibexa:sql-statement-separator +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word +-- ibexa:sql-statement-separator +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard +-- ibexa:sql-statement-separator +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey +-- ibexa:sql-statement-separator +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql new file mode 100644 index 0000000000..f06caa6c82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql @@ -0,0 +1,304 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) +-- ibexa:sql-statement-separator +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') +-- ibexa:sql-statement-separator +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) +-- ibexa:sql-statement-separator +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') +-- ibexa:sql-statement-separator +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') +-- ibexa:sql-statement-separator +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14) +-- ibexa:sql-statement-separator +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql new file mode 100644 index 0000000000..3004bc86f7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -0,0 +1,679 @@ +CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_priority (priority), + INDEX ezcobj_state_lmask (language_mask), + UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_group_lmask (language_mask), + UNIQUE INDEX ezcobj_state_group_identifier (identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontent_language_name (name(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + UNIQUE INDEX ezuser_login (login), + PRIMARY KEY(contentobject_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_tree ( + node_id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + INDEX ezcontentobject_tree_p_node_id (parent_node_id), + INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), + INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), + INDEX ezcontentobject_tree_co_id (contentobject_id), + INDEX ezcontentobject_tree_depth (depth), + INDEX ezcontentobject_tree_path (path_string(191)), + INDEX modified_subnode (modified_subnode), + INDEX ezcontentobject_tree_remote_id (remote_id), + PRIMARY KEY(node_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentbrowsebookmark ( + id INT AUTO_INCREMENT NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentbrowsebookmark_location (node_id), + INDEX ezcontentbrowsebookmark_user (user_id), + INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + INDEX ezcontentclass_version (version), + INDEX ezcontentclass_identifier (identifier, version), + PRIMARY KEY(id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text LONGTEXT DEFAULT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT NOT NULL, + INDEX ezcontentclass_attr_ccid (contentclass_id), + INDEX ezcontentclass_attr_dts (data_type_string), + PRIMARY KEY(id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + INDEX ezcontentclass_attribute_ml_lang_fk (language_id), + PRIMARY KEY(contentclass_attribute_id, version, language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclassgroup ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system TINYINT(1) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezcontentobject_classid (contentclass_id), + INDEX ezcontentobject_lmask (language_mask), + INDEX ezcontentobject_pub (published), + INDEX ezcontentobject_section (section_id), + INDEX ezcontentobject_currentversion (current_version), + INDEX ezcontentobject_owner (owner_id), + INDEX ezcontentobject_status (status), + UNIQUE INDEX ezcontentobject_remote_id (remote_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), + INDEX ezcontentobject_classattr_id (contentclassattribute_id), + INDEX sort_key_string (sort_key_string(191)), + INDEX ezcontentobject_attribute_language_code (language_code), + INDEX sort_key_int (sort_key_int), + INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), + PRIMARY KEY(id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + INDEX ezco_link_to_co_id (to_contentobject_id), + INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), + INDEX ezco_link_cca_id (contentclassattribute_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + INDEX ezcontentobject_name_lang_id (language_id), + INDEX ezcontentobject_name_cov_id (content_version), + INDEX ezcontentobject_name_name (name(191)), + PRIMARY KEY(contentobject_id, content_version, content_translation) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + INDEX ezcobj_trash_depth (depth), + INDEX ezcobj_trash_p_node_id (parent_node_id), + INDEX ezcobj_trash_path_ident (path_identification_string(50)), + INDEX ezcobj_trash_co_id (contentobject_id), + INDEX ezcobj_trash_modified_subnode (modified_subnode), + INDEX ezcobj_trash_path (path_string(191)), + PRIMARY KEY(node_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_version ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + INDEX ezcobj_version_status (status), + INDEX idx_object_version_objver (contentobject_id, version), + INDEX ezcontobj_version_obj_status (contentobject_id, status), + INDEX ezcobj_version_creator_id (creator_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired TINYINT(1) DEFAULT '0' NOT NULL, + status TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezdfsfile_name_trunk (name_trunk(191)), + INDEX ezdfsfile_expired_name (expired, name(191)), + INDEX ezdfsfile_name (name(191)), + INDEX ezdfsfile_mtime (mtime), + PRIMARY KEY(name_hash) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + INDEX latitude_longitude_key (latitude, longitude), + PRIMARY KEY(contentobject_attribute_id, contentobject_version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezimagefile ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath LONGTEXT NOT NULL, + INDEX ezimagefile_file (filepath(191)), + INDEX ezimagefile_coid (contentobject_attribute_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword ( + id INT AUTO_INCREMENT NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + INDEX ezkeyword_keyword (keyword(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword_attribute_link ( + id INT AUTO_INCREMENT NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + INDEX ezkeyword_attr_link_oaid (objectattribute_id), + INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), + INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE eznode_assignment ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + INDEX eznode_assignment_is_main (is_main), + INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), + INDEX eznode_assignment_parent_node (parent_node), + INDEX eznode_assignment_co_version (contentobject_version), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE eznotification ( + id INT AUTO_INCREMENT NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending TINYINT(1) DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data LONGTEXT DEFAULT NULL, + INDEX eznotification_owner_is_pending (owner_id, is_pending), + INDEX eznotification_owner (owner_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpackage ( + id INT AUTO_INCREMENT NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy ( + id INT AUTO_INCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + INDEX ezpolicy_role_id (role_id), + INDEX ezpolicy_original_id (original_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + INDEX policy_id (policy_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation_value ( + id INT AUTO_INCREMENT NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + INDEX ezpolicy_limit_value_limit_id (limitation_id), + INDEX ezpolicy_limitation_value_val (value(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpreferences ( + id INT AUTO_INCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value LONGTEXT DEFAULT NULL, + INDEX ezpreferences_user_id_idx (user_id, name), + INDEX ezpreferences_name (name), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezrole ( + id INT AUTO_INCREMENT NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_object_word_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezsearch_object_word_link_object (contentobject_id), + INDEX ezsearch_object_word_link_identifier (identifier(191)), + INDEX ezsearch_object_word_link_integer_value (integer_value), + INDEX ezsearch_object_word_link_word (word_id), + INDEX ezsearch_object_word_link_frequency (frequency), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_word ( + id INT AUTO_INCREMENT NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + INDEX ezsearch_word_word_i (word), + INDEX ezsearch_word_obj_count (object_count), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsection ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value LONGTEXT NOT NULL, + PRIMARY KEY(name) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurl ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url LONGTEXT DEFAULT NULL, + INDEX ezurl_url (url(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL, + INDEX ezurl_ol_coa_id (contentobject_attribute_id), + INDEX ezurl_ol_url_id (url_id), + INDEX ezurl_ol_coa_version (contentobject_attribute_version), + INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url LONGTEXT NOT NULL, + INDEX ezurlalias_source_md5 (source_md5), + INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), + INDEX ezurlalias_forward_to_id (forward_to_id), + INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), + INDEX ezurlalias_source_url (source_url(191)), + INDEX ezurlalias_desturl (destination_url(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action LONGTEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text LONGTEXT NOT NULL, + INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), + INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), + INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), + INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), + INDEX ezurlalias_ml_act_org (action(32), is_original), + INDEX ezurlalias_ml_text (text(32), id, link), + INDEX ezurlalias_ml_link (link), + INDEX ezurlalias_ml_id (id), + PRIMARY KEY(parent, text_md5) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml_incr ( + id INT AUTO_INCREMENT NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlwildcard ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + source_url LONGTEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_accountkey ( + id INT AUTO_INCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + INDEX hash_key (hash_key), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_role ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + INDEX ezuser_role_role_id (role_id), + INDEX ezuser_role_contentobject_id (contentobject_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_setting ( + id INT AUTO_INCREMENT NOT NULL, + `group` VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + INDEX ibexa_setting_id (id), + UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token_type ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL, + UNIQUE INDEX ibexa_token_type_unique (identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token ( + id INT AUTO_INCREMENT NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked TINYINT(1) DEFAULT '0' NOT NULL, + INDEX IDX_B5412887C54C8C93 (type_id), + UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql new file mode 100644 index 0000000000..f659882f0f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql @@ -0,0 +1,790 @@ +CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + PRIMARY KEY(contentobject_id) +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_tree ( + node_id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + PRIMARY KEY(node_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +-- ibexa:sql-statement-separator +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentbrowsebookmark ( + id SERIAL NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id, version) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text TEXT DEFAULT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT NOT NULL, + PRIMARY KEY(id, version) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclassgroup ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject ( + id SERIAL NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id, version) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_link ( + id SERIAL NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_version ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +-- ibexa:sql-statement-separator +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT 'false' NOT NULL, + status BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(name_hash) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +-- ibexa:sql-statement-separator +CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) +) +-- ibexa:sql-statement-separator +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +-- ibexa:sql-statement-separator +CREATE TABLE ezimagefile ( + id SERIAL NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath TEXT NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword ( + id SERIAL NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword_attribute_link ( + id SERIAL NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE eznode_assignment ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +-- ibexa:sql-statement-separator +CREATE TABLE eznotification ( + id SERIAL NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT 'true' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data TEXT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner ON eznotification (owner_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpackage ( + id SERIAL NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy ( + id SERIAL NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation_value ( + id SERIAL NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +-- ibexa:sql-statement-separator +CREATE TABLE ezpreferences ( + id SERIAL NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value TEXT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_name ON ezpreferences (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezrole ( + id SERIAL NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_object_word_link ( + id SERIAL NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_word ( + id SERIAL NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +-- ibexa:sql-statement-separator +CREATE TABLE ezsection ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value TEXT NOT NULL, + PRIMARY KEY(name) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url TEXT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_url ON ezurl (url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url TEXT NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action TEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text TEXT NOT NULL, + PRIMARY KEY(parent, text_md5) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml_incr ( + id SERIAL NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlwildcard ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + source_url TEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_accountkey ( + id SERIAL NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_role ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_setting ( + id SERIAL NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token_type ( + id SERIAL NOT NULL, + identifier VARCHAR(64) NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token ( + id SERIAL NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql new file mode 100644 index 0000000000..89d8450fe5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -0,0 +1,752 @@ +CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + download_count INTEGER DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_language ( + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_link ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INTEGER DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INTEGER DEFAULT 1 NOT NULL, + password_updated_at INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_id) +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_tree ( + node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_is_published INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1 +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +-- ibexa:sql-statement-separator +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentbrowsebookmark ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + node_id INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, + CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + always_available INTEGER DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB DEFAULT NULL, + sort_field INTEGER DEFAULT 1 NOT NULL, + sort_order INTEGER DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + can_translate INTEGER DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INTEGER DEFAULT NULL, + data_int2 INTEGER DEFAULT NULL, + data_int3 INTEGER DEFAULT NULL, + data_int4 INTEGER DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INTEGER DEFAULT 0 NOT NULL, + is_required INTEGER DEFAULT 0 NOT NULL, + is_searchable INTEGER DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + serialized_data_text CLOB DEFAULT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INTEGER NOT NULL, + version INTEGER NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description CLOB DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_json CLOB DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id), + CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_name ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclassgroup ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT '0' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + current_version INTEGER DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0, + is_hidden BOOLEAN DEFAULT '0' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + attribute_original_id INTEGER DEFAULT 0, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INTEGER DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INTEGER DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_version INTEGER DEFAULT 0 NOT NULL, + relation_type INTEGER DEFAULT 1 NOT NULL, + to_contentobject_id INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_name ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + content_version INTEGER DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_trash ( + node_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + trashed INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_version ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + workflow_event_pos INTEGER DEFAULT 0 +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +-- ibexa:sql-statement-separator +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name CLOB NOT NULL, + name_trunk CLOB NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INTEGER DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT '0' NOT NULL, + status BOOLEAN DEFAULT '0' NOT NULL, + PRIMARY KEY(name_hash) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +-- ibexa:sql-statement-separator +CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_version INTEGER DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) +) +-- ibexa:sql-statement-separator +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +-- ibexa:sql-statement-separator +CREATE TABLE ezimagefile ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + filepath CLOB NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + class_id INTEGER DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword_attribute_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + keyword_id INTEGER DEFAULT 0 NOT NULL, + objectattribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezmedia ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INTEGER DEFAULT 0, + height INTEGER DEFAULT NULL, + is_autoplay INTEGER DEFAULT 0, + is_loop INTEGER DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE eznode_assignment ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + from_node_id INTEGER DEFAULT 0, + is_main INTEGER DEFAULT 0 NOT NULL, + op_code INTEGER DEFAULT 0 NOT NULL, + parent_node INTEGER DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + priority INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +-- ibexa:sql-statement-separator +CREATE TABLE eznotification ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + data CLOB DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner ON eznotification (owner_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpackage ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + install_date INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INTEGER DEFAULT 0 NOT NULL, + role_id INTEGER DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INTEGER DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation_value ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + limitation_id INTEGER DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +-- ibexa:sql-statement-separator +CREATE TABLE ezpreferences ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + value CLOB DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_name ON ezpreferences (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezrole ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + is_new INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INTEGER DEFAULT 0 +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_object_word_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INTEGER DEFAULT 0 NOT NULL, + next_word_id INTEGER DEFAULT 0 NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + prev_word_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + word_id INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_word ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + object_count INTEGER DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +-- ibexa:sql-statement-separator +CREATE TABLE ezsection ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value CLOB NOT NULL, + PRIMARY KEY(name) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + is_valid INTEGER DEFAULT 1 NOT NULL, + last_checked INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url CLOB DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_url ON ezurl (url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, + url_id INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + forward_to_id INTEGER DEFAULT 0 NOT NULL, + is_imported INTEGER DEFAULT 0 NOT NULL, + is_internal INTEGER DEFAULT 1 NOT NULL, + is_wildcard INTEGER DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url CLOB NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml ( + parent INTEGER DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + "action" CLOB NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INTEGER DEFAULT 1 NOT NULL, + id INTEGER DEFAULT 0 NOT NULL, + is_alias INTEGER DEFAULT 0 NOT NULL, + is_original INTEGER DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INTEGER DEFAULT 0 NOT NULL, + text CLOB NOT NULL, + PRIMARY KEY(parent, text_md5) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml_incr ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlwildcard ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + source_url CLOB NOT NULL, + type INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_accountkey ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_role ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INTEGER DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_setting ( + user_id INTEGER DEFAULT 0 NOT NULL, + is_enabled INTEGER DEFAULT 0 NOT NULL, + max_login INTEGER DEFAULT NULL, + PRIMARY KEY(user_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_setting ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value CLOB NOT NULL --(DC2Type:json) +) +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token_type ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + type_id INTEGER NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + expires INTEGER DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT '0' NOT NULL, + CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +) +-- ibexa:sql-statement-separator +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) From e541a734a3d6d0ca852e59ca187f8b761fe14574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 22 Jul 2026 11:13:39 +0200 Subject: [PATCH 06/88] IBX-11939: Aborted migration on unsupported database platform Call abortIfUnsupportedPlatform() as the first statement of up(), so installs on a database this migration doesn't build SQL for fail loudly instead of silently queuing zero statements. --- .../RepositoryInstaller/Migration/ImportDataMigration.php | 3 +++ .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 5394841dca..35dbbc0e1a 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -12,6 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -32,6 +33,8 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); } elseif ($this->isPostgreSQL()) { diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index 566d742d66..d4be9886f8 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -12,6 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -32,6 +33,8 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); } elseif ($this->isPostgreSQL()) { From 9a45d05f4d0e45e0d60daceba0219b631250ef68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 22 Jul 2026 12:10:34 +0200 Subject: [PATCH 07/88] IBX-11939: Added trailing semicolons to migration SQL files Each statement now ends with `;`, matching ibexa:doctrine:schema:dump-sql's own convention, so the files are directly executable via mysql/psql/sqlite3 CLI clients. addSqlFile() still splits on the delimiter and passes one statement per addSql() call, unaffected by the trailing terminator. --- .../Migration/sql/import-data-mysql.sql | 60 ++-- .../Migration/sql/import-data-postgresql.sql | 122 +++---- .../Migration/sql/import-data-sqlite.sql | 60 ++-- .../Migration/sql/install-schema-mysql.sql | 112 +++--- .../sql/install-schema-postgresql.sql | 334 +++++++++--------- .../Migration/sql/install-schema-sqlite.sql | 326 ++++++++--------- 6 files changed, 507 insertions(+), 507 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql index f06caa6c82..81b1803b4c 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql @@ -1,16 +1,16 @@ INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) + (2, 2, 2, 'locked', 3, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3) +VALUES (2,2,'ez_lock',3); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2) +VALUES (2,'',3,'Lock',2); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') + (2,'',3,'Locked'); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) VALUES (1, 1), @@ -24,10 +24,10 @@ VALUES (1, 1), (42, 1), (49, 1), (50, 1), - (51, 1) + (51, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), @@ -35,7 +35,7 @@ VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d4 (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), @@ -61,7 +61,7 @@ VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title', (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) VALUES (1, 0, 1, 'Content'), @@ -69,7 +69,7 @@ VALUES (1, 0, 1, 'Content'), (3, 0, 2, 'Users'), (4, 0, 2, 'Users'), (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') + (12, 0, 3, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) VALUES (1, 0, 2, 'eng-GB', 'Folder'), @@ -77,12 +77,12 @@ VALUES (1, 0, 2, 'eng-GB', 'Folder'), (3, 0, 3, 'eng-GB', 'User group'), (4, 0, 3, 'eng-GB', 'User'), (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') + (12, 0, 3, 'eng-GB', 'File'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') + (1032009743, 14, 3, 1033922120, 14, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), @@ -96,7 +96,7 @@ VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e451 (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); -- ibexa:sql-statement-separator 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), @@ -138,7 +138,7 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), @@ -152,7 +152,7 @@ VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), ('eng-GB',1,42,3,'Anonymous users','eng-GB'), ('eng-GB',1,49,3,'Images','eng-GB'), ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') + ('eng-GB',1,51,3,'Multimedia','eng-GB'); -- ibexa:sql-statement-separator 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), @@ -167,7 +167,7 @@ VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96 (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) VALUES (4,0,14,4,2,3,0,1,0,1,1), @@ -181,7 +181,7 @@ VALUES (4,0,14,4,2,3,0,1,0,1,1), (50,1080220211,14,489,2,3,1080220220,1,0,1,0), (51,1080220225,14,490,2,3,1080220233,1,0,1,0), (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); -- ibexa:sql-statement-separator 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), @@ -195,7 +195,7 @@ VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), (49,1,0,27,1,2,43,'','0',9,1,0,0), (50,1,0,28,1,2,43,'','0',9,1,0,0), (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) + (14,3,-1,38,1,2,13,'','0',1,1,0,0); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) VALUES ('*',317,'content',0,3), @@ -205,7 +205,7 @@ VALUES ('*',317,'content',0,3), ('*',332,'*',0,2), ('read',333,'content',0,4), ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) + ('*',340,'url',0,3); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) VALUES (251,'Section',328), @@ -213,7 +213,7 @@ VALUES (251,'Section',328), (253,'SiteAccess',331), (254,'Class',333), (255,'Owner',333), - (256,'Class',334) + (256,'Class',334); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) VALUES (477,251,'1'), @@ -222,21 +222,21 @@ VALUES (477,251,'1'), (480,254,'4'), (481,255,'1'), (482,256,'5'), - (483,256,'12') + (483,256,'12'); -- ibexa:sql-statement-separator INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) VALUES (1,0,'Anonymous','',0), (2,0,'Administrator','0',0), (3,0,'Editor','',0), - (4,0,'Member','',0) + (4,0,'Member','',0); -- ibexa:sql-statement-separator INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) VALUES (1,'standard','','Standard','ezcontentnavigationpart'), (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') + (3,'media','','Media','ezmedianavigationpart'); -- ibexa:sql-statement-separator INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6') +VALUES ('ibexa-release','4.6'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), @@ -250,7 +250,7 @@ VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), @@ -277,16 +277,16 @@ VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6' ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml_incr` (`id`) VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) + (34), (35), (36), (37); -- ibexa:sql-statement-separator INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); -- ibexa:sql-statement-separator INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) VALUES (11,28,'','',1), @@ -294,11 +294,11 @@ VALUES (11,28,'','',1), (13,32,'Subtree','/1/2/',3), (13,33,'Subtree','/1/43/',3), (12,34,'','',2), - (13,35,'','',4) + (13,35,'','',4); -- ibexa:sql-statement-separator INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) VALUES (1,1000,10), - (1,10,14) + (1,10,14); -- ibexa:sql-statement-separator INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql index 51df923e0d..493f01209e 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql @@ -1,16 +1,16 @@ INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) + (2, 2, 2, 'locked', 3, 1); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, 'ez_lock', 3) +VALUES (2, 2, 'ez_lock', 3); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") -VALUES (2, '', 3, 'Lock', 2) +VALUES (2, '', 3, 'Lock', 2); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') + (2,'',3,'Locked'); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") VALUES ( 1, 1), @@ -24,10 +24,10 @@ VALUES ( 1, 1), (42, 1), (49, 1), (50, 1), - (51, 1) + (51, 1); -- ibexa:sql-statement-separator INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), @@ -35,7 +35,7 @@ VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d4 (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), @@ -61,7 +61,7 @@ VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title', (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") VALUES (1,0,1,'Content'), @@ -69,7 +69,7 @@ VALUES (1,0,1,'Content'), (3,0,2,'Users'), (4,0,2,'Users'), (5,0,3,'Media'), - (12,0,3,'Media') + (12,0,3,'Media'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") VALUES (1,0,2,'eng-GB','Folder'), @@ -77,12 +77,12 @@ VALUES (1,0,2,'eng-GB','Folder'), (3,0,3,'eng-GB','User group'), (4,0,3,'eng-GB','User'), (5,0,3,'eng-GB','Image'), - (12,0,3,'eng-GB','File') + (12,0,3,'eng-GB','File'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') + (1032009743, 14, 3, 1033922120, 14, 'Media'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), @@ -96,7 +96,7 @@ VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e451 (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); -- ibexa:sql-statement-separator 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), @@ -138,7 +138,7 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3) + (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), @@ -152,7 +152,7 @@ VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), ('eng-GB',1,42,3,'Anonymous users','eng-GB'), ('eng-GB',1,49,3,'Images','eng-GB'), ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') + ('eng-GB',1,51,3,'Multimedia','eng-GB'); -- ibexa:sql-statement-separator 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), @@ -167,7 +167,7 @@ VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96 (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); -- ibexa:sql-statement-separator INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") VALUES (4,0,14,4,2,3,0,1,0,1,1), @@ -181,7 +181,7 @@ VALUES (4,0,14,4,2,3,0,1,0,1,1), (50,1080220211,14,489,2,3,1080220220,1,0,1,0), (51,1080220225,14,490,2,3,1080220233,1,0,1,0), (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); -- ibexa:sql-statement-separator 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), @@ -195,7 +195,7 @@ VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), (49,1,0,27,1,2,43,'','0',9,1,0,0), (50,1,0,28,1,2,43,'','0',9,1,0,0), (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) + (14,3,-1,38,1,2,13,'','0',1,1,0,0); -- ibexa:sql-statement-separator INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") VALUES ('*',317,'content',0,3), @@ -205,7 +205,7 @@ VALUES ('*',317,'content',0,3), ('*',332,'*',0,2), ('read',333,'content',0,4), ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) + ('*',340,'url',0,3); -- ibexa:sql-statement-separator INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") VALUES (251,'Section',328), @@ -213,7 +213,7 @@ VALUES (251,'Section',328), (253,'SiteAccess',331), (254,'Class',333), (255,'Owner',333), - (256,'Class',334) + (256,'Class',334); -- ibexa:sql-statement-separator INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") VALUES (477,251,'1'), @@ -222,21 +222,21 @@ VALUES (477,251,'1'), (480,254,'4'), (481,255,'1'), (482,256,'5'), - (483,256,'12') + (483,256,'12'); -- ibexa:sql-statement-separator INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") VALUES (1,0,'Anonymous','',0), (2,0,'Administrator','0',0), (3,0,'Editor','',0), - (4,0,'Member','',0) + (4,0,'Member','',0); -- ibexa:sql-statement-separator INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") VALUES (1,'standard','','Standard','ezcontentnavigationpart'), (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') + (3,'media','','Media','ezmedianavigationpart'); -- ibexa:sql-statement-separator INSERT INTO "ezsite_data" ("name", "value") -VALUES ('ibexa-release','4.6') +VALUES ('ibexa-release','4.6'); -- ibexa:sql-statement-separator INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), @@ -250,7 +250,7 @@ VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); -- ibexa:sql-statement-separator INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), @@ -277,16 +277,16 @@ VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6' ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); -- ibexa:sql-statement-separator INSERT INTO "ezurlalias_ml_incr" ("id") VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) + (34), (35), (36), (37); -- ibexa:sql-statement-separator INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); -- ibexa:sql-statement-separator INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") VALUES (11,28,'','',1), @@ -294,74 +294,74 @@ VALUES (11,28,'','',1), (13,32,'Subtree','/1/2/',3), (13,33,'Subtree','/1/43/',3), (12,34,'','',2), - (13,35,'','',4) + (13,35,'','',4); -- ibexa:sql-statement-separator INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") VALUES (1, 1000, 10), - (1, 10, 14) + (1, 10, 14); -- ibexa:sql-statement-separator INSERT INTO "ezpreferences" ("name", "user_id", "value") -SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; -- ibexa:sql-statement-separator -- Set proper sequence values after inserting data -SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; -- ibexa:sql-statement-separator -SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; -- ibexa:sql-statement-separator -SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; -- ibexa:sql-statement-separator -SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; -- ibexa:sql-statement-separator -SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; -- ibexa:sql-statement-separator -SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; -- ibexa:sql-statement-separator -SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; -- ibexa:sql-statement-separator -SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; -- ibexa:sql-statement-separator -SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; -- ibexa:sql-statement-separator -SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; -- ibexa:sql-statement-separator -SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; -- ibexa:sql-statement-separator -SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql index f06caa6c82..81b1803b4c 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql @@ -1,16 +1,16 @@ INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) + (2, 2, 2, 'locked', 3, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3) +VALUES (2,2,'ez_lock',3); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2) +VALUES (2,'',3,'Lock',2); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') + (2,'',3,'Locked'); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) VALUES (1, 1), @@ -24,10 +24,10 @@ VALUES (1, 1), (42, 1), (49, 1), (50, 1), - (51, 1) + (51, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), @@ -35,7 +35,7 @@ VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d4 (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), @@ -61,7 +61,7 @@ VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title', (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) VALUES (1, 0, 1, 'Content'), @@ -69,7 +69,7 @@ VALUES (1, 0, 1, 'Content'), (3, 0, 2, 'Users'), (4, 0, 2, 'Users'), (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') + (12, 0, 3, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) VALUES (1, 0, 2, 'eng-GB', 'Folder'), @@ -77,12 +77,12 @@ VALUES (1, 0, 2, 'eng-GB', 'Folder'), (3, 0, 3, 'eng-GB', 'User group'), (4, 0, 3, 'eng-GB', 'User'), (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') + (12, 0, 3, 'eng-GB', 'File'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') + (1032009743, 14, 3, 1033922120, 14, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), @@ -96,7 +96,7 @@ VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e451 (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); -- ibexa:sql-statement-separator 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), @@ -138,7 +138,7 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3) + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), @@ -152,7 +152,7 @@ VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), ('eng-GB',1,42,3,'Anonymous users','eng-GB'), ('eng-GB',1,49,3,'Images','eng-GB'), ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') + ('eng-GB',1,51,3,'Multimedia','eng-GB'); -- ibexa:sql-statement-separator 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), @@ -167,7 +167,7 @@ VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96 (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) VALUES (4,0,14,4,2,3,0,1,0,1,1), @@ -181,7 +181,7 @@ VALUES (4,0,14,4,2,3,0,1,0,1,1), (50,1080220211,14,489,2,3,1080220220,1,0,1,0), (51,1080220225,14,490,2,3,1080220233,1,0,1,0), (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); -- ibexa:sql-statement-separator 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), @@ -195,7 +195,7 @@ VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), (49,1,0,27,1,2,43,'','0',9,1,0,0), (50,1,0,28,1,2,43,'','0',9,1,0,0), (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) + (14,3,-1,38,1,2,13,'','0',1,1,0,0); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) VALUES ('*',317,'content',0,3), @@ -205,7 +205,7 @@ VALUES ('*',317,'content',0,3), ('*',332,'*',0,2), ('read',333,'content',0,4), ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) + ('*',340,'url',0,3); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) VALUES (251,'Section',328), @@ -213,7 +213,7 @@ VALUES (251,'Section',328), (253,'SiteAccess',331), (254,'Class',333), (255,'Owner',333), - (256,'Class',334) + (256,'Class',334); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) VALUES (477,251,'1'), @@ -222,21 +222,21 @@ VALUES (477,251,'1'), (480,254,'4'), (481,255,'1'), (482,256,'5'), - (483,256,'12') + (483,256,'12'); -- ibexa:sql-statement-separator INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) VALUES (1,0,'Anonymous','',0), (2,0,'Administrator','0',0), (3,0,'Editor','',0), - (4,0,'Member','',0) + (4,0,'Member','',0); -- ibexa:sql-statement-separator INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) VALUES (1,'standard','','Standard','ezcontentnavigationpart'), (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') + (3,'media','','Media','ezmedianavigationpart'); -- ibexa:sql-statement-separator INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6') +VALUES ('ibexa-release','4.6'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), @@ -250,7 +250,7 @@ VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), @@ -277,16 +277,16 @@ VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6' ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml_incr` (`id`) VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) + (34), (35), (36), (37); -- ibexa:sql-statement-separator INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); -- ibexa:sql-statement-separator INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) VALUES (11,28,'','',1), @@ -294,11 +294,11 @@ VALUES (11,28,'','',1), (13,32,'Subtree','/1/2/',3), (13,33,'Subtree','/1/43/',3), (12,34,'','',2), - (13,35,'','',4) + (13,35,'','',4); -- ibexa:sql-statement-separator INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) VALUES (1,1000,10), - (1,10,14) + (1,10,14); -- ibexa:sql-statement-separator INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql index 3004bc86f7..ce1affe2b3 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id INT AUTO_INCREMENT NOT NULL, @@ -19,7 +19,7 @@ CREATE TABLE ezcobj_state ( INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id INT AUTO_INCREMENT NOT NULL, @@ -29,7 +29,7 @@ CREATE TABLE ezcobj_state_group ( INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INT DEFAULT 0 NOT NULL, @@ -38,7 +38,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INT DEFAULT 0 NOT NULL, @@ -46,13 +46,13 @@ CREATE TABLE ezcobj_state_language ( description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -61,7 +61,7 @@ CREATE TABLE ezcontent_language ( name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -72,7 +72,7 @@ CREATE TABLE ezuser ( password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id INT AUTO_INCREMENT NOT NULL, @@ -100,7 +100,7 @@ CREATE TABLE ezcontentobject_tree ( INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id INT AUTO_INCREMENT NOT NULL, @@ -111,7 +111,7 @@ CREATE TABLE ezcontentbrowsebookmark ( INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id INT AUTO_INCREMENT NOT NULL, @@ -135,7 +135,7 @@ CREATE TABLE ezcontentclass ( INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -169,7 +169,7 @@ CREATE TABLE ezcontentclass_attribute ( INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INT NOT NULL, @@ -181,7 +181,7 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -189,7 +189,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -198,7 +198,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id INT AUTO_INCREMENT NOT NULL, @@ -209,7 +209,7 @@ CREATE TABLE ezcontentclassgroup ( name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id INT AUTO_INCREMENT NOT NULL, @@ -234,7 +234,7 @@ CREATE TABLE ezcontentobject ( INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -257,7 +257,7 @@ CREATE TABLE ezcontentobject_attribute ( INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id INT AUTO_INCREMENT NOT NULL, @@ -270,7 +270,7 @@ CREATE TABLE ezcontentobject_link ( INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -283,7 +283,7 @@ CREATE TABLE ezcontentobject_name ( INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INT DEFAULT 0 NOT NULL, @@ -309,7 +309,7 @@ CREATE TABLE ezcontentobject_trash ( INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id INT AUTO_INCREMENT NOT NULL, @@ -328,7 +328,7 @@ CREATE TABLE ezcontentobject_version ( INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -345,7 +345,7 @@ CREATE TABLE ezdfsfile ( INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -355,7 +355,7 @@ CREATE TABLE ezgmaplocation ( address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id INT AUTO_INCREMENT NOT NULL, @@ -364,7 +364,7 @@ CREATE TABLE ezimagefile ( INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id INT AUTO_INCREMENT NOT NULL, @@ -372,7 +372,7 @@ CREATE TABLE ezkeyword ( keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id INT AUTO_INCREMENT NOT NULL, @@ -383,7 +383,7 @@ CREATE TABLE ezkeyword_attribute_link ( INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -400,7 +400,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id INT AUTO_INCREMENT NOT NULL, @@ -421,7 +421,7 @@ CREATE TABLE eznode_assignment ( INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id INT AUTO_INCREMENT NOT NULL, @@ -433,7 +433,7 @@ CREATE TABLE eznotification ( INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id INT AUTO_INCREMENT NOT NULL, @@ -441,7 +441,7 @@ CREATE TABLE ezpackage ( name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id INT AUTO_INCREMENT NOT NULL, @@ -452,7 +452,7 @@ CREATE TABLE ezpolicy ( INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id INT AUTO_INCREMENT NOT NULL, @@ -460,7 +460,7 @@ CREATE TABLE ezpolicy_limitation ( policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id INT AUTO_INCREMENT NOT NULL, @@ -469,7 +469,7 @@ CREATE TABLE ezpolicy_limitation_value ( INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id INT AUTO_INCREMENT NOT NULL, @@ -479,7 +479,7 @@ CREATE TABLE ezpreferences ( INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id INT AUTO_INCREMENT NOT NULL, @@ -488,7 +488,7 @@ CREATE TABLE ezrole ( value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id INT AUTO_INCREMENT NOT NULL, @@ -511,7 +511,7 @@ CREATE TABLE ezsearch_object_word_link ( INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id INT AUTO_INCREMENT NOT NULL, @@ -520,7 +520,7 @@ CREATE TABLE ezsearch_word ( INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id INT AUTO_INCREMENT NOT NULL, @@ -529,13 +529,13 @@ CREATE TABLE ezsection ( name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id INT AUTO_INCREMENT NOT NULL, @@ -547,7 +547,7 @@ CREATE TABLE ezurl ( url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -557,7 +557,7 @@ CREATE TABLE ezurl_object_link ( INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id INT AUTO_INCREMENT NOT NULL, @@ -575,7 +575,7 @@ CREATE TABLE ezurlalias ( INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INT DEFAULT 0 NOT NULL, @@ -598,12 +598,12 @@ CREATE TABLE ezurlalias_ml ( INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id INT AUTO_INCREMENT NOT NULL, @@ -611,7 +611,7 @@ CREATE TABLE ezurlwildcard ( source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id INT AUTO_INCREMENT NOT NULL, @@ -620,7 +620,7 @@ CREATE TABLE ezuser_accountkey ( user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id INT AUTO_INCREMENT NOT NULL, @@ -631,14 +631,14 @@ CREATE TABLE ezuser_role ( INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id INT AUTO_INCREMENT NOT NULL, @@ -648,14 +648,14 @@ CREATE TABLE ibexa_setting ( INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id INT AUTO_INCREMENT NOT NULL, @@ -668,12 +668,12 @@ CREATE TABLE ibexa_token ( INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql index f659882f0f..eef2fa53ac 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id SERIAL NOT NULL, @@ -16,13 +16,13 @@ CREATE TABLE ezcobj_state ( language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id SERIAL NOT NULL, @@ -30,11 +30,11 @@ CREATE TABLE ezcobj_state_group ( identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INT DEFAULT 0 NOT NULL, @@ -43,7 +43,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INT DEFAULT 0 NOT NULL, @@ -51,13 +51,13 @@ CREATE TABLE ezcobj_state_language ( description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -65,9 +65,9 @@ CREATE TABLE ezcontent_language ( locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -77,9 +77,9 @@ CREATE TABLE ezuser ( password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id) -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id SERIAL NOT NULL, @@ -99,23 +99,23 @@ CREATE TABLE ezcontentobject_tree ( sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); -- ibexa:sql-statement-separator -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id SERIAL NOT NULL, @@ -123,13 +123,13 @@ CREATE TABLE ezcontentbrowsebookmark ( user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id SERIAL NOT NULL, @@ -151,11 +151,11 @@ CREATE TABLE ezcontentclass ( sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id SERIAL NOT NULL, @@ -187,11 +187,11 @@ CREATE TABLE ezcontentclass_attribute ( serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INT NOT NULL, @@ -202,9 +202,9 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -212,7 +212,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -221,7 +221,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id SERIAL NOT NULL, @@ -232,7 +232,7 @@ CREATE TABLE ezcontentclassgroup ( name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id SERIAL NOT NULL, @@ -249,23 +249,23 @@ CREATE TABLE ezcontentobject ( status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id SERIAL NOT NULL, @@ -282,19 +282,19 @@ CREATE TABLE ezcontentobject_attribute ( sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id SERIAL NOT NULL, @@ -304,13 +304,13 @@ CREATE TABLE ezcontentobject_link ( relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -320,13 +320,13 @@ CREATE TABLE ezcontentobject_name ( name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INT DEFAULT 0 NOT NULL, @@ -346,19 +346,19 @@ CREATE TABLE ezcontentobject_trash ( sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id SERIAL NOT NULL, @@ -373,15 +373,15 @@ CREATE TABLE ezcontentobject_version ( version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); -- ibexa:sql-statement-separator -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -394,15 +394,15 @@ CREATE TABLE ezdfsfile ( expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -411,29 +411,29 @@ CREATE TABLE ezgmaplocation ( longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id SERIAL NOT NULL, @@ -441,13 +441,13 @@ CREATE TABLE ezkeyword_attribute_link ( objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -464,7 +464,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id SERIAL NOT NULL, @@ -481,15 +481,15 @@ CREATE TABLE eznode_assignment ( priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id SERIAL NOT NULL, @@ -499,11 +499,11 @@ CREATE TABLE eznotification ( created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner ON eznotification (owner_id) +CREATE INDEX eznotification_owner ON eznotification (owner_id); -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id SERIAL NOT NULL, @@ -511,7 +511,7 @@ CREATE TABLE ezpackage ( name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id SERIAL NOT NULL, @@ -520,31 +520,31 @@ CREATE TABLE ezpolicy ( original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id SERIAL NOT NULL, @@ -552,11 +552,11 @@ CREATE TABLE ezpreferences ( user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_name ON ezpreferences (name) +CREATE INDEX ezpreferences_name ON ezpreferences (name); -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id SERIAL NOT NULL, @@ -565,7 +565,7 @@ CREATE TABLE ezrole ( value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id SERIAL NOT NULL, @@ -583,28 +583,28 @@ CREATE TABLE ezsearch_object_word_link ( word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id SERIAL NOT NULL, @@ -613,13 +613,13 @@ CREATE TABLE ezsection ( name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id SERIAL NOT NULL, @@ -630,23 +630,23 @@ CREATE TABLE ezurl ( original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_url ON ezurl (url) +CREATE INDEX ezurl_url ON ezurl (url); -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id SERIAL NOT NULL, @@ -658,19 +658,19 @@ CREATE TABLE ezurlalias ( source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INT DEFAULT 0 NOT NULL, @@ -685,28 +685,28 @@ CREATE TABLE ezurlalias_ml ( link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent) +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original) +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id SERIAL NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id SERIAL NOT NULL, @@ -714,7 +714,7 @@ CREATE TABLE ezurlwildcard ( source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id SERIAL NOT NULL, @@ -722,9 +722,9 @@ CREATE TABLE ezuser_accountkey ( time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id SERIAL NOT NULL, @@ -733,18 +733,18 @@ CREATE TABLE ezuser_role ( limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id SERIAL NOT NULL, @@ -752,19 +752,19 @@ CREATE TABLE ibexa_setting ( identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id SERIAL NOT NULL, @@ -775,16 +775,16 @@ CREATE TABLE ibexa_token ( expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 89d8450fe5..38c87c1365 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -15,24 +15,24 @@ CREATE TABLE ezcobj_state ( identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, @@ -41,7 +41,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INTEGER DEFAULT 0 NOT NULL, @@ -49,13 +49,13 @@ CREATE TABLE ezcobj_state_language ( description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -63,9 +63,9 @@ CREATE TABLE ezcontent_language ( locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INTEGER DEFAULT 0 NOT NULL, @@ -75,9 +75,9 @@ CREATE TABLE ezuser ( password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id) -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -96,23 +96,23 @@ CREATE TABLE ezcontentobject_tree ( remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1 -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); -- ibexa:sql-statement-separator -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -121,13 +121,13 @@ CREATE TABLE ezcontentbrowsebookmark ( name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -148,11 +148,11 @@ CREATE TABLE ezcontentclass ( sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -183,11 +183,11 @@ CREATE TABLE ezcontentclass_attribute ( serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INTEGER NOT NULL, @@ -199,9 +199,9 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INTEGER DEFAULT 0 NOT NULL, @@ -209,7 +209,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INTEGER DEFAULT 0 NOT NULL, @@ -218,7 +218,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -228,7 +228,7 @@ CREATE TABLE ezcontentclassgroup ( modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -244,23 +244,23 @@ CREATE TABLE ezcontentobject ( section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -276,19 +276,19 @@ CREATE TABLE ezcontentobject_attribute ( language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -297,13 +297,13 @@ CREATE TABLE ezcontentobject_link ( from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INTEGER DEFAULT 0 NOT NULL, @@ -313,13 +313,13 @@ CREATE TABLE ezcontentobject_name ( name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INTEGER DEFAULT 0 NOT NULL, @@ -339,19 +339,19 @@ CREATE TABLE ezcontentobject_trash ( sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -365,15 +365,15 @@ CREATE TABLE ezcontentobject_version ( user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0 -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); -- ibexa:sql-statement-separator -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -386,15 +386,15 @@ CREATE TABLE ezdfsfile ( expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, @@ -403,40 +403,40 @@ CREATE TABLE ezgmaplocation ( longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, @@ -453,7 +453,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -469,15 +469,15 @@ CREATE TABLE eznode_assignment ( sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -486,18 +486,18 @@ CREATE TABLE eznotification ( type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner ON eznotification (owner_id) +CREATE INDEX eznotification_owner ON eznotification (owner_id); -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -505,40 +505,40 @@ CREATE TABLE ezpolicy ( module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_name ON ezpreferences (name) +CREATE INDEX ezpreferences_name ON ezpreferences (name); -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -546,7 +546,7 @@ CREATE TABLE ezrole ( name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0 -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -563,27 +563,27 @@ CREATE TABLE ezsearch_object_word_link ( section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -591,13 +591,13 @@ CREATE TABLE ezsection ( locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -607,23 +607,23 @@ CREATE TABLE ezurl ( modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_url ON ezurl (url) +CREATE INDEX ezurl_url ON ezurl (url); -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -634,19 +634,19 @@ CREATE TABLE ezurlalias ( is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INTEGER DEFAULT 0 NOT NULL, @@ -661,43 +661,43 @@ CREATE TABLE ezurlalias_ml ( link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent) +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original) +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -705,36 +705,36 @@ CREATE TABLE ezuser_role ( limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -745,8 +745,8 @@ CREATE TABLE ibexa_token ( expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE -) +); -- ibexa:sql-statement-separator -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); From cd4e979118fba10084c05fa069f358bc6984c3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 23 Jul 2026 17:25:35 +0200 Subject: [PATCH 08/88] IBX-11939: Added schema/data-presence guards for legacy-install migrations Guards ibexa/core's InstallSchemaMigration/ImportDataMigration/ RenameSchemaTo5_0Migration and ibexa/fieldtype-page's RenameSchemaTo5_0Migration so they skip when an existing install already built its schema the old way. ImportDataMigration checks for the absence of its pre-rename input table, since migrations run in a strict, deterministic order -- if it's missing, this system never went through this migration, meaning it built its schema (and bootstrap data) via schema.yaml directly. The two data-value fixes hidden inside the rename migrations (core's ez_lock/ezstring identifier fixes, fieldtype-page's block-ID HTML reference fix) are split into their own always-run migrations (FixLegacyIdentifiersMigration, FixBlockIdReferencesMigration), since a schema-shape guard on the rename would otherwise also skip these on a system whose schema is already renamed but whose row data still holds the old values -- schema.yaml only defines structure, not content. Both run unconditionally right after their corresponding rename (same target version, later creation date), so the tables they touch are always at their final name by then, and each statement is a no-op via its own WHERE clause once already applied. --- .../RepositoryInstaller/Migration/ImportDataMigration.php | 7 +++++++ .../Migration/InstallSchemaMigration.php | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 35dbbc0e1a..6c7b93b0ee 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -35,6 +35,13 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + // This migration inserts into "ezcontentobject" (the pre-rename name) since it runs + // before the 5.0.0 rename. Migrations execute in a strict, deterministic order, so if + // that table is missing here, this system never went through this migration at all -- + // it built its schema (and presumably its own bootstrap data) via schema.yaml directly, + // straight to the final "ibexa_content" naming. + $this->skipIf(!$schema->hasTable('ezcontentobject'), 'Schema already migrated: table "ezcontentobject" no longer exists.'); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); } elseif ($this->isPostgreSQL()) { diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index d4be9886f8..f007673b09 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -35,6 +35,12 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + // Checks the final, post-rename table name (not "ezcontentobject", which this + // migration creates): an install that built its schema via schema.yaml (rather than + // through this migration) never has "ezcontentobject" -- it already has + // "ibexa_content" directly. + $this->skipIf($schema->hasTable('ibexa_content'), 'Schema already migrated: table "ibexa_content" already exists.'); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); } elseif ($this->isPostgreSQL()) { From d80ab8c25a73ab0b52985cd4bc377fc01aebf48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 23 Jul 2026 18:36:14 +0200 Subject: [PATCH 09/88] IBX-11939: Recorded schema-guarded migrations as applied, not skipped Doctrine Migrations only calls MetadataStorage::complete() (the write to doctrine_migration_versions) when a migration's up() returns normally -- never when it throws SkipMigration. So every migration using skipIf() was being silently re-evaluated on every future doctrine:migrations:migrate run instead of being permanently recorded as applied, even though its guard condition (the schema already being in place) never changes back. Replaces every `$this->skipIf($condition, $message);` with `if ($condition) { return; }`: up() now returns normally with zero queued SQL when the guard fires, so the migration is correctly recorded as executed (with a "did not result in any SQL statements" warning logged, which is expected and harmless) and never re-evaluated again. Verified end-to-end: fresh ibexa:install (schema_builder_event enabled) followed by doctrine:migrations:migrate now records all 44 tagged migrations in doctrine_migration_versions in one pass, and a second migrate run does zero work at all ("Already at the latest version"). --- .../RepositoryInstaller/Migration/ImportDataMigration.php | 4 +++- .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 6c7b93b0ee..9f0820199a 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -40,7 +40,9 @@ public function up(Schema $schema): void // that table is missing here, this system never went through this migration at all -- // it built its schema (and presumably its own bootstrap data) via schema.yaml directly, // straight to the final "ibexa_content" naming. - $this->skipIf(!$schema->hasTable('ezcontentobject'), 'Schema already migrated: table "ezcontentobject" no longer exists.'); + if (!$schema->hasTable('ezcontentobject')) { + return; + } if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index f007673b09..b68f8392e2 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -39,7 +39,9 @@ public function up(Schema $schema): void // migration creates): an install that built its schema via schema.yaml (rather than // through this migration) never has "ezcontentobject" -- it already has // "ibexa_content" directly. - $this->skipIf($schema->hasTable('ibexa_content'), 'Schema already migrated: table "ibexa_content" already exists.'); + if ($schema->hasTable('ibexa_content')) { + return; + } if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); From 2793d9f3038336ce7140552a1accb49e786ee567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 23 Jul 2026 19:00:30 +0200 Subject: [PATCH 10/88] IBX-11939: Fixed 4.6 baseline guards to check the branch's own table name Live end-to-end testing (fresh legacy install -> doctrine:migrations:migrate on 4.6) surfaced that these baseline guards checked the FINAL, post-5.0- rename table name (e.g. "ibexa_content") -- correct on 5.0/6.0, but wrong on 4.6, which has no rename at all: there, the table this migration creates already IS the branch's permanent, current name (e.g. "ezcontentobject"), so the guard never fired and the baseline collided with an already-installed legacy 4.6 schema. Checks the branch's own table name instead, exactly like every other baseline guard that has no later rename to worry about. For core's ImportDataMigration specifically, this required a proper data check rather than a schema-shape check: "ezcontentobject" is 4.6's real, permanent name, so it always exists once the baseline has run there, regardless of whether this migration's own bootstrap INSERTs ran yet. Checks for the actual seed row (root content, id = 1) instead, combined with the table's outright absence (the 5.0/6.0 legacy signal) via OR. --- .../Migration/ImportDataMigration.php | 9 ++++++++- .../Migration/InstallSchemaMigration.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 9f0820199a..be7c1565d0 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -40,7 +40,14 @@ public function up(Schema $schema): void // that table is missing here, this system never went through this migration at all -- // it built its schema (and presumably its own bootstrap data) via schema.yaml directly, // straight to the final "ibexa_content" naming. - if (!$schema->hasTable('ezcontentobject')) { + // Two different "already done" signals, since "ezcontentobject" behaves + // differently depending on the branch: on 5.0/6.0 it's renamed away to + // "ibexa_content", so its outright absence means a legacy install already skipped + // straight to that final name. On 4.6 it's the table's real, permanent name (never + // renamed), so it always exists once the baseline has run -- there, only the actual + // bootstrap row (the root content object always has id = 1) distinguishes "not yet + // imported" from "already imported". + if (!$schema->hasTable('ezcontentobject') || $this->connection->fetchOne('SELECT 1 FROM ezcontentobject WHERE id = 1') !== false) { return; } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index b68f8392e2..fc7d0b875a 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -39,7 +39,7 @@ public function up(Schema $schema): void // migration creates): an install that built its schema via schema.yaml (rather than // through this migration) never has "ezcontentobject" -- it already has // "ibexa_content" directly. - if ($schema->hasTable('ibexa_content')) { + if ($schema->hasTable('ezcontentobject')) { return; } From d9a8f61f8438fdb744802796723409bcaeb87ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 24 Jul 2026 10:22:38 +0200 Subject: [PATCH 11/88] IBX-11939: Added a SchemaProvider bridging Doctrine Migrations to SchemaBuilderEvent ibexa:doctrine:migrations:diff (and any other Doctrine Migrations command that needs a target schema) previously failed with 'The schema provider is not available.', since IbexaOnlyDependencyFactory never had an entity manager or SchemaProvider configured. SchemaBuilderEventSchemaProvider bridges Doctrine Migrations' SchemaProvider to Ibexa's own legacy, event-driven schema builder (SchemaBuilderInterface, backed by SchemaBuilderEvent and every installed package's BuildSchemaSubscriber) -- the same mechanism CoreInstaller::importSchema() already uses for the legacy install path. A new compiler pass wires it onto IbexaOnlyDependencyFactory via setService(), a no-op if ibexa/doctrine-schema or ibexa/doctrine-migrations isn't installed. --- ...erSchemaBuilderEventSchemaProviderPass.php | 41 ++++++++++++ .../IbexaRepositoryInstallerBundle.php | 2 + .../SchemaBuilderEventSchemaProvider.php | 34 ++++++++++ .../Resources/config/services.yml | 4 ++ ...hemaBuilderEventSchemaProviderPassTest.php | 63 +++++++++++++++++++ .../SchemaBuilderEventSchemaProviderTest.php | 34 ++++++++++ 6 files changed, 178 insertions(+) create mode 100644 src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php create mode 100644 src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php create mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php new file mode 100644 index 0000000000..47fadc4add --- /dev/null +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php @@ -0,0 +1,41 @@ +hasDefinition(IbexaOnlyDependencyFactory::SERVICE_ID) + || !$container->hasDefinition(SchemaBuilderEventSchemaProvider::class) + ) { + return; + } + + $container->getDefinition(IbexaOnlyDependencyFactory::SERVICE_ID) + ->addMethodCall('setService', [SchemaProvider::class, new Reference(SchemaBuilderEventSchemaProvider::class)]); + } +} diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index 7ad8d89726..89f75d193d 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -7,6 +7,7 @@ namespace Ibexa\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -28,6 +29,7 @@ public function build(ContainerBuilder $container) } parent::build($container); + $container->addCompilerPass(new RegisterSchemaBuilderEventSchemaProviderPass()); } } diff --git a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php new file mode 100644 index 0000000000..4fdf2b637f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php @@ -0,0 +1,34 @@ +schemaBuilder->buildSchema(); + } +} diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 4a96b2cf16..49112174f6 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -29,6 +29,10 @@ services: # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider: + autowire: true + public: false + Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller: abstract: true arguments: ['@ibexa.persistence.connection'] diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php new file mode 100644 index 0000000000..b0270133e3 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php @@ -0,0 +1,63 @@ +setDefinition(IbexaOnlyDependencyFactory::SERVICE_ID, new Definition()); + $container->setDefinition(SchemaBuilderEventSchemaProvider::class, new Definition()); + + (new RegisterSchemaBuilderEventSchemaProviderPass())->process($container); + + $calls = $container->getDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)->getMethodCalls(); + self::assertCount(1, $calls); + self::assertSame('setService', $calls[0][0]); + self::assertSame(SchemaProvider::class, $calls[0][1][0]); + self::assertInstanceOf(Reference::class, $calls[0][1][1]); + self::assertSame(SchemaBuilderEventSchemaProvider::class, (string) $calls[0][1][1]); + } + + public function testIsNoOpWhenIbexaOnlyDependencyFactoryIsNotDefined(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(SchemaBuilderEventSchemaProvider::class, new Definition()); + + (new RegisterSchemaBuilderEventSchemaProviderPass())->process($container); + + $this->addToAssertionCount(1); + } + + public function testIsNoOpWhenSchemaBuilderEventSchemaProviderIsNotDefined(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(IbexaOnlyDependencyFactory::SERVICE_ID, new Definition()); + + (new RegisterSchemaBuilderEventSchemaProviderPass())->process($container); + + self::assertSame( + [], + $container->getDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)->getMethodCalls() + ); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php b/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php new file mode 100644 index 0000000000..b63fcbcd62 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php @@ -0,0 +1,34 @@ +createMock(SchemaBuilderInterface::class); + $schemaBuilder->expects(self::once()) + ->method('buildSchema') + ->willReturn($schema); + + $provider = new SchemaBuilderEventSchemaProvider($schemaBuilder); + + self::assertSame($schema, $provider->createSchema()); + } +} From f24e93de24c61b78820d5d82dba5b443c08c93fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 24 Jul 2026 14:06:17 +0200 Subject: [PATCH 12/88] IBX-11939: Fixed PHP 7.4 compatibility in SchemaBuilderEventSchemaProvider --- .../Migration/SchemaBuilderEventSchemaProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php index 4fdf2b637f..6e4811d1cf 100644 --- a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php +++ b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php @@ -23,8 +23,11 @@ */ final class SchemaBuilderEventSchemaProvider implements SchemaProvider { - public function __construct(private readonly SchemaBuilderInterface $schemaBuilder) + private SchemaBuilderInterface $schemaBuilder; + + public function __construct(SchemaBuilderInterface $schemaBuilder) { + $this->schemaBuilder = $schemaBuilder; } public function createSchema(): Schema From 59f4eb262a3fe46d3829fd5bba3a025d487d303c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Mon, 27 Jul 2026 12:26:30 +0200 Subject: [PATCH 13/88] IBX-11939: Addressed review feedback (arrow-fn style, removed redundant importData() call) - CoreInstaller::getQueriesFromSchemaBuilderEvent() now builds its Query list via an arrow function instead of a static closure, per review suggestion. - CoreInstaller::importData() no longer re-invokes TaggedMigrationsRunner::run() in the migrations-runner branch; importSchema() already runs every tagged migration (including ImportDataMigration) to the latest version, so the second call was a pure no-op with no real caller relying on it standalone. - getDropSqlStatementsForExistingSchema()'s docblock tightened to list, which it always genuinely returns. - TaggedMigrationsRunner's constructor documents why $dependencyFactory is nullable (optional service, wired via "@?..." in services.yml; run() throws a clear exception if called while null). --- .../Installer/CoreInstaller.php | 19 +++++++------------ .../Migration/TaggedMigrationsRunner.php | 6 ++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 6a10a9ecad..1d1667daa3 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -86,9 +86,10 @@ private function getQueriesFromSchemaBuilderEvent(): array $schema->toSql($databasePlatform) ); - return array_map(static function (string $sql): Query { - return new Query($sql); - }, $sqls); + return array_map( + static fn (string $sql): Query => new Query($sql), + $sqls + ); } /** @@ -144,10 +145,8 @@ private function executeQueries(array $queries): void * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), this imports * the DBMS-specific "cleandata.sql" file directly. * - * Otherwise, this also delegates to {@see TaggedMigrationsRunner}, same as {@see importSchema()}. Since - * {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is tagged and run the same way, - * calling the runner here typically executes nothing new (it already ran as part of importSchema()) - - * this call only matters if importData() is invoked on its own. + * Otherwise, this is a no-op: {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is + * tagged and already runs as part of {@see importSchema()}'s call to {@see TaggedMigrationsRunner}. * * @throws \Doctrine\DBAL\DBALException * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException @@ -156,15 +155,11 @@ public function importData() { if ($this->schemaBuilderEventEnabled) { $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); - - return; } - - $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * @return string[] + * @return list */ protected function getDropSqlStatementsForExistingSchema( Schema $newSchema, diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index c77115aa47..e75d48f090 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -41,6 +41,12 @@ final class TaggedMigrationsRunner { private ?DependencyFactory $dependencyFactory; + /** + * @param \Doctrine\Migrations\DependencyFactory|null $dependencyFactory Null when + * "ibexa/doctrine-migrations" isn't installed/enabled ({@see services.yml}'s optional + * "@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only" reference) — + * {@see run()} throws a clear exception rather than allowing a silent no-op in that state. + */ public function __construct(?DependencyFactory $dependencyFactory = null) { $this->dependencyFactory = $dependencyFactory; From 6c01f5a96fb10dfcdcb471827241f247e9c70483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Mon, 27 Jul 2026 17:20:19 +0200 Subject: [PATCH 14/88] IBX-11939: Removed ibexa/doctrine-migrations VCS repository entry ibexa/doctrine-migrations is now published on Packagist (which mirrors all of its branches, not just tags), so the explicit VCS repository pointing composer directly at GitHub is no longer needed to resolve the dev-branch require constraint. --- composer.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/composer.json b/composer.json index 0cbc361e10..3f8079134e 100644 --- a/composer.json +++ b/composer.json @@ -3,12 +3,6 @@ "description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.", "homepage": "https://ibexa.co", "license": "(GPL-2.0-only or proprietary)", - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/ibexa/doctrine-migrations.git" - } - ], "suggest": { "php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required" }, From a32be8d1718e39f1a94eb186a354e8eb903e6811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Tue, 28 Jul 2026 11:33:43 +0200 Subject: [PATCH 15/88] IBX-11939: Made TaggedMigrationsRunner's DependencyFactory dependency mandatory Instead of TaggedMigrationsRunner tolerating a null DependencyFactory at runtime, RemoveTaggedMigrationsRunnerPass now removes its service definition entirely when "ibexa/doctrine-migrations" isn't installed/enabled, and CoreInstaller depends on it as an optional (nullable) service instead, throwing a clear configuration exception if "ibexa.installer.schema_builder_event.enabled" is disabled without it. --- .../RemoveTaggedMigrationsRunnerPass.php | 38 +++++++++++++++++++ .../IbexaRepositoryInstallerBundle.php | 2 + .../Installer/CoreInstaller.php | 16 +++++++- .../Migration/TaggedMigrationsRunner.php | 26 ++++--------- .../Resources/config/services.yml | 11 ++++-- 5 files changed, 69 insertions(+), 24 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php new file mode 100644 index 0000000000..90468208d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php @@ -0,0 +1,38 @@ +hasDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)) { + return; + } + + if ($container->hasDefinition(TaggedMigrationsRunner::class)) { + $container->removeDefinition(TaggedMigrationsRunner::class); + } + } +} diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index 89f75d193d..727671450e 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -8,6 +8,7 @@ use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -30,6 +31,7 @@ public function build(ContainerBuilder $container) parent::build($container); $container->addCompilerPass(new RegisterSchemaBuilderEventSchemaProviderPass()); + $container->addCompilerPass(new RemoveTaggedMigrationsRunnerPass()); } } diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 1d1667daa3..84abcca803 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -13,7 +13,9 @@ use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\Query\Query; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; +use RuntimeException; use Symfony\Component\Console\Helper\ProgressBar; /** @@ -26,13 +28,13 @@ class CoreInstaller extends DbBasedInstaller implements Installer private bool $schemaBuilderEventEnabled; - private TaggedMigrationsRunner $taggedMigrationsRunner; + private ?TaggedMigrationsRunner $taggedMigrationsRunner; public function __construct( Connection $db, SchemaBuilderInterface $schemaBuilder, bool $schemaBuilderEventEnabled, - TaggedMigrationsRunner $taggedMigrationsRunner + ?TaggedMigrationsRunner $taggedMigrationsRunner = null ) { parent::__construct($db); @@ -54,6 +56,8 @@ public function __construct( * package's) via the application's Doctrine Migrations DependencyFactory. * * @throws \Doctrine\DBAL\DBALException + * @throws \RuntimeException if "ibexa.installer.schema_builder_event.enabled" is disabled but + * "ibexa/doctrine-migrations" isn't installed/enabled to run the migrations-based path instead */ public function importSchema() { @@ -63,6 +67,14 @@ public function importSchema() return; } + if ($this->taggedMigrationsRunner === null) { + throw new RuntimeException( + 'Disabling "ibexa.installer.schema_builder_event.enabled" requires the "' . + IbexaOnlyDependencyFactory::SERVICE_ID . '" service (provided by "ibexa/doctrine-migrations", ' . + 'with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle registered) to be available.' + ); + } + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index e75d48f090..4731a0a49c 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -16,7 +16,6 @@ use Doctrine\Migrations\Metadata\Storage\MetadataStorage; use Doctrine\Migrations\Version\ExecutionResult; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; -use RuntimeException; /** * Runs every not-yet-executed migration tagged with @@ -36,37 +35,26 @@ * Doctrine Migrations' Migrator/Executor/AliasResolver classes are marked `@internal`. Only the * DependencyFactory's public accessors ({@see DependencyFactory::getMigrationPlanCalculator()}, * {@see DependencyFactory::getMetadataStorage()}, {@see DependencyFactory::getConnection()}) are used. + * + * This service isn't registered at all when "ibexa/doctrine-migrations" isn't installed/enabled + * ({@see \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass} + * removes its definition), so callers should depend on it as an optional (nullable) service rather + * than expecting this class itself to handle that unavailability. */ final class TaggedMigrationsRunner { - private ?DependencyFactory $dependencyFactory; + private DependencyFactory $dependencyFactory; - /** - * @param \Doctrine\Migrations\DependencyFactory|null $dependencyFactory Null when - * "ibexa/doctrine-migrations" isn't installed/enabled ({@see services.yml}'s optional - * "@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only" reference) — - * {@see run()} throws a clear exception rather than allowing a silent no-op in that state. - */ - public function __construct(?DependencyFactory $dependencyFactory = null) + public function __construct(DependencyFactory $dependencyFactory) { $this->dependencyFactory = $dependencyFactory; } /** * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run - * - * @throws \RuntimeException if the "{@see IbexaOnlyDependencyFactory::SERVICE_ID}" service isn't available */ public function run(): array { - if ($this->dependencyFactory === null) { - throw new RuntimeException( - 'Running tagged Doctrine migrations requires the "' . IbexaOnlyDependencyFactory::SERVICE_ID . '" ' . - 'service (provided by doctrine/migrations-bundle, with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle ' . - 'registered) to be available.' - ); - } - $metadataStorage = $this->dependencyFactory->getMetadataStorage(); // Mirrors what the "doctrine:migrations:migrate" console command does before migrating. $metadataStorage->ensureInitialized(); diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 49112174f6..ec4edc480e 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -24,10 +24,11 @@ services: Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: public: false arguments: - # Optional: only resolves to a service if doctrine/migrations-bundle is installed and - # configured. Not defined here, since it belongs to that package, not this one. + # Mandatory: this whole service definition is removed by RemoveTaggedMigrationsRunnerPass + # when unavailable, so compilation never attempts to resolve this reference in that case. + # Not defined here, since it belongs to that package, not this one. # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID - $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + $dependencyFactory: '@ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider: autowire: true @@ -43,6 +44,10 @@ services: parent: Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller arguments: $schemaBuilderEventEnabled: '%ibexa.installer.schema_builder_event.enabled%' + # Optional: TaggedMigrationsRunner's own service definition may not exist at all + # (RemoveTaggedMigrationsRunnerPass removes it when "ibexa/doctrine-migrations" isn't + # installed/enabled) - autowiring alone can't express "pass null if absent". + $taggedMigrationsRunner: '@?Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner' tags: - { name: ibexa.installer, type: ibexa-oss } From ba37dc1704ab51ba55417795234695ceea3a1e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Tue, 28 Jul 2026 11:34:15 +0200 Subject: [PATCH 16/88] IBX-11939: Enforced list return from getQueriesFromSchemaBuilderEvent() Passing an empty array as array_map()'s third argument re-indexes its result, so PHPStan can type it as list instead of Query[]. --- src/bundle/RepositoryInstaller/Installer/CoreInstaller.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 84abcca803..57253f09b5 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -86,7 +86,7 @@ public function importSchema() * @see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent * @see \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\BuildSchemaSubscriber * - * @return \Doctrine\Migrations\Query\Query[] + * @return list<\Doctrine\Migrations\Query\Query> */ private function getQueriesFromSchemaBuilderEvent(): array { @@ -100,7 +100,8 @@ private function getQueriesFromSchemaBuilderEvent(): array return array_map( static fn (string $sql): Query => new Query($sql), - $sqls + $sqls, + [] ); } From ecdde0c588a80012610a8718fb2cb91b47f9f726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 29 Jul 2026 00:25:15 +0200 Subject: [PATCH 17/88] Added guarded migrations for core content/URL performance indexes Converts installer's upgrade/db/ibexa-4.5.1-to-4.5.2.sql (indexes on ezcontentobject_link, ezcontentclass_attribute, ezurl_object_link, ezcontentobject_attribute) and upgrade/db/ibexa-4.6.20-to-4.6.21.sql (ezurlalias_ml "link" index) into guarded Doctrine migrations, for installs whose schema already predates these indexes. --- .../AddContentPerformanceIndexesMigration.php | 58 +++++++++++++++++++ .../AddUrlAliasMlLinkIndexMigration.php | 57 ++++++++++++++++++ .../add-content-performance-indexes-mysql.sql | 7 +++ ...content-performance-indexes-postgresql.sql | 7 +++ ...add-content-performance-indexes-sqlite.sql | 7 +++ .../sql/add-urlalias-ml-link-index-mysql.sql | 1 + .../add-urlalias-ml-link-index-postgresql.sql | 1 + .../sql/add-urlalias-ml-link-index-sqlite.sql | 1 + .../Resources/config/services.yml | 16 +++++ 9 files changed, 155 insertions(+) create mode 100644 src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php new file mode 100644 index 0000000000..06dba06a53 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php @@ -0,0 +1,58 @@ +abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ($schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { + return; + } + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php new file mode 100644 index 0000000000..7ce1f395a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -0,0 +1,57 @@ +abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ($schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { + return; + } + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql new file mode 100644 index 0000000000..e59a9c8f37 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql @@ -0,0 +1,7 @@ +ALTER TABLE ezcontentobject_link ADD INDEX ezco_link_cca_id (contentclassattribute_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute ADD INDEX ezcontentclass_attr_dts (data_type_string); +-- ibexa:sql-statement-separator +ALTER TABLE ezurl_object_link ADD INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_attribute ADD INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql new file mode 100644 index 0000000000..a506f987c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql @@ -0,0 +1,7 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql new file mode 100644 index 0000000000..a506f987c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql @@ -0,0 +1,7 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql new file mode 100644 index 0000000000..474d0a11dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql @@ -0,0 +1 @@ +ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_link (link); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql new file mode 100644 index 0000000000..34117d2b9c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql new file mode 100644 index 0000000000..34117d2b9c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index ec4edc480e..58f9ff408d 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -13,6 +13,22 @@ services: tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + Ibexa\Bundle\RepositoryInstaller\Migration\AddContentPerformanceIndexesMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: autowire: true public: false From 5ba8807dc70c19c2f50c547a28e4e628689e115e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 29 Jul 2026 09:36:46 +0200 Subject: [PATCH 18/88] Fixed guard crash on installs that never had the pre-rename table $schema->getTable() throws TableDoesNotExist rather than returning null, so a guard that calls it directly (without checking hasTable() first) crashes -- rather than skipping -- on any install that never had the table under this name at all (e.g. a database built directly at the current schema, which never passed through this pre-rename/pre-delta state). Caught via live testing against a real database. Guard now checks hasTable() first. --- .../Migration/AddContentPerformanceIndexesMigration.php | 2 +- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php index 06dba06a53..4665715be8 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php @@ -43,7 +43,7 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - if ($schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { + if (!$schema->hasTable('ezcontentobject_link') || $schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { return; } diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index 7ce1f395a1..0451419d8e 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -42,7 +42,7 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - if ($schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { + if (!$schema->hasTable('ezurlalias_ml') || $schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { return; } From 7d2781fafb50a7a76d4f04cb37f81fca2eb65a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Wed, 29 Jul 2026 10:02:55 +0200 Subject: [PATCH 19/88] Removed pre-4.6-origin AddContentPerformanceIndexesMigration, folded into baseline Same rationale as ibexa/product-catalog: doctrine migrations only exist starting at 4.6, so InstallSchemaMigration's baseline already includes these indexes (originally shipped via installer's upgrade/db/ibexa-4.5.0-to-4.5.1.sql). A standalone migration for pre-4.6 content can never have real work to do on a genuine 4.6+ install. --- .../AddContentPerformanceIndexesMigration.php | 58 ------------------- .../add-content-performance-indexes-mysql.sql | 7 --- ...content-performance-indexes-postgresql.sql | 7 --- ...add-content-performance-indexes-sqlite.sql | 7 --- .../Resources/config/services.yml | 8 --- 5 files changed, 87 deletions(-) delete mode 100644 src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php delete mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql delete mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql delete mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php deleted file mode 100644 index 4665715be8..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php +++ /dev/null @@ -1,58 +0,0 @@ -abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - - if (!$schema->hasTable('ezcontentobject_link') || $schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { - return; - } - - if ($this->isMySQL()) { - $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-mysql.sql'); - } elseif ($this->isPostgreSQL()) { - $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-postgresql.sql'); - } elseif ($this->isSqlite()) { - $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-sqlite.sql'); - } - } -} diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql deleted file mode 100644 index e59a9c8f37..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql +++ /dev/null @@ -1,7 +0,0 @@ -ALTER TABLE ezcontentobject_link ADD INDEX ezco_link_cca_id (contentclassattribute_id); --- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute ADD INDEX ezcontentclass_attr_dts (data_type_string); --- ibexa:sql-statement-separator -ALTER TABLE ezurl_object_link ADD INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version); --- ibexa:sql-statement-separator -ALTER TABLE ezcontentobject_attribute ADD INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql deleted file mode 100644 index a506f987c5..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); --- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql deleted file mode 100644 index a506f987c5..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); --- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 58f9ff408d..b24c5aaf70 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -13,14 +13,6 @@ services: tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - Ibexa\Bundle\RepositoryInstaller\Migration\AddContentPerformanceIndexesMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: autowire: true public: false From 16db7e8d64c6381cec717dc05a18050849a028a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 30 Jul 2026 14:04:24 +0200 Subject: [PATCH 20/88] Fix ibexa/doctrine-migrations constraint to track the 4.6 branch The feat/doctrine-migrations branch it previously required has been merged into and deleted from the primary 4.6 branch upstream, so the old constraint no longer resolves. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3f8079134e..f037eee7b3 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "symfony/validator": "^5.3.0", "symfony/var-dumper": "^5.3.0", "ibexa/doctrine-schema": "~4.6.0@dev", - "ibexa/doctrine-migrations": "dev-feat/doctrine-migrations", + "ibexa/doctrine-migrations": "~4.6.x-dev", "symfony-cmf/routing": "^2.3", "nelmio/cors-bundle": "^2.0", "pagerfanta/pagerfanta": "^2.1", From 16b52266f4db0b499611deaa4411e918cc1b2f24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 30 Jul 2026 14:04:33 +0200 Subject: [PATCH 21/88] Fix TaggedMigrationsRunner passing an empty Schema to every migration $migration->up(new Schema()) gave every migration's hasTable()/ getTable() guard checks an always-empty schema to inspect, regardless of what earlier migrations in the same run (or a prior run) actually created against the real database -- guards written the correct way (checking hasTable() before trusting a table exists) would incorrectly conclude the table is missing and either skip work that still needs doing, or crash outright on getTable() for a table that does exist. Introspect the live database instead, the same way the standalone 'doctrine:migrations:migrate' command already does via DBALSchemaDiffProvider::createFromSchema(). --- .../Migration/TaggedMigrationsRunner.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index 4731a0a49c..198bb88e35 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -10,7 +10,6 @@ use DateTimeImmutable; use Doctrine\DBAL\Connection; -use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\MigrationPlan; use Doctrine\Migrations\Metadata\Storage\MetadataStorage; @@ -92,7 +91,12 @@ private function executeMigration( $executedAt = new DateTimeImmutable(); $migration = $migrationPlan->getMigration(); - $migration->up(new Schema()); + // A freshly-constructed, empty Schema() would make every hasTable()/getTable() guard + // check inside a migration see nothing at all, regardless of what previous migrations + // in this same run (or a prior run) actually created -- introspect the live database + // instead, same as what "doctrine:migrations:migrate" itself does via + // DBALSchemaDiffProvider::createFromSchema(). + $migration->up($connection->getSchemaManager()->createSchema()); $queries = $migration->getSql(); foreach ($queries as $query) { From 69d960f80adcf3b470d115e99cb51d566fb04f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 30 Jul 2026 19:17:02 +0200 Subject: [PATCH 22/88] Move core's own Doctrine Migrations into IbexaCoreBundle InstallSchemaMigration, AddUrlAliasMlLinkIndexMigration, and ImportDataMigration only depend on the persistence connection -- they don't need anything from IbexaRepositoryInstallerBundle (CoreInstaller, BuildSchemaSubscriber), which is scoped to installer-time concerns and additionally requires DoctrineSchemaBundle to boot at all. Declaring them in IbexaCoreBundle instead matches how every other package in this effort declares its own InstallSchemaMigration in its own bundle, and lets any consumer discover core's schema migrations via ibexa:doctrine:migrations:migrate without needing the installer bundle registered -- useful for integration test kernels that don't otherwise need CoreInstaller. --- .../IbexaCoreExtension.php | 2 ++ .../Resources/config/doctrine_migrations.yml | 24 +++++++++++++++++++ .../Resources/config/services.yml | 24 ------------------- 3 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 src/bundle/Core/Resources/config/doctrine_migrations.yml diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index 910c7ba773..450a4df7e6 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -118,6 +118,8 @@ public function load(array $configs, ContainerBuilder $container) // Base services and services overrides $loader->load('services.yml'); + // Doctrine Migrations for core's own schema, alongside the legacy SchemaBuilderEvent path + $loader->load('doctrine_migrations.yml'); // Security services $loader->load('security.yml'); // HTTP Kernel diff --git a/src/bundle/Core/Resources/config/doctrine_migrations.yml b/src/bundle/Core/Resources/config/doctrine_migrations.yml new file mode 100644 index 0000000000..78ab3f7026 --- /dev/null +++ b/src/bundle/Core/Resources/config/doctrine_migrations.yml @@ -0,0 +1,24 @@ +services: + Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index b24c5aaf70..e7e1d58400 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -5,30 +5,6 @@ services: arguments: - '@=service("kernel").locateResource("@IbexaCoreBundle/Resources/config/storage/legacy/schema.yaml")' - Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - - Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - - Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: public: false arguments: From 5b3eae73b178c3557b239cce7f64a6e50acedccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 30 Jul 2026 22:56:54 +0200 Subject: [PATCH 23/88] Fix SQLite-dialect bugs in InstallSchemaMigration/ImportDataMigration SQL install-schema-sqlite.sql and import-data-sqlite.sql were generated from the MySQL source without adapting to SQLite's stricter SQL semantics: - import-data-sqlite.sql used MySQL-style backslash escapes (\" and \n) inside string literals. SQLite (unlike MySQL) does not interpret backslash as an escape character at all, so these were stored as literal two-byte sequences, corrupting PHP-serialized content-type names/descriptions (unserialize() failures) and embedded XML field data (DOMDocument parse failures, e.g. the admin user's own ezimage field). - install-schema-sqlite.sql collapsed the composite primary keys on ezcontentclass, ezcontentclass_attribute and ezcontentobject_attribute (id, version) down to a single-column `id INTEGER PRIMARY KEY AUTOINCREMENT`, dropping the `version` component entirely -- unlike the mysql/postgresql variants, which both correctly declare `PRIMARY KEY(id, version)`. This made SQLite reject the second row (e.g. publishing a content-type draft, which legitimately reuses the same id with a different version/status) as a duplicate primary key. Both only affect the SQLite platform; MySQL and PostgreSQL were already correct. --- .../Migration/sql/import-data-sqlite.sql | 96 +++++++++++-------- .../Migration/sql/install-schema-sqlite.sql | 15 +-- 2 files changed, 66 insertions(+), 45 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql index 81b1803b4c..98a6a7d279 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql @@ -30,38 +30,38 @@ INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) VALUES (1, 0, 1, 'Content'), @@ -116,29 +116,47 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,' +
+','ezrichtext',99,'eng-GB',3,0,'',1), (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,156,41,0,1045487555,' +
+','ezrichtext',105,'eng-GB',3,0,'',1), (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,' +
+','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,' +
+','ezrichtext',145,'eng-GB',3,0,'',1), (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,' +
+','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,' +
+','ezrichtext',150,'eng-GB',3,0,'',1), (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,' +
+','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,' +
+','ezrichtext',155,'eng-GB',3,0,'',1), (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); + (0,180,14,0,0,' + +','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 38c87c1365..899b6cf872 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -130,7 +130,7 @@ CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, @@ -147,7 +147,8 @@ CREATE TABLE ezcontentclass ( serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL + url_alias_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_version ON ezcontentclass (version); @@ -155,7 +156,7 @@ CREATE INDEX ezcontentclass_version ON ezcontentclass (version); CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, @@ -182,7 +183,8 @@ CREATE TABLE ezcontentclass_attribute ( placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, - serialized_name_list CLOB NOT NULL + serialized_name_list CLOB NOT NULL, + PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); @@ -263,7 +265,7 @@ CREATE INDEX ezcontentobject_status ON ezcontentobject (status); CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, @@ -275,7 +277,8 @@ CREATE TABLE ezcontentobject_attribute ( language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); From 5b395f89d6a20bc4bf7798ded25704b1799c0771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Sun, 20 Sep 2026 23:11:31 +0200 Subject: [PATCH 24/88] IBX-11939: Switched the install SQL to utf8mb4 The MySQL install SQL hardcoded "DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci". On MySQL 8 "utf8" is an alias for utf8mb3, so a Doctrine Migrations install produced 3-byte columns while a SchemaBuilderEvent install produced utf8mb4 - the latter reads the configured database_charset/database_collation, which default to utf8mb4 and utf8mb4_unicode_520_ci. The practical effect was that a migrations-based install could not store 4-byte characters (emoji, CJK extensions) at all, and sorted/compared text differently. Verified against a real MySQL 8.0 server: the schema a migrations install produces now matches a SchemaBuilderEvent one. --- .../Migration/sql/install-schema-mysql.sql | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql index ce1affe2b3..91a5884910 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id INT AUTO_INCREMENT NOT NULL, @@ -19,7 +19,7 @@ CREATE TABLE ezcobj_state ( INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id INT AUTO_INCREMENT NOT NULL, @@ -29,7 +29,7 @@ CREATE TABLE ezcobj_state_group ( INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INT DEFAULT 0 NOT NULL, @@ -38,7 +38,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INT DEFAULT 0 NOT NULL, @@ -46,13 +46,13 @@ CREATE TABLE ezcobj_state_language ( description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -61,7 +61,7 @@ CREATE TABLE ezcontent_language ( name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -72,7 +72,7 @@ CREATE TABLE ezuser ( password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id INT AUTO_INCREMENT NOT NULL, @@ -100,7 +100,7 @@ CREATE TABLE ezcontentobject_tree ( INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id INT AUTO_INCREMENT NOT NULL, @@ -111,7 +111,7 @@ CREATE TABLE ezcontentbrowsebookmark ( INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id INT AUTO_INCREMENT NOT NULL, @@ -135,7 +135,7 @@ CREATE TABLE ezcontentclass ( INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -169,7 +169,7 @@ CREATE TABLE ezcontentclass_attribute ( INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INT NOT NULL, @@ -181,7 +181,7 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -189,7 +189,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -198,7 +198,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id INT AUTO_INCREMENT NOT NULL, @@ -209,7 +209,7 @@ CREATE TABLE ezcontentclassgroup ( name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id INT AUTO_INCREMENT NOT NULL, @@ -234,7 +234,7 @@ CREATE TABLE ezcontentobject ( INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -257,7 +257,7 @@ CREATE TABLE ezcontentobject_attribute ( INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id INT AUTO_INCREMENT NOT NULL, @@ -270,7 +270,7 @@ CREATE TABLE ezcontentobject_link ( INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -283,7 +283,7 @@ CREATE TABLE ezcontentobject_name ( INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INT DEFAULT 0 NOT NULL, @@ -309,7 +309,7 @@ CREATE TABLE ezcontentobject_trash ( INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id INT AUTO_INCREMENT NOT NULL, @@ -328,7 +328,7 @@ CREATE TABLE ezcontentobject_version ( INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -345,7 +345,7 @@ CREATE TABLE ezdfsfile ( INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -355,7 +355,7 @@ CREATE TABLE ezgmaplocation ( address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id INT AUTO_INCREMENT NOT NULL, @@ -364,7 +364,7 @@ CREATE TABLE ezimagefile ( INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id INT AUTO_INCREMENT NOT NULL, @@ -372,7 +372,7 @@ CREATE TABLE ezkeyword ( keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id INT AUTO_INCREMENT NOT NULL, @@ -383,7 +383,7 @@ CREATE TABLE ezkeyword_attribute_link ( INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -400,7 +400,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id INT AUTO_INCREMENT NOT NULL, @@ -421,7 +421,7 @@ CREATE TABLE eznode_assignment ( INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id INT AUTO_INCREMENT NOT NULL, @@ -433,7 +433,7 @@ CREATE TABLE eznotification ( INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id INT AUTO_INCREMENT NOT NULL, @@ -441,7 +441,7 @@ CREATE TABLE ezpackage ( name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id INT AUTO_INCREMENT NOT NULL, @@ -452,7 +452,7 @@ CREATE TABLE ezpolicy ( INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id INT AUTO_INCREMENT NOT NULL, @@ -460,7 +460,7 @@ CREATE TABLE ezpolicy_limitation ( policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id INT AUTO_INCREMENT NOT NULL, @@ -469,7 +469,7 @@ CREATE TABLE ezpolicy_limitation_value ( INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id INT AUTO_INCREMENT NOT NULL, @@ -479,7 +479,7 @@ CREATE TABLE ezpreferences ( INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id INT AUTO_INCREMENT NOT NULL, @@ -488,7 +488,7 @@ CREATE TABLE ezrole ( value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id INT AUTO_INCREMENT NOT NULL, @@ -511,7 +511,7 @@ CREATE TABLE ezsearch_object_word_link ( INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id INT AUTO_INCREMENT NOT NULL, @@ -520,7 +520,7 @@ CREATE TABLE ezsearch_word ( INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id INT AUTO_INCREMENT NOT NULL, @@ -529,13 +529,13 @@ CREATE TABLE ezsection ( name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id INT AUTO_INCREMENT NOT NULL, @@ -547,7 +547,7 @@ CREATE TABLE ezurl ( url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -557,7 +557,7 @@ CREATE TABLE ezurl_object_link ( INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id INT AUTO_INCREMENT NOT NULL, @@ -575,7 +575,7 @@ CREATE TABLE ezurlalias ( INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INT DEFAULT 0 NOT NULL, @@ -598,12 +598,12 @@ CREATE TABLE ezurlalias_ml ( INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id INT AUTO_INCREMENT NOT NULL, @@ -611,7 +611,7 @@ CREATE TABLE ezurlwildcard ( source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id INT AUTO_INCREMENT NOT NULL, @@ -620,7 +620,7 @@ CREATE TABLE ezuser_accountkey ( user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id INT AUTO_INCREMENT NOT NULL, @@ -631,14 +631,14 @@ CREATE TABLE ezuser_role ( INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id INT AUTO_INCREMENT NOT NULL, @@ -648,14 +648,14 @@ CREATE TABLE ibexa_setting ( INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id INT AUTO_INCREMENT NOT NULL, @@ -668,7 +668,7 @@ CREATE TABLE ibexa_token ( INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator From 9c53e7c6c68ce89df259ebc887c55d73845630dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Sat, 19 Sep 2026 13:20:17 +0200 Subject: [PATCH 25/88] IBX-11939: Added a Bootstrapper hook installing the schema via Doctrine Migrations DatabaseSchemaHook builds an integration suite's database from the SchemaBuilderEvent path. This adds its counterpart for the other path: DoctrineMigrationsSchemaHook runs every Ibexa-tagged Doctrine migration through TaggedMigrationsRunner - the same service CoreInstaller uses - so a suite can be booted either way and the two results compared. Disabled by default, unlike every other hook: enabling it by default would stack a second schema install on top of DatabaseSchemaHook's in every existing suite. Registered only in the "test" environment, and removed alongside TaggedMigrationsRunner when ibexa/doctrine-migrations isn't installed. --- .../DoctrineMigrationsSchemaHook.php | 88 +++++++++++++++++++ .../RemoveTaggedMigrationsRunnerPass.php | 19 +++- .../IbexaRepositoryInstallerExtension.php | 16 ++++ .../Resources/config/bootstrapper.yml | 14 +++ .../DoctrineMigrationsSchemaHookTest.php | 88 +++++++++++++++++++ .../RemoveTaggedMigrationsRunnerPassTest.php | 67 ++++++++++++++ .../IbexaInstallerExtensionTest.php | 37 ++++++++ 7 files changed, 326 insertions(+), 3 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php create mode 100644 src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml create mode 100644 tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php create mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php diff --git a/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php new file mode 100644 index 0000000000..78778c2abb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php @@ -0,0 +1,88 @@ +bootstrap(null, [ + * DatabaseSchemaHook::class => [DatabaseSchemaHook::OPTION_LOAD_SCHEMA => false], + * DoctrineMigrationsSchemaHook::class => [DoctrineMigrationsSchemaHook::OPTION_INSTALL_SCHEMA => true], + * ]); + * ``` + * + * Registered only in the "test" environment, and removed from the container along with + * {@see TaggedMigrationsRunner} itself when "ibexa/doctrine-migrations" isn't installed/enabled, by + * {@see \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass}. + */ +final class DoctrineMigrationsSchemaHook implements HookInterface +{ + /** + * Fixed tag priority this hook is registered at — after ibexa/test-core's + * {@see DatabaseSchemaHook} (1000), before its {@see FixtureHook} (900). + * + * Ordering against DatabaseSchemaHook only matters when both are enabled, which is a + * misconfiguration; running second makes that misconfiguration fail at a predictable point + * ("table already exists" out of the migrations) rather than in whichever order the tag + * collection happened to produce. + */ + public const PRIORITY = 990; + + public const OPTION_INSTALL_SCHEMA = 'install_schema'; + + private TaggedMigrationsRunner $taggedMigrationsRunner; + + public function __construct(TaggedMigrationsRunner $taggedMigrationsRunner) + { + $this->taggedMigrationsRunner = $taggedMigrationsRunner; + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->define(self::OPTION_INSTALL_SCHEMA) + ->default(false) + ->allowedTypes('bool'); + } + + public function __invoke(array $options): void + { + if (!$options[self::OPTION_INSTALL_SCHEMA]) { + return; + } + + // Executions stay recorded in the Doctrine Migrations versioning table on purpose - that + // is what a real install leaves behind, and it is what makes a second run (a test calling + // the installer itself, say) correctly skip instead of re-applying. Contrast with + // ibexa/migrations' MigrationHook, which resets its own bookkeeping because its migrations + // are test fixtures rather than part of the installed state. + $this->taggedMigrationsRunner->run(); + } +} diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php index 90468208d3..19b5e7ebc2 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php @@ -8,13 +8,15 @@ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; +use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; /** - * Removes the {@see TaggedMigrationsRunner} service definition when + * Removes the {@see TaggedMigrationsRunner} service definition - and + * {@see DoctrineMigrationsSchemaHook}, which cannot be built without it - when * {@see IbexaOnlyDependencyFactory::SERVICE_ID} isn't available - i.e. "ibexa/doctrine-migrations" * isn't installed/enabled - since {@see TaggedMigrationsRunner} requires a real * {@see \Doctrine\Migrations\DependencyFactory} and can no longer be built with none available. @@ -25,14 +27,25 @@ */ final class RemoveTaggedMigrationsRunnerPass implements CompilerPassInterface { + /** + * @var list definitions that cannot survive without a real DependencyFactory, in + * dependent-first order + */ + private const DEFINITIONS = [ + DoctrineMigrationsSchemaHook::class, + TaggedMigrationsRunner::class, + ]; + public function process(ContainerBuilder $container): void { if ($container->hasDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)) { return; } - if ($container->hasDefinition(TaggedMigrationsRunner::class)) { - $container->removeDefinition(TaggedMigrationsRunner::class); + foreach (self::DEFINITIONS as $id) { + if ($container->hasDefinition($id)) { + $container->removeDefinition($id); + } } } } diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php index 87f8cfd728..40b9bb9cab 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php @@ -6,6 +6,7 @@ */ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection; +use Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader; @@ -17,6 +18,21 @@ public function load(array $configs, ContainerBuilder $container) { $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('services.yml'); + + if ($this->shouldRegisterBootstrapperHook($container)) { + $loader->load('bootstrapper.yml'); + } + } + + /** + * "ibexa/test-core" is a dev dependency, so its HookInterface is absent from a production + * install - and even where it is present, integration-test bootstrap services have no business + * being built outside the "test" environment. + */ + private function shouldRegisterBootstrapperHook(ContainerBuilder $container): bool + { + return 'test' === $container->getParameter('kernel.environment') + && interface_exists(HookInterface::class); } } diff --git a/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml b/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml new file mode 100644 index 0000000000..b8d5c626fa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml @@ -0,0 +1,14 @@ +# Integration-test bootstrap hooks (see ibexa/test-core's Bootstrapper). Loaded only in the "test" +# environment, and only when ibexa/test-core is actually installed - see +# IbexaRepositoryInstallerExtension::shouldRegisterBootstrapperHook(). +services: + Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook: + public: false + arguments: + # Mandatory: both this definition and TaggedMigrationsRunner's own are removed by + # RemoveTaggedMigrationsRunnerPass when "ibexa/doctrine-migrations" isn't + # installed/enabled, so compilation never attempts to resolve this reference then. + $taggedMigrationsRunner: '@Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner' + tags: + - name: !php/const Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface::TAG + priority: !php/const Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook::PRIORITY diff --git a/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php new file mode 100644 index 0000000000..5fc2bffdcd --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php @@ -0,0 +1,88 @@ +createRunner($this->createMock(MetadataStorage::class)) + ); + + self::assertFalse($this->resolve($hook, [])[DoctrineMigrationsSchemaHook::OPTION_INSTALL_SCHEMA]); + } + + public function testRunsTaggedMigrationsWhenEnabled(): void + { + $metadataStorage = $this->createMock(MetadataStorage::class); + $metadataStorage->expects(self::once())->method('ensureInitialized'); + + $hook = new DoctrineMigrationsSchemaHook($this->createRunner($metadataStorage)); + + $hook($this->resolve($hook, [DoctrineMigrationsSchemaHook::OPTION_INSTALL_SCHEMA => true])); + } + + public function testDoesNotRunTaggedMigrationsWhenLeftAtItsDefault(): void + { + $metadataStorage = $this->createMock(MetadataStorage::class); + $metadataStorage->expects(self::never())->method('ensureInitialized'); + + $hook = new DoctrineMigrationsSchemaHook($this->createRunner($metadataStorage)); + + $hook($this->resolve($hook, [])); + } + + /** + * @param \Doctrine\Migrations\Metadata\Storage\MetadataStorage&\PHPUnit\Framework\MockObject\MockObject $metadataStorage + */ + private function createRunner(MockObject $metadataStorage): TaggedMigrationsRunner + { + // An empty migration list makes run() stop right after ensureInitialized(), so no + // connection, executor or plan is needed to tell "ran" from "didn't run" apart. + $planCalculator = $this->createStub(MigrationPlanCalculator::class); + $planCalculator->method('getMigrations')->willReturn(new AvailableMigrationsList([])); + + $dependencyFactory = $this->createStub(DependencyFactory::class); + $dependencyFactory->method('getMetadataStorage')->willReturn($metadataStorage); + $dependencyFactory->method('getMigrationPlanCalculator')->willReturn($planCalculator); + + return new TaggedMigrationsRunner($dependencyFactory); + } + + /** + * @param array $options + * + * @return array + */ + private function resolve(DoctrineMigrationsSchemaHook $hook, array $options): array + { + $resolver = new OptionsResolver(); + $hook->configureOptions($resolver); + + return $resolver->resolve($options); + } +} diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php new file mode 100644 index 0000000000..4a7594bca6 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php @@ -0,0 +1,67 @@ +createContainer(); + + (new RemoveTaggedMigrationsRunnerPass())->process($container); + + self::assertFalse($container->hasDefinition(TaggedMigrationsRunner::class)); + self::assertFalse($container->hasDefinition(DoctrineMigrationsSchemaHook::class)); + } + + public function testKeepsRunnerAndItsDependentsWhenDependencyFactoryIsDefined(): void + { + $container = $this->createContainer(); + $container->setDefinition(IbexaOnlyDependencyFactory::SERVICE_ID, new Definition()); + + (new RemoveTaggedMigrationsRunnerPass())->process($container); + + self::assertTrue($container->hasDefinition(TaggedMigrationsRunner::class)); + self::assertTrue($container->hasDefinition(DoctrineMigrationsSchemaHook::class)); + } + + /** + * The hook is only registered in the "test" environment, so the runner routinely has to be + * removed with no hook definition alongside it. + */ + public function testRemovesTheRunnerWhenTheHookIsNotRegisteredAtAll(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(TaggedMigrationsRunner::class, new Definition()); + + (new RemoveTaggedMigrationsRunnerPass())->process($container); + + self::assertFalse($container->hasDefinition(TaggedMigrationsRunner::class)); + } + + private function createContainer(): ContainerBuilder + { + $container = new ContainerBuilder(); + $container->setDefinition(TaggedMigrationsRunner::class, new Definition()); + $container->setDefinition(DoctrineMigrationsSchemaHook::class, new Definition()); + + return $container; + } +} diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index ef93b0dbf8..9a8084eb14 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -8,10 +8,12 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection; +use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension; use Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller; use Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller; +use Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface; use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase; /** @@ -48,6 +50,41 @@ public function testLoadLoadsTaggedInstallerCommand(): void ); } + /** + * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension::load + */ + public function testLoadRegistersTaggedDoctrineMigrationsSchemaHookInTestEnvironment(): void + { + $this->container->setParameter('kernel.environment', 'test'); + + $this->load(); + + $this->assertContainerBuilderHasServiceDefinitionWithTag( + DoctrineMigrationsSchemaHook::class, + HookInterface::TAG, + ['priority' => DoctrineMigrationsSchemaHook::PRIORITY] + ); + } + + /** + * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension::load + */ + public function testLoadSkipsDoctrineMigrationsSchemaHookOutsideTestEnvironment(): void + { + $this->load(); + + self::assertFalse($this->container->hasDefinition(DoctrineMigrationsSchemaHook::class)); + } + + protected function setUp(): void + { + parent::setUp(); + + // Every extension load() needs this; the two tests above are the ones that care about its + // value. A real kernel always defines it before any extension is loaded. + $this->container->setParameter('kernel.environment', 'prod'); + } + protected function getContainerExtensions(): array { return [ From 1b0f6bd0f0a7d983870d6abaf9af6587b81e9365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Mon, 21 Sep 2026 01:25:29 +0200 Subject: [PATCH 26/88] IBX-11939: Added append-only fixtures, which do not truncate before inserting FixtureImporter truncates every table a fixture touches before inserting, on the assumption that the fixture is the sole author of those tables. That assumption breaks once the baseline content can arrive another way - the Doctrine Migrations install path inserts it via ImportDataMigration - because truncating then destroys it. A fixture marked AppendOnlyFixture is inserted without truncating, so a package can contribute extra rows to tables something else has already populated. Plain fixtures are unchanged and still truncate, which is what keeps repeated runs deterministic. --- .../Test/Persistence/AppendOnlyFixture.php | 28 +++++++++++++++++++ .../Persistence/Fixture/FixtureImporter.php | 7 +++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 src/contracts/Test/Persistence/AppendOnlyFixture.php diff --git a/src/contracts/Test/Persistence/AppendOnlyFixture.php b/src/contracts/Test/Persistence/AppendOnlyFixture.php new file mode 100644 index 0000000000..d33f4e0c6e --- /dev/null +++ b/src/contracts/Test/Persistence/AppendOnlyFixture.php @@ -0,0 +1,28 @@ +load(); $tablesList = array_keys($data); - // truncate all tables, even the ones initially empty (some tests are affected by this) - $this->truncateTables(array_reverse($tablesList)); + if (!$fixture instanceof AppendOnlyFixture) { + // truncate all tables, even the ones initially empty (some tests are affected by this) + $this->truncateTables(array_reverse($tablesList)); + } $nonEmptyTablesData = array_filter( $data, From 8dc028843b4e8b53db292e0779a4bf318bb3c478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Thu, 24 Sep 2026 02:17:34 +0200 Subject: [PATCH 27/88] IBX-11939: Aligned the test fixture's language IDs with the default install test_data.yaml gave language ID 2 the locale eng-US, while ibexa/core's cleandata.sql - and the ImportDataMigration derived from it - gives ID 2 eng-GB. Nothing loaded both datasets into one database, so the contradiction was invisible until the Doctrine Migrations install path started seeding the test database from the install baseline. Swaps the locales on IDs 2 and 8, so ID 2 is eng-GB as in a real install and eng-US moves to ID 8. Language masks are untouched - the IDs keep their bit values, only the locale each one maps to changes - so existing content stays in the same rows and the same masks. LanguageFixture.php encodes the same mapping independently and is swapped to match. --- .../Repository/_fixtures/LanguageFixture.php | 12 +- .../_fixtures/Legacy/data/test_data.yaml | 572 +++++++++--------- 2 files changed, 292 insertions(+), 292 deletions(-) diff --git a/tests/integration/Core/Repository/_fixtures/LanguageFixture.php b/tests/integration/Core/Repository/_fixtures/LanguageFixture.php index dda29be8ef..668d0e7cb8 100644 --- a/tests/integration/Core/Repository/_fixtures/LanguageFixture.php +++ b/tests/integration/Core/Repository/_fixtures/LanguageFixture.php @@ -11,9 +11,9 @@ 2 => new Language( [ 'id' => 2, - 'name' => 'English (American)', + 'name' => 'English (United Kingdom)', 'enabled' => true, - 'languageCode' => 'eng-US', + 'languageCode' => 'eng-GB', ] ), 4 => new Language( @@ -27,16 +27,16 @@ 8 => new Language( [ 'id' => 8, - 'name' => 'English (United Kingdom)', + 'name' => 'English (American)', 'enabled' => true, - 'languageCode' => 'eng-GB', + 'languageCode' => 'eng-US', ] ), ], [ - 'eng-US' => 2, + 'eng-GB' => 2, 'ger-DE' => 4, - 'eng-GB' => 8, + 'eng-US' => 8, ], 8, ]; diff --git a/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml b/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml index 62e092cdcd..ae012a3d0f 100644 --- a/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml +++ b/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml @@ -29,156 +29,156 @@ ezcobj_state_link: - { contentobject_id: 58, contentobject_state_id: 1 } - { contentobject_id: 59, contentobject_state_id: 1 } ezcontent_language: - - { disabled: 0, id: 2, locale: eng-US, name: 'English (American)' } + - { disabled: 0, id: 2, locale: eng-GB, name: 'English (United Kingdom)' } - { disabled: 0, id: 4, locale: ger-DE, name: German } - - { disabled: 0, id: 8, locale: eng-GB, name: 'English (United Kingdom)' } + - { disabled: 0, id: 8, locale: eng-US, name: 'English (American)' } ezcontentclass: - - { always_available: 1, contentobject_name: '', created: 1024392098, creator_id: 14, id: 1, identifier: folder, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1082454875, modifier_id: 14, remote_id: a3d405b81be900468eb153d774f4f0d2, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:6:"Folder";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '', created: 1024392098, creator_id: 14, id: 3, identifier: user_group, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1048494743, modifier_id: 14, remote_id: 25b4268cdcd01921b808a0d854b877ef, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"User group";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: ' ', created: 1024392098, creator_id: 14, id: 4, identifier: user, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082018364, modifier_id: 14, remote_id: 40faa822edc579b02c25f6bb7beec3ad, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"User";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '', created: 1052385685, creator_id: 14, id: 13, identifier: comment, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082455144, modifier_id: 14, remote_id: 000c14f4f475e9f2955dedab72799941, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:7:"Comment";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '', created: 1081858024, creator_id: 14, id: 14, identifier: common_ini_settings, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858024, modifier_id: 14, remote_id: ffedf2e73b1ea0c3e630e42e2db9c900, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:19:"Common ini settings";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '', created: 1081858045, creator_id: 14, id: 15, identifier: template_look, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858045, modifier_id: 14, remote_id: 59b43cd9feaaf0e45ac974fb4bbd3f92, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:13:"Template look";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140534, creator_id: 14, id: 16, identifier: article, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140534, modifier_id: 14, remote_id: c15b600eb9198b1924063b5a68758232, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 17, identifier: blog, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 3a6f9c1f075b3bf49d7345576b196fe8, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Blog";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 18, identifier: blog_post, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 7ecb961056b7cbb30f22a91357e0a007, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Blog post";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 19, identifier: product, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 77f3ede996a3a39c7159cc69189c5307, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Product";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 20, identifier: feedback_form, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: df0257b8fc55f6b8ab179d6fb915455e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:13:"Feedback form";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 21, identifier: landing_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: e36c458e3e4a81298a0945f53a2c81f4, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:12:"Landing Page";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 22, identifier: wiki_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: d4a05eed0402e4d70fedfda2023f1aa2, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Wiki Page";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 23, identifier: poll, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 232937a3a2eacbbf24e2601aebe16522, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Poll";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 24, identifier: file, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 637d58bfddf164627bdfd265733280a0, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 25, identifier: image, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: f6df12aa74e36230eb675f364fccd25a, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 26, identifier: link, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 74ec6507063150bc813549b22534ad48, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Link";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 27, identifier: gallery, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 6a320cdc3e274841b82fcd63a86f80d1, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Gallery";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 28, identifier: forum, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b241f924b96b267153f5f55904e0675a, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Forum";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 29, identifier: forum_topic, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 71f99c516743a33562c3893ef98c9b60, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Forum topic";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 30, identifier: forum_reply, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 80ee42a66b2b8b6ee15f5c5f4b361562, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Forum reply";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140536, creator_id: 14, id: 31, identifier: event, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 563cb5edc2adfd2b240efa456c81525f, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Event";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 32, identifier: event_calendar, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 020cbeb6382c8c89dcec2cd406fb47a8, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:14:"Event calendar";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 33, identifier: banner, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 9cb558e25fd946246bbb32950c00228e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Banner";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 34, identifier: forums, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 60a921e54c1efbb9456bd2283d9e66cb, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Forums";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 35, identifier: video, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b38417e8194fb8f893ca918d297b4fa8, serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Video";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 36, identifier: url, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 20be803fa76256ebff5a3090a351dce6, serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:3:"Url";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<short_name|name>', created: 1024392098, creator_id: 14, id: 1, identifier: folder, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1082454875, modifier_id: 14, remote_id: a3d405b81be900468eb153d774f4f0d2, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:6:"Folder";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<name>', created: 1024392098, creator_id: 14, id: 3, identifier: user_group, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1048494743, modifier_id: 14, remote_id: 25b4268cdcd01921b808a0d854b877ef, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"User group";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<first_name> <last_name>', created: 1024392098, creator_id: 14, id: 4, identifier: user, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082018364, modifier_id: 14, remote_id: 40faa822edc579b02c25f6bb7beec3ad, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"User";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<subject>', created: 1052385685, creator_id: 14, id: 13, identifier: comment, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082455144, modifier_id: 14, remote_id: 000c14f4f475e9f2955dedab72799941, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:7:"Comment";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<name>', created: 1081858024, creator_id: 14, id: 14, identifier: common_ini_settings, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858024, modifier_id: 14, remote_id: ffedf2e73b1ea0c3e630e42e2db9c900, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:19:"Common ini settings";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<title>', created: 1081858045, creator_id: 14, id: 15, identifier: template_look, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858045, modifier_id: 14, remote_id: 59b43cd9feaaf0e45ac974fb4bbd3f92, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:13:"Template look";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140534, creator_id: 14, id: 16, identifier: article, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140534, modifier_id: 14, remote_id: c15b600eb9198b1924063b5a68758232, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Article";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 17, identifier: blog, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 3a6f9c1f075b3bf49d7345576b196fe8, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Blog";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 18, identifier: blog_post, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 7ecb961056b7cbb30f22a91357e0a007, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Blog post";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 19, identifier: product, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 77f3ede996a3a39c7159cc69189c5307, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Product";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 20, identifier: feedback_form, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: df0257b8fc55f6b8ab179d6fb915455e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:13:"Feedback form";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 21, identifier: landing_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: e36c458e3e4a81298a0945f53a2c81f4, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:12:"Landing Page";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 22, identifier: wiki_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: d4a05eed0402e4d70fedfda2023f1aa2, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Wiki Page";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 23, identifier: poll, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 232937a3a2eacbbf24e2601aebe16522, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Poll";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 24, identifier: file, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 637d58bfddf164627bdfd265733280a0, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"File";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 25, identifier: image, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: f6df12aa74e36230eb675f364fccd25a, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 26, identifier: link, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 74ec6507063150bc813549b22534ad48, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Link";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 27, identifier: gallery, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 6a320cdc3e274841b82fcd63a86f80d1, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Gallery";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 28, identifier: forum, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b241f924b96b267153f5f55904e0675a, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Forum";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 29, identifier: forum_topic, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 71f99c516743a33562c3893ef98c9b60, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Forum topic";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 30, identifier: forum_reply, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 80ee42a66b2b8b6ee15f5c5f4b361562, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Forum reply";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140536, creator_id: 14, id: 31, identifier: event, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 563cb5edc2adfd2b240efa456c81525f, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Event";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 32, identifier: event_calendar, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 020cbeb6382c8c89dcec2cd406fb47a8, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:14:"Event calendar";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 33, identifier: banner, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 9cb558e25fd946246bbb32950c00228e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Banner";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 34, identifier: forums, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 60a921e54c1efbb9456bd2283d9e66cb, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Forums";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 35, identifier: video, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b38417e8194fb8f893ca918d297b4fa8, serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Video";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 36, identifier: url, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 20be803fa76256ebff5a3090a351dce6, serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:3:"Url";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } ezcontentclass_attribute: - - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: Folder, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 4, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"Name";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 6, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"Name";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 7, identifier: description, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:11:"Description";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 8, identifier: first_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"First name";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 9, identifier: last_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Last name";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezuser, id: 12, identifier: user_account, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"User account";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 149, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:7:"Subject";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 150, identifier: author, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:6:"Author";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 20, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 151, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:7:"Message";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 155, identifier: short_name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"Short name";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 158, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:17:"Display sub items";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 159, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"Name";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: IndexPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 160, identifier: indexpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"Index Page";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: DefaultPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 161, identifier: defaultpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"Default Page";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugOutput, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 162, identifier: debugoutput, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"Debug Output";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugByIP, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 163, identifier: debugbyip, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:11:"Debug By IP";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugIPList, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 164, identifier: debugiplist, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:13:"Debug IP List";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugRedirection, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 165, identifier: debugredirection, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:17:"Debug Redirection";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: ContentSettings, data_text3: ViewCaching, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 166, identifier: viewcaching, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"View Caching";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCache, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 167, identifier: templatecache, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:14:"Template Cache";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCompile, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 168, identifier: templatecompile, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:16:"Template Compile";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: small, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 169, identifier: imagesmall, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:16:"Image Small Size";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: medium, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 170, identifier: imagemedium, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:17:"Image Medium Size";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: large, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 171, identifier: imagelarge, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:16:"Image Large Size";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteName, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 172, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Title";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: MetaDataArray, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 173, identifier: meta_data, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Meta data";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 174, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Image";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: sitestyle, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezpackage, id: 175, identifier: sitestyle, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Sitestyle";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: MailSettings, data_text3: AdminEmail, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 177, identifier: email, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Email";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteURL, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 178, identifier: siteurl, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:8:"Site URL";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 179, identifier: signature, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Signature";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1024, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 180, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Image";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New article', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 181, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 182, identifier: short_title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezauthor, id: 183, identifier: author, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 186, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 188, identifier: publish_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:12:"Publish date";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 190, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezgmaplocation, id: 191, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Location";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 192, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 12, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 193, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 195, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 196, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 198, identifier: publication_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:16:"Publication date";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 199, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 200, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 201, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 202, identifier: product_number, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:14:"Product number";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezfloat, id: 205, identifier: price, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Price";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 206, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezmultioption, id: 208, identifier: additional_options, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:18:"Additional options";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 210, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 211, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 212, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 214, identifier: sender_name, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Sender name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 215, identifier: subject, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Subject";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 216, identifier: message, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Message";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 217, identifier: email, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Email";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 218, identifier: recipient, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Recipient";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 21, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 219, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 221, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 224, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 225, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 226, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:17:"Display sub items";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 227, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezoption, id: 229, identifier: question, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Question";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New file', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 230, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 232, identifier: file, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 234, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 235, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 150, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 236, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2048, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 238, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 240, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 241, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 243, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Location";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 244, identifier: open_in_new_window, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:18:"Open in new window";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 245, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezobjectrelation, id: 248, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 249, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 28, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 250, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 252, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Subject";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 253, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Message";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 254, identifier: sticky, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Sticky";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezsubtreesubscription, id: 255, identifier: notify_me, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:23:"Notify me about updates";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 256, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Subject";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 257, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Message";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 55, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 258, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:10:"Full title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 19, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 259, identifier: short_title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 261, identifier: category, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Category";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 262, identifier: from_time, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"From Time";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 263, identifier: to_time, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"To Time";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 264, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 65, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 265, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezselection><options><option id=\"0\" name=\"Calendar\"/><option id=\"1\" name=\"Program\"/></options></ezselection>\n", data_type_string: ezselection, id: 266, identifier: view, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"View";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 267, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 268, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:3:"URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 269, identifier: image, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 270, identifier: image_map, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Image map";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 271, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 34, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 272, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 274, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 276, identifier: file, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 278, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 279, identifier: site_map_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:12:"Site map URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 280, identifier: tag_cloud_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:13:"Tag Cloud URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 281, identifier: login_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:13:"Login (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 282, identifier: logout_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:14:"Logout (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 283, identifier: my_profile_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:18:"My profile (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 284, identifier: register_user_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:25:"Register new user (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 285, identifier: rss_feed, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 14, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"RSS feed";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 286, identifier: shopping_basket_label, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 15, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:23:"Shopping basket (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 287, identifier: site_settings_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:21:"Site settings (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 288, identifier: footer_text, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 17, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Footer text";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 289, identifier: hide_powered_by, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 18, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:17:"Hide "Powered by"";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 290, identifier: footer_script, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 19, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:17:"Footer Javascript";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 292, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 293, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 294, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:3:"URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: Folder, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 4, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"Name";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 6, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"Name";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 7, identifier: description, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:11:"Description";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 8, identifier: first_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"First name";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 9, identifier: last_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Last name";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezuser, id: 12, identifier: user_account, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"User account";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 149, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:7:"Subject";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 150, identifier: author, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:6:"Author";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 20, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 151, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:7:"Message";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 155, identifier: short_name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"Short name";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 158, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:17:"Display sub items";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 159, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"Name";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: IndexPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 160, identifier: indexpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"Index Page";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: DefaultPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 161, identifier: defaultpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"Default Page";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugOutput, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 162, identifier: debugoutput, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"Debug Output";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugByIP, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 163, identifier: debugbyip, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:11:"Debug By IP";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugIPList, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 164, identifier: debugiplist, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:13:"Debug IP List";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugRedirection, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 165, identifier: debugredirection, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:17:"Debug Redirection";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: ContentSettings, data_text3: ViewCaching, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 166, identifier: viewcaching, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"View Caching";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCache, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 167, identifier: templatecache, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:14:"Template Cache";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCompile, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 168, identifier: templatecompile, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:16:"Template Compile";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: small, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 169, identifier: imagesmall, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:16:"Image Small Size";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: medium, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 170, identifier: imagemedium, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:17:"Image Medium Size";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: large, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 171, identifier: imagelarge, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:16:"Image Large Size";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteName, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 172, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Title";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: MetaDataArray, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 173, identifier: meta_data, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Meta data";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 174, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Image";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: sitestyle, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezpackage, id: 175, identifier: sitestyle, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Sitestyle";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: MailSettings, data_text3: AdminEmail, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 177, identifier: email, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Email";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteURL, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 178, identifier: siteurl, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:8:"Site URL";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 179, identifier: signature, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Signature";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1024, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 180, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Image";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New article', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 181, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 182, identifier: short_title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Short title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezauthor, id: 183, identifier: author, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Author";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 186, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 188, identifier: publish_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:12:"Publish date";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 190, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezgmaplocation, id: 191, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Location";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 192, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 12, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 193, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 195, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 196, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 198, identifier: publication_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:16:"Publication date";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 199, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 200, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 201, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 202, identifier: product_number, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:14:"Product number";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezfloat, id: 205, identifier: price, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Price";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 206, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezmultioption, id: 208, identifier: additional_options, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:18:"Additional options";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 210, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 211, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 212, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 214, identifier: sender_name, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Sender name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 215, identifier: subject, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Subject";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 216, identifier: message, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Message";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 217, identifier: email, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Email";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 218, identifier: recipient, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Recipient";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 21, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 219, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 221, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 224, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 225, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 226, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:17:"Display sub items";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 227, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezoption, id: 229, identifier: question, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Question";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New file', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 230, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 232, identifier: file, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"File";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 234, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 235, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 150, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 236, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2048, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 238, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 240, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 241, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 243, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Location";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 244, identifier: open_in_new_window, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:18:"Open in new window";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 245, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezobjectrelation, id: 248, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 249, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 28, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 250, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 252, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Subject";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 253, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Message";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 254, identifier: sticky, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Sticky";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezsubtreesubscription, id: 255, identifier: notify_me, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:23:"Notify me about updates";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 256, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Subject";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 257, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Message";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 55, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 258, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:10:"Full title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 19, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 259, identifier: short_title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Short title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 261, identifier: category, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Category";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 262, identifier: from_time, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"From Time";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 263, identifier: to_time, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"To Time";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 264, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 65, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 265, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezselection><options><option id=\"0\" name=\"Calendar\"/><option id=\"1\" name=\"Program\"/></options></ezselection>\n", data_type_string: ezselection, id: 266, identifier: view, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"View";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 267, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 268, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:3:"URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 269, identifier: image, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 270, identifier: image_map, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Image map";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 271, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 34, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 272, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 274, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 276, identifier: file, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"File";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 278, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 279, identifier: site_map_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:12:"Site map URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 280, identifier: tag_cloud_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:13:"Tag Cloud URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 281, identifier: login_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:13:"Login (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 282, identifier: logout_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:14:"Logout (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 283, identifier: my_profile_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:18:"My profile (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 284, identifier: register_user_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:25:"Register new user (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 285, identifier: rss_feed, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 14, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"RSS feed";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 286, identifier: shopping_basket_label, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 15, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:23:"Shopping basket (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 287, identifier: site_settings_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:21:"Site settings (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 288, identifier: footer_text, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 17, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Footer text";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 289, identifier: hide_powered_by, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 18, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:17:"Hide "Powered by"";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 290, identifier: footer_script, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 19, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:17:"Footer Javascript";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 292, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 293, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 294, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:3:"URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } ezcontentclass_classgroup: - { contentclass_id: 1, contentclass_version: 0, group_id: 1, group_name: Content } - { contentclass_id: 3, contentclass_version: 0, group_id: 2, group_name: Users } @@ -208,32 +208,32 @@ ezcontentclass_classgroup: - { contentclass_id: 35, contentclass_version: 0, group_id: 3, group_name: Media } - { contentclass_id: 36, contentclass_version: 0, group_id: 1, group_name: Content } ezcontentclass_name: - - { contentclass_id: 1, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: Folder } - - { contentclass_id: 3, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: 'User group' } - - { contentclass_id: 4, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: User } - - { contentclass_id: 13, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: Comment } - - { contentclass_id: 14, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: 'Common ini settings' } - - { contentclass_id: 15, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: 'Template look' } - - { contentclass_id: 16, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Article } - - { contentclass_id: 17, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Blog } - - { contentclass_id: 18, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Blog post' } - - { contentclass_id: 19, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Product } - - { contentclass_id: 20, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Feedback form' } - - { contentclass_id: 21, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Landing Page' } - - { contentclass_id: 22, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Wiki Page' } - - { contentclass_id: 23, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Poll } - - { contentclass_id: 24, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: File } - - { contentclass_id: 25, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Image } - - { contentclass_id: 26, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Link } - - { contentclass_id: 27, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Gallery } - - { contentclass_id: 28, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Forum } - - { contentclass_id: 29, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Forum topic' } - - { contentclass_id: 30, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Forum reply' } - - { contentclass_id: 31, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Event } - - { contentclass_id: 32, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Event calendar' } - - { contentclass_id: 33, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Banner } - - { contentclass_id: 34, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Forums } - - { contentclass_id: 35, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Video } + - { contentclass_id: 1, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: Folder } + - { contentclass_id: 3, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: 'User group' } + - { contentclass_id: 4, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: User } + - { contentclass_id: 13, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: Comment } + - { contentclass_id: 14, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: 'Common ini settings' } + - { contentclass_id: 15, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: 'Template look' } + - { contentclass_id: 16, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Article } + - { contentclass_id: 17, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Blog } + - { contentclass_id: 18, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Blog post' } + - { contentclass_id: 19, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Product } + - { contentclass_id: 20, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Feedback form' } + - { contentclass_id: 21, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Landing Page' } + - { contentclass_id: 22, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Wiki Page' } + - { contentclass_id: 23, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Poll } + - { contentclass_id: 24, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: File } + - { contentclass_id: 25, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Image } + - { contentclass_id: 26, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Link } + - { contentclass_id: 27, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Gallery } + - { contentclass_id: 28, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Forum } + - { contentclass_id: 29, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Forum topic' } + - { contentclass_id: 30, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Forum reply' } + - { contentclass_id: 31, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Event } + - { contentclass_id: 32, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Event calendar' } + - { contentclass_id: 33, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Banner } + - { contentclass_id: 34, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Forums } + - { contentclass_id: 35, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Video } ezcontentclassgroup: - { created: 1031216928, creator_id: 14, id: 1, modified: 1033922106, modifier_id: 14, name: Content, is_system: 0 } - { created: 1031216941, creator_id: 14, id: 2, modified: 1033922113, modifier_id: 14, name: Users, is_system: 0 } @@ -260,119 +260,119 @@ ezcontentobject: - { contentclass_id: 20, current_version: 1, id: 58, initial_language_id: 8, language_mask: 8, modified: 1332927282, name: 'Contact Us', owner_id: 14, published: 1332927205, remote_id: f8cc7a4cf8a964a1a0ea6666f5da7d0d, section_id: 1, status: 1 } - { contentclass_id: 3, current_version: 1, id: 59, initial_language_id: 2, language_mask: 3, modified: 1343140541, name: Partners, owner_id: 14, published: 1343140541, remote_id: 14e4411b264a6194a33847843919451a, section_id: 2, status: 1 } ezcontentobject_attribute: - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 4, data_float: null, data_int: null, data_text: 'Main group', data_type_string: ezstring, id: 7, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 4, data_float: null, data_int: null, data_text: Users, data_type_string: ezstring, id: 8, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 10, data_float: 0, data_int: 0, data_text: Anonymous, data_type_string: ezstring, id: 19, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: anonymous, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 10, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 20, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 12, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 21, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: 'Guest accounts', data_type_string: ezstring, id: 22, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: Members, data_type_string: ezstring, id: 22, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: members, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 12, data_float: 0, data_int: 0, data_text: 'Administrator users', data_type_string: ezstring, id: 24, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 12, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 25, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 13, data_float: 0, data_int: 0, data_text: Editors, data_type_string: ezstring, id: 26, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 13, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 27, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 4 } - - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } - - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 41, data_float: 0, data_int: 0, data_text: Media, data_type_string: ezstring, id: 98, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: media, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'Anonymous users', data_type_string: ezstring, id: 100, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: 'anonymous users', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'User group for the anonymous user', data_type_string: ezstring, id: 101, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: 'user group for the anonymous user', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 103, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 109, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 45, data_float: 0, data_int: 0, data_text: Setup, data_type_string: ezstring, id: 123, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: setup, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 124, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 128, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 49, data_float: 0, data_int: 0, data_text: Images, data_type_string: ezstring, id: 142, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: images, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 49, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 143, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 49, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 146, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 50, data_float: 0, data_int: 0, data_text: Files, data_type_string: ezstring, id: 147, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: files, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 50, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 148, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 50, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 151, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 51, data_float: 0, data_int: 0, data_text: Multimedia, data_type_string: ezstring, id: 152, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: multimedia, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 51, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 153, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 51, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 156, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 159, contentobject_id: 52, data_float: 0, data_int: 0, data_text: 'Common INI settings', data_type_string: ezstring, id: 157, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'common ini settings', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 160, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2/, data_type_string: ezinisetting, id: 158, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 161, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2, data_type_string: ezinisetting, id: 159, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 162, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 160, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 163, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 161, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 164, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '', data_type_string: ezinisetting, id: 162, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 165, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 163, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 166, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 164, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 167, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 165, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 168, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 166, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 169, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=100;100', data_type_string: ezinisetting, id: 167, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 170, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=200;200', data_type_string: ezinisetting, id: 168, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 171, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=300;300', data_type_string: ezinisetting, id: 169, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 172, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 'Ibexa Demo Design (without demo content)', data_type_string: ezinisetting, id: 170, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 173, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "author=eZ Systems\ncopyright=eZ Systems\ndescription=Content Management System\nkeywords=cms, publish, e-commerce, content management, development framework", data_type_string: ezinisetting, id: 171, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 174, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"1\" filename=\"Ibexa-Demo-Design-without-demo-content1.png\" suffix=\"png\" basename=\"Ibexa-Demo-Design-without-demo-content1\" dirpath=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-US\" url=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-US/Ibexa-Demo-Design-without-demo-content1.png\" original_filename=\"logo.png\" mime_type=\"image/png\" width=\"138\" height=\"46\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1343140541\"><original attribute_id=\"172\" attribute_version=\"2\" attribute_language=\"eng-US\"/></ezimage>\n", data_type_string: ezimage, id: 172, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 175, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 0, data_type_string: ezpackage, id: 173, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 0, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 177, contentobject_id: 54, data_float: 0, data_int: 0, data_text: spam@ibexa.co, data_type_string: ezinisetting, id: 175, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 178, contentobject_id: 54, data_float: 0, data_int: 0, data_text: ws2/dump_47_demo/index.php, data_type_string: ezinisetting, id: 176, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 177, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezimage, id: 179, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 56, data_float: 0, data_int: null, data_text: Design, data_type_string: ezstring, id: 181, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: design, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 182, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 56, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 185, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 219, contentobject_id: 57, data_float: 0, data_int: null, data_text: Home, data_type_string: ezstring, id: 186, language_code: eng-GB, language_id: 9, sort_key_int: 0, sort_key_string: home, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 212, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Contact Us', data_type_string: ezstring, id: 188, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: 'contact us', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 214, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Firstname Lastname', data_type_string: ezstring, id: 190, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: 'firstname lastname', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 215, contentobject_id: 58, data_float: 0, data_int: null, data_text: Subject, data_type_string: ezstring, id: 191, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: subject, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 216, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Message text', data_type_string: eztext, id: 192, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: 'message text', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 217, contentobject_id: 58, data_float: 0, data_int: null, data_text: sender@example.com, data_type_string: ezemail, id: 193, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: sender@example.com, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 218, contentobject_id: 58, data_float: 0, data_int: null, data_text: recipient@example.com, data_type_string: ezemail, id: 194, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: recipient@example.com, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 279, contentobject_id: 54, data_float: 0, data_int: 23, data_text: 'Site map', data_type_string: ezurl, id: 195, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 280, contentobject_id: 54, data_float: 0, data_int: 24, data_text: 'Tag cloud', data_type_string: ezurl, id: 196, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 281, contentobject_id: 54, data_float: 0, data_int: null, data_text: Login, data_type_string: ezstring, id: 197, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: login, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 282, contentobject_id: 54, data_float: 0, data_int: null, data_text: Logout, data_type_string: ezstring, id: 198, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: logout, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 283, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'My profile', data_type_string: ezstring, id: 199, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'my profile', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 284, contentobject_id: 54, data_float: 0, data_int: null, data_text: Register, data_type_string: ezstring, id: 200, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: register, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 285, contentobject_id: 54, data_float: 0, data_int: null, data_text: /rss/feed/my_feed, data_type_string: ezstring, id: 201, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: /rss/feed/my_feed, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 286, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Shopping basket content', data_type_string: ezstring, id: 202, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'shopping basket', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 287, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Site settings', data_type_string: ezstring, id: 203, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'site settings', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 288, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Copyright © 2012 <a href="http://ibexa.co" title="eZ Systems">eZ Systems AS</a> (except where otherwise noted). All rights reserved.', data_type_string: eztext, id: 204, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 289, contentobject_id: 54, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 205, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 290, contentobject_id: 54, data_float: 0, data_int: null, data_text: '', data_type_string: eztext, id: 206, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 59, data_float: 0, data_int: null, data_text: Partners, data_type_string: ezstring, id: 207, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: partners, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 59, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 208, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 41, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 215, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 45, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 216, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 49, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 217, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 50, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 218, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 51, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 219, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 220, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 4, data_float: null, data_int: null, data_text: 'Main group', data_type_string: ezstring, id: 7, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 4, data_float: null, data_int: null, data_text: Users, data_type_string: ezstring, id: 8, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 10, data_float: 0, data_int: 0, data_text: Anonymous, data_type_string: ezstring, id: 19, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: anonymous, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 10, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 20, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 12, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 21, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: 'Guest accounts', data_type_string: ezstring, id: 22, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: Members, data_type_string: ezstring, id: 22, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: members, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 12, data_float: 0, data_int: 0, data_text: 'Administrator users', data_type_string: ezstring, id: 24, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 12, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 25, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 13, data_float: 0, data_int: 0, data_text: Editors, data_type_string: ezstring, id: 26, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 13, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 27, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 4 } + - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } + - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 41, data_float: 0, data_int: 0, data_text: Media, data_type_string: ezstring, id: 98, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: media, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'Anonymous users', data_type_string: ezstring, id: 100, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: 'anonymous users', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'User group for the anonymous user', data_type_string: ezstring, id: 101, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: 'user group for the anonymous user', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 103, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 109, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 45, data_float: 0, data_int: 0, data_text: Setup, data_type_string: ezstring, id: 123, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: setup, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 124, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 128, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 49, data_float: 0, data_int: 0, data_text: Images, data_type_string: ezstring, id: 142, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: images, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 49, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 143, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 49, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 146, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 50, data_float: 0, data_int: 0, data_text: Files, data_type_string: ezstring, id: 147, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: files, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 50, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 148, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 50, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 151, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 51, data_float: 0, data_int: 0, data_text: Multimedia, data_type_string: ezstring, id: 152, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: multimedia, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 51, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 153, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 51, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 156, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 159, contentobject_id: 52, data_float: 0, data_int: 0, data_text: 'Common INI settings', data_type_string: ezstring, id: 157, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'common ini settings', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 160, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2/, data_type_string: ezinisetting, id: 158, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 161, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2, data_type_string: ezinisetting, id: 159, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 162, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 160, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 163, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 161, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 164, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '', data_type_string: ezinisetting, id: 162, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 165, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 163, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 166, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 164, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 167, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 165, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 168, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 166, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 169, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=100;100', data_type_string: ezinisetting, id: 167, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 170, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=200;200', data_type_string: ezinisetting, id: 168, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 171, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=300;300', data_type_string: ezinisetting, id: 169, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 172, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 'Ibexa Demo Design (without demo content)', data_type_string: ezinisetting, id: 170, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 173, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "author=eZ Systems\ncopyright=eZ Systems\ndescription=Content Management System\nkeywords=cms, publish, e-commerce, content management, development framework", data_type_string: ezinisetting, id: 171, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 174, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"1\" filename=\"Ibexa-Demo-Design-without-demo-content1.png\" suffix=\"png\" basename=\"Ibexa-Demo-Design-without-demo-content1\" dirpath=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-GB\" url=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-GB/Ibexa-Demo-Design-without-demo-content1.png\" original_filename=\"logo.png\" mime_type=\"image/png\" width=\"138\" height=\"46\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1343140541\"><original attribute_id=\"172\" attribute_version=\"2\" attribute_language=\"eng-GB\"/></ezimage>\n", data_type_string: ezimage, id: 172, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 175, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 0, data_type_string: ezpackage, id: 173, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 0, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 177, contentobject_id: 54, data_float: 0, data_int: 0, data_text: spam@ibexa.co, data_type_string: ezinisetting, id: 175, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 178, contentobject_id: 54, data_float: 0, data_int: 0, data_text: ws2/dump_47_demo/index.php, data_type_string: ezinisetting, id: 176, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 177, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezimage, id: 179, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-US\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-US\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 56, data_float: 0, data_int: null, data_text: Design, data_type_string: ezstring, id: 181, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: design, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 182, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 56, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 185, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 219, contentobject_id: 57, data_float: 0, data_int: null, data_text: Home, data_type_string: ezstring, id: 186, language_code: eng-US, language_id: 9, sort_key_int: 0, sort_key_string: home, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 212, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Contact Us', data_type_string: ezstring, id: 188, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: 'contact us', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 214, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Firstname Lastname', data_type_string: ezstring, id: 190, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: 'firstname lastname', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 215, contentobject_id: 58, data_float: 0, data_int: null, data_text: Subject, data_type_string: ezstring, id: 191, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: subject, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 216, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Message text', data_type_string: eztext, id: 192, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: 'message text', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 217, contentobject_id: 58, data_float: 0, data_int: null, data_text: sender@example.com, data_type_string: ezemail, id: 193, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: sender@example.com, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 218, contentobject_id: 58, data_float: 0, data_int: null, data_text: recipient@example.com, data_type_string: ezemail, id: 194, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: recipient@example.com, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 279, contentobject_id: 54, data_float: 0, data_int: 23, data_text: 'Site map', data_type_string: ezurl, id: 195, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 280, contentobject_id: 54, data_float: 0, data_int: 24, data_text: 'Tag cloud', data_type_string: ezurl, id: 196, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 281, contentobject_id: 54, data_float: 0, data_int: null, data_text: Login, data_type_string: ezstring, id: 197, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: login, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 282, contentobject_id: 54, data_float: 0, data_int: null, data_text: Logout, data_type_string: ezstring, id: 198, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: logout, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 283, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'My profile', data_type_string: ezstring, id: 199, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'my profile', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 284, contentobject_id: 54, data_float: 0, data_int: null, data_text: Register, data_type_string: ezstring, id: 200, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: register, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 285, contentobject_id: 54, data_float: 0, data_int: null, data_text: /rss/feed/my_feed, data_type_string: ezstring, id: 201, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: /rss/feed/my_feed, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 286, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Shopping basket content', data_type_string: ezstring, id: 202, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'shopping basket', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 287, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Site settings', data_type_string: ezstring, id: 203, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'site settings', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 288, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Copyright © 2012 <a href="http://ibexa.co" title="eZ Systems">eZ Systems AS</a> (except where otherwise noted). All rights reserved.', data_type_string: eztext, id: 204, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 289, contentobject_id: 54, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 205, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 290, contentobject_id: 54, data_float: 0, data_int: null, data_text: '', data_type_string: eztext, id: 206, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 59, data_float: 0, data_int: null, data_text: Partners, data_type_string: ezstring, id: 207, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: partners, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 59, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 208, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 41, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 215, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 45, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 216, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 49, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 217, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 50, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 218, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 51, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 219, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 220, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } ezcontentobject_link: { } ezcontentobject_name: - - { content_translation: eng-US, content_version: 1, contentobject_id: 4, language_id: 3, name: Users, real_translation: eng-US } - - { content_translation: eng-US, content_version: 2, contentobject_id: 10, language_id: 3, name: 'Anonymous User', real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 11, language_id: 3, name: 'Guest accounts', real_translation: eng-US } - - { content_translation: eng-US, content_version: 2, contentobject_id: 11, language_id: 3, name: Members, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 12, language_id: 3, name: 'Administrator users', real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 13, language_id: 3, name: Editors, real_translation: eng-US } - - { content_translation: eng-US, content_version: 3, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-US } - - { content_translation: eng-US, content_version: 4, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 41, language_id: 3, name: Media, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 42, language_id: 3, name: 'Anonymous users', real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 45, language_id: 3, name: Setup, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 49, language_id: 3, name: Images, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 50, language_id: 3, name: Files, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 51, language_id: 3, name: Multimedia, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 52, language_id: 2, name: 'Common INI settings', real_translation: eng-US } - - { content_translation: eng-US, content_version: 2, contentobject_id: 54, language_id: 2, name: 'Ibexa Demo Design (without demo content)', real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 56, language_id: 3, name: Design, real_translation: eng-US } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 57, language_id: 9, name: Home, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 58, language_id: 8, name: 'Contact Us', real_translation: eng-GB } - - { content_translation: eng-US, content_version: 1, contentobject_id: 59, language_id: 3, name: Partners, real_translation: eng-US } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 4, language_id: 3, name: Users, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 2, contentobject_id: 10, language_id: 3, name: 'Anonymous User', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 11, language_id: 3, name: 'Guest accounts', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 2, contentobject_id: 11, language_id: 3, name: Members, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 12, language_id: 3, name: 'Administrator users', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 13, language_id: 3, name: Editors, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 3, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 4, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 41, language_id: 3, name: Media, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 42, language_id: 3, name: 'Anonymous users', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 45, language_id: 3, name: Setup, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 49, language_id: 3, name: Images, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 50, language_id: 3, name: Files, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 51, language_id: 3, name: Multimedia, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 52, language_id: 2, name: 'Common INI settings', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 2, contentobject_id: 54, language_id: 2, name: 'Ibexa Demo Design (without demo content)', real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 56, language_id: 3, name: Design, real_translation: eng-GB } + - { content_translation: eng-US, content_version: 1, contentobject_id: 57, language_id: 9, name: Home, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 58, language_id: 8, name: 'Contact Us', real_translation: eng-US } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 59, language_id: 3, name: Partners, real_translation: eng-GB } ezcontentobject_trash: { } ezcontentobject_tree: - { contentobject_id: 0, contentobject_is_published: 1, contentobject_version: 1, depth: 0, is_hidden: 0, is_invisible: 0, main_node_id: 1, modified_subnode: 1343140542, node_id: 1, parent_node_id: 1, path_identification_string: '', path_string: /1/, priority: 0, remote_id: 629709ba256fe317c3ddcee35453a96a, sort_field: 1, sort_order: 1 } @@ -416,8 +416,8 @@ ezcontentobject_version: - { contentobject_id: 59, created: 1343140541, creator_id: 14, id: 507, initial_language_id: 2, language_mask: 3, modified: 1343140541, status: 1, user_id: 0, version: 1, workflow_event_pos: 0 } - { contentobject_id: 11, created: 1343140541, creator_id: 14, id: 508, initial_language_id: 2, language_mask: 3, modified: 1343140541, status: 1, user_id: 0, version: 2, workflow_event_pos: 0 } ezimagefile: - - { contentobject_attribute_id: 172, filepath: var/storage/images/setup/ez_publish/172-1-eng-GB/ez_publish., id: 1 } - - { contentobject_attribute_id: 172, filepath: var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-US/Ibexa-Demo-Design-without-demo-content1.png, id: 2 } + - { contentobject_attribute_id: 172, filepath: var/storage/images/setup/ez_publish/172-1-eng-US/ez_publish., id: 1 } + - { contentobject_attribute_id: 172, filepath: var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-GB/Ibexa-Demo-Design-without-demo-content1.png, id: 2 } eznode_assignment: - { contentobject_id: 8, contentobject_version: 2, from_node_id: 0, id: 4, is_main: 1, op_code: 2, parent_node: 5, parent_remote_id: '', remote_id: 0, sort_field: 1, sort_order: 1, priority: 0, is_hidden: 0 } - { contentobject_id: 42, contentobject_version: 1, from_node_id: 0, id: 5, is_main: 1, op_code: 2, parent_node: 5, parent_remote_id: '', remote_id: 0, sort_field: 9, sort_order: 1, priority: 0, is_hidden: 0 } From 3be78fd1059e2ee955864bd345ae000c55f8e9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 24 Sep 2026 11:41:09 +0200 Subject: [PATCH 28/88] Revert "IBX-11939: Aligned the test fixture's language IDs with the default install" This reverts commit 8dc028843b4e8b53db292e0779a4bf318bb3c478. --- .../Repository/_fixtures/LanguageFixture.php | 12 +- .../_fixtures/Legacy/data/test_data.yaml | 572 +++++++++--------- 2 files changed, 292 insertions(+), 292 deletions(-) diff --git a/tests/integration/Core/Repository/_fixtures/LanguageFixture.php b/tests/integration/Core/Repository/_fixtures/LanguageFixture.php index 668d0e7cb8..dda29be8ef 100644 --- a/tests/integration/Core/Repository/_fixtures/LanguageFixture.php +++ b/tests/integration/Core/Repository/_fixtures/LanguageFixture.php @@ -11,9 +11,9 @@ 2 => new Language( [ 'id' => 2, - 'name' => 'English (United Kingdom)', + 'name' => 'English (American)', 'enabled' => true, - 'languageCode' => 'eng-GB', + 'languageCode' => 'eng-US', ] ), 4 => new Language( @@ -27,16 +27,16 @@ 8 => new Language( [ 'id' => 8, - 'name' => 'English (American)', + 'name' => 'English (United Kingdom)', 'enabled' => true, - 'languageCode' => 'eng-US', + 'languageCode' => 'eng-GB', ] ), ], [ - 'eng-GB' => 2, + 'eng-US' => 2, 'ger-DE' => 4, - 'eng-US' => 8, + 'eng-GB' => 8, ], 8, ]; diff --git a/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml b/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml index ae012a3d0f..62e092cdcd 100644 --- a/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml +++ b/tests/integration/Core/Repository/_fixtures/Legacy/data/test_data.yaml @@ -29,156 +29,156 @@ ezcobj_state_link: - { contentobject_id: 58, contentobject_state_id: 1 } - { contentobject_id: 59, contentobject_state_id: 1 } ezcontent_language: - - { disabled: 0, id: 2, locale: eng-GB, name: 'English (United Kingdom)' } + - { disabled: 0, id: 2, locale: eng-US, name: 'English (American)' } - { disabled: 0, id: 4, locale: ger-DE, name: German } - - { disabled: 0, id: 8, locale: eng-US, name: 'English (American)' } + - { disabled: 0, id: 8, locale: eng-GB, name: 'English (United Kingdom)' } ezcontentclass: - - { always_available: 1, contentobject_name: '<short_name|name>', created: 1024392098, creator_id: 14, id: 1, identifier: folder, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1082454875, modifier_id: 14, remote_id: a3d405b81be900468eb153d774f4f0d2, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:6:"Folder";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '<name>', created: 1024392098, creator_id: 14, id: 3, identifier: user_group, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1048494743, modifier_id: 14, remote_id: 25b4268cdcd01921b808a0d854b877ef, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"User group";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '<first_name> <last_name>', created: 1024392098, creator_id: 14, id: 4, identifier: user, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082018364, modifier_id: 14, remote_id: 40faa822edc579b02c25f6bb7beec3ad, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"User";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<subject>', created: 1052385685, creator_id: 14, id: 13, identifier: comment, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082455144, modifier_id: 14, remote_id: 000c14f4f475e9f2955dedab72799941, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:7:"Comment";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '<name>', created: 1081858024, creator_id: 14, id: 14, identifier: common_ini_settings, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858024, modifier_id: 14, remote_id: ffedf2e73b1ea0c3e630e42e2db9c900, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:19:"Common ini settings";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 1, contentobject_name: '<title>', created: 1081858045, creator_id: 14, id: 15, identifier: template_look, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858045, modifier_id: 14, remote_id: 59b43cd9feaaf0e45ac974fb4bbd3f92, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:13:"Template look";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140534, creator_id: 14, id: 16, identifier: article, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140534, modifier_id: 14, remote_id: c15b600eb9198b1924063b5a68758232, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Article";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 17, identifier: blog, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 3a6f9c1f075b3bf49d7345576b196fe8, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Blog";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 18, identifier: blog_post, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 7ecb961056b7cbb30f22a91357e0a007, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Blog post";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 19, identifier: product, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 77f3ede996a3a39c7159cc69189c5307, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Product";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 20, identifier: feedback_form, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: df0257b8fc55f6b8ab179d6fb915455e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:13:"Feedback form";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 21, identifier: landing_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: e36c458e3e4a81298a0945f53a2c81f4, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:12:"Landing Page";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 22, identifier: wiki_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: d4a05eed0402e4d70fedfda2023f1aa2, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Wiki Page";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 23, identifier: poll, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 232937a3a2eacbbf24e2601aebe16522, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Poll";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 24, identifier: file, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 637d58bfddf164627bdfd265733280a0, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"File";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 25, identifier: image, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: f6df12aa74e36230eb675f364fccd25a, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 26, identifier: link, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 74ec6507063150bc813549b22534ad48, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Link";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 27, identifier: gallery, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 6a320cdc3e274841b82fcd63a86f80d1, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Gallery";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 28, identifier: forum, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b241f924b96b267153f5f55904e0675a, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Forum";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 29, identifier: forum_topic, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 71f99c516743a33562c3893ef98c9b60, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Forum topic";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 30, identifier: forum_reply, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 80ee42a66b2b8b6ee15f5c5f4b361562, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Forum reply";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140536, creator_id: 14, id: 31, identifier: event, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 563cb5edc2adfd2b240efa456c81525f, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Event";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 32, identifier: event_calendar, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 020cbeb6382c8c89dcec2cd406fb47a8, serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:14:"Event calendar";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 33, identifier: banner, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 9cb558e25fd946246bbb32950c00228e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Banner";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 34, identifier: forums, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 60a921e54c1efbb9456bd2283d9e66cb, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Forums";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 35, identifier: video, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b38417e8194fb8f893ca918d297b4fa8, serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Video";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } - - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 36, identifier: url, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 20be803fa76256ebff5a3090a351dce6, serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:3:"Url";s:16:"always-available";s:6:"eng-US";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<short_name|name>', created: 1024392098, creator_id: 14, id: 1, identifier: folder, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1082454875, modifier_id: 14, remote_id: a3d405b81be900468eb153d774f4f0d2, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:6:"Folder";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<name>', created: 1024392098, creator_id: 14, id: 3, identifier: user_group, initial_language_id: 2, is_container: 1, language_mask: 3, modified: 1048494743, modifier_id: 14, remote_id: 25b4268cdcd01921b808a0d854b877ef, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"User group";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<first_name> <last_name>', created: 1024392098, creator_id: 14, id: 4, identifier: user, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082018364, modifier_id: 14, remote_id: 40faa822edc579b02c25f6bb7beec3ad, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"User";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<subject>', created: 1052385685, creator_id: 14, id: 13, identifier: comment, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1082455144, modifier_id: 14, remote_id: 000c14f4f475e9f2955dedab72799941, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:7:"Comment";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<name>', created: 1081858024, creator_id: 14, id: 14, identifier: common_ini_settings, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858024, modifier_id: 14, remote_id: ffedf2e73b1ea0c3e630e42e2db9c900, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:19:"Common ini settings";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 1, contentobject_name: '<title>', created: 1081858045, creator_id: 14, id: 15, identifier: template_look, initial_language_id: 2, is_container: 0, language_mask: 3, modified: 1081858045, modifier_id: 14, remote_id: 59b43cd9feaaf0e45ac974fb4bbd3f92, serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:13:"Template look";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140534, creator_id: 14, id: 16, identifier: article, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140534, modifier_id: 14, remote_id: c15b600eb9198b1924063b5a68758232, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 17, identifier: blog, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 3a6f9c1f075b3bf49d7345576b196fe8, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Blog";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 18, identifier: blog_post, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 7ecb961056b7cbb30f22a91357e0a007, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Blog post";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 19, identifier: product, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 77f3ede996a3a39c7159cc69189c5307, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Product";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 20, identifier: feedback_form, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: df0257b8fc55f6b8ab179d6fb915455e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:13:"Feedback form";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 21, identifier: landing_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: e36c458e3e4a81298a0945f53a2c81f4, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:12:"Landing Page";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140535, creator_id: 14, id: 22, identifier: wiki_page, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: d4a05eed0402e4d70fedfda2023f1aa2, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Wiki Page";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 23, identifier: poll, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 232937a3a2eacbbf24e2601aebe16522, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Poll";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140535, creator_id: 14, id: 24, identifier: file, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140535, modifier_id: 14, remote_id: 637d58bfddf164627bdfd265733280a0, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 25, identifier: image, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: f6df12aa74e36230eb675f364fccd25a, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 26, identifier: link, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 74ec6507063150bc813549b22534ad48, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Link";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 27, identifier: gallery, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 6a320cdc3e274841b82fcd63a86f80d1, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Gallery";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 28, identifier: forum, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b241f924b96b267153f5f55904e0675a, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Forum";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 29, identifier: forum_topic, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 71f99c516743a33562c3893ef98c9b60, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Forum topic";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<subject>', created: 1343140536, creator_id: 14, id: 30, identifier: forum_reply, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 80ee42a66b2b8b6ee15f5c5f4b361562, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Forum reply";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<short_title|title>', created: 1343140536, creator_id: 14, id: 31, identifier: event, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 563cb5edc2adfd2b240efa456c81525f, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Event";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 32, identifier: event_calendar, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 020cbeb6382c8c89dcec2cd406fb47a8, serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:14:"Event calendar";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 33, identifier: banner, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 9cb558e25fd946246bbb32950c00228e, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Banner";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<title>', created: 1343140536, creator_id: 14, id: 34, identifier: forums, initial_language_id: 8, is_container: 1, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 60a921e54c1efbb9456bd2283d9e66cb, serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Forums";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 35, identifier: video, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: b38417e8194fb8f893ca918d297b4fa8, serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Video";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } + - { always_available: 0, contentobject_name: '<name>', created: 1343140536, creator_id: 14, id: 36, identifier: url, initial_language_id: 8, is_container: 0, language_mask: 9, modified: 1343140536, modifier_id: 14, remote_id: 20be803fa76256ebff5a3090a351dce6, serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:3:"Url";s:16:"always-available";s:6:"eng-GB";}', sort_field: 1, sort_order: 1, url_alias_name: '', version: 0 } ezcontentclass_attribute: - - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: Folder, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 4, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"Name";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 6, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"Name";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 7, identifier: description, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:11:"Description";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 8, identifier: first_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"First name";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 9, identifier: last_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Last name";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezuser, id: 12, identifier: user_account, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"User account";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 149, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:7:"Subject";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 150, identifier: author, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:6:"Author";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 20, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 151, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:7:"Message";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 155, identifier: short_name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"Short name";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 158, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:17:"Display sub items";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 159, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:4:"Name";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: IndexPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 160, identifier: indexpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:10:"Index Page";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: DefaultPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 161, identifier: defaultpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"Default Page";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugOutput, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 162, identifier: debugoutput, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"Debug Output";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugByIP, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 163, identifier: debugbyip, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:11:"Debug By IP";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugIPList, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 164, identifier: debugiplist, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:13:"Debug IP List";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugRedirection, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 165, identifier: debugredirection, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:17:"Debug Redirection";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: ContentSettings, data_text3: ViewCaching, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 166, identifier: viewcaching, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:12:"View Caching";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCache, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 167, identifier: templatecache, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:14:"Template Cache";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCompile, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 168, identifier: templatecompile, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:16:"Template Compile";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: small, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 169, identifier: imagesmall, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:16:"Image Small Size";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: medium, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 170, identifier: imagemedium, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:17:"Image Medium Size";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: large, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 171, identifier: imagelarge, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:16:"Image Large Size";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteName, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 172, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Title";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: MetaDataArray, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 173, identifier: meta_data, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Meta data";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 174, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Image";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: sitestyle, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezpackage, id: 175, identifier: sitestyle, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Sitestyle";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: MailSettings, data_text3: AdminEmail, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 177, identifier: email, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Email";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteURL, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 178, identifier: siteurl, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:8:"Site URL";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 179, identifier: signature, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:9:"Signature";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1024, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 180, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-GB";s:6:"eng-GB";s:5:"Image";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New article', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 181, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 182, identifier: short_title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Short title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezauthor, id: 183, identifier: author, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Author";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 186, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 188, identifier: publish_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:12:"Publish date";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 190, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezgmaplocation, id: 191, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Location";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 192, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 12, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 193, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 195, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 196, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 198, identifier: publication_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:16:"Publication date";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 199, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 200, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 201, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 202, identifier: product_number, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:14:"Product number";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezfloat, id: 205, identifier: price, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Price";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 206, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezmultioption, id: 208, identifier: additional_options, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:18:"Additional options";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 210, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 211, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 212, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 214, identifier: sender_name, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Sender name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 215, identifier: subject, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Subject";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 216, identifier: message, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Message";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 217, identifier: email, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Email";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 218, identifier: recipient, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Recipient";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 21, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 219, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 221, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 224, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 225, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 226, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:17:"Display sub items";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 227, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezoption, id: 229, identifier: question, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Question";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New file', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 230, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 232, identifier: file, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"File";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 234, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 235, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 150, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 236, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2048, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 238, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 240, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 241, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 243, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Location";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 244, identifier: open_in_new_window, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:18:"Open in new window";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 245, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezobjectrelation, id: 248, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 249, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 28, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 250, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 252, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Subject";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 253, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Message";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 254, identifier: sticky, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:6:"Sticky";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezsubtreesubscription, id: 255, identifier: notify_me, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:23:"Notify me about updates";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 256, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Subject";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 257, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"Message";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 55, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 258, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:10:"Full title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 19, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 259, identifier: short_title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Short title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 261, identifier: category, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Category";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 262, identifier: from_time, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"From Time";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 263, identifier: to_time, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:7:"To Time";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 264, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 65, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 265, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 0, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezselection><options><option id=\"0\" name=\"Calendar\"/><option id=\"1\" name=\"Program\"/></options></ezselection>\n", data_type_string: ezselection, id: 266, identifier: view, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-US";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"View";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 267, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 268, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:3:"URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 269, identifier: image, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Image";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 270, identifier: image_map, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:9:"Image map";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 271, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 34, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 272, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:5:"Title";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 274, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 276, identifier: file, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"File";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 278, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"Comments";s:16:"always-available";s:6:"eng-US";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 279, identifier: site_map_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:12:"Site map URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 280, identifier: tag_cloud_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:13:"Tag Cloud URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 281, identifier: login_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:13:"Login (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 282, identifier: logout_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:14:"Logout (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 283, identifier: my_profile_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:18:"My profile (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 284, identifier: register_user_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:25:"Register new user (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 285, identifier: rss_feed, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 14, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"RSS feed";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 286, identifier: shopping_basket_label, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 15, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:23:"Shopping basket (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 287, identifier: site_settings_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:21:"Site settings (label)";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 288, identifier: footer_text, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 17, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Footer text";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 289, identifier: hide_powered_by, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 18, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:17:"Hide "Powered by"";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 290, identifier: footer_script, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 19, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:17:"Footer Javascript";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 292, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 293, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } - - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 294, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-US";s:3:"URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: Folder, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 4, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"Name";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 6, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"Name";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 3, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 7, identifier: description, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:11:"Description";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 8, identifier: first_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"First name";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 9, identifier: last_name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Last name";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezuser, id: 12, identifier: user_account, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"User account";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 149, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:7:"Subject";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 150, identifier: author, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:6:"Author";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 13, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 20, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 151, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:7:"Message";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 100, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 155, identifier: short_name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"Short name";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 158, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:17:"Display sub items";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 159, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:4:"Name";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: IndexPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 160, identifier: indexpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:10:"Index Page";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: DefaultPage, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 161, identifier: defaultpage, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"Default Page";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugOutput, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 162, identifier: debugoutput, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"Debug Output";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugByIP, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 163, identifier: debugbyip, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:11:"Debug By IP";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugIPList, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 164, identifier: debugiplist, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:13:"Debug IP List";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: DebugSettings, data_text3: DebugRedirection, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 165, identifier: debugredirection, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:17:"Debug Redirection";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: ContentSettings, data_text3: ViewCaching, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 166, identifier: viewcaching, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:12:"View Caching";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCache, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 167, identifier: templatecache, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:14:"Template Cache";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: TemplateSettings, data_text3: TemplateCompile, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 168, identifier: templatecompile, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:16:"Template Compile";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: small, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 169, identifier: imagesmall, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:16:"Image Small Size";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: medium, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 170, identifier: imagemedium, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:17:"Image Medium Size";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 14, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: image.ini, data_text2: large, data_text3: Filters, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 171, identifier: imagelarge, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:16:"Image Large Size";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteName, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 172, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 1, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Title";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 6, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: MetaDataArray, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 173, identifier: meta_data, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Meta data";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 174, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Image";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: sitestyle, data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezpackage, id: 175, identifier: sitestyle, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Sitestyle";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: MailSettings, data_text3: AdminEmail, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 177, identifier: email, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Email";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: site.ini, data_text2: SiteSettings, data_text3: SiteURL, data_text4: '', data_text5: override;user;admin;demo, data_type_string: ezinisetting, id: 178, identifier: siteurl, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:8:"Site URL";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 179, identifier: signature, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:9:"Signature";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 4, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1024, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 180, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_description_list: 'a:2:{i:0;s:0:"";s:16:"always-available";b:0;}', serialized_name_list: 'a:2:{s:16:"always-available";s:6:"eng-US";s:6:"eng-US";s:5:"Image";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New article', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 181, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 182, identifier: short_title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezauthor, id: 183, identifier: author, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 186, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 188, identifier: publish_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:12:"Publish date";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 190, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezgmaplocation, id: 191, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Location";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 16, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 192, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 12, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 193, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 17, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 195, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 196, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 198, identifier: publication_date, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:16:"Publication date";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 199, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 18, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 200, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 201, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 202, identifier: product_number, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:14:"Product number";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezfloat, id: 205, identifier: price, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Price";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 206, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezmultioption, id: 208, identifier: additional_options, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 8, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:18:"Additional options";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 210, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 10, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 19, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 211, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 11, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 212, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 214, identifier: sender_name, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Sender name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 215, identifier: subject, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Subject";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 216, identifier: message, is_information_collector: 1, is_required: 1, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Message";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 217, identifier: email, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Email";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 20, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezemail, id: 218, identifier: recipient, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Recipient";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 21, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 219, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 221, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 224, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 225, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 22, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 226, identifier: show_children, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:17:"Display sub items";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 227, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 23, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezoption, id: 229, identifier: question, is_information_collector: 1, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Question";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'New file', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 230, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 232, identifier: file, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 234, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 24, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 235, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 150, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 236, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 2048, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 238, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 25, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 240, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 255, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 241, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 243, identifier: location, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Location";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 26, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 1, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 244, identifier: open_in_new_window, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:18:"Open in new window";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 245, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezobjectrelation, id: 248, identifier: image, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 27, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 249, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 28, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 250, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 252, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Subject";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 253, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Message";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 254, identifier: sticky, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:6:"Sticky";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 29, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezsubtreesubscription, id: 255, identifier: notify_me, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:23:"Notify me about updates";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 256, identifier: subject, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Subject";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 30, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 257, identifier: message, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"Message";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 55, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 258, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:10:"Full title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 19, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 259, identifier: short_title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 261, identifier: category, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Category";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 1, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 262, identifier: from_time, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"From Time";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezdatetime, id: 263, identifier: to_time, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 6, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:7:"To Time";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 31, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 264, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 7, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 65, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 265, identifier: title, is_information_collector: 0, is_required: 1, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 0, category: '', contentclass_id: 32, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezselection><options><option id=\"0\" name=\"Calendar\"/><option id=\"1\" name=\"Program\"/></options></ezselection>\n", data_type_string: ezselection, id: 266, identifier: view, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:1:{s:6:"eng-GB";s:0:"";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"View";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 267, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 268, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 2, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:3:"URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: 'KB', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezimage, id: 269, identifier: image, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 270, identifier: image_map, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 4, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:9:"Image map";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 33, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 271, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Tags";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 34, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 272, identifier: title, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 274, identifier: name, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 1, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezbinaryfile, id: 276, identifier: file, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 35, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezcomcomments, id: 278, identifier: comments, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 5, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:2:{s:6:"eng-GB";s:0:"";s:16:"always-available";s:6:"eng-GB";}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:8:"Comments";s:16:"always-available";s:6:"eng-GB";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 279, identifier: site_map_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 8, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:12:"Site map URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 280, identifier: tag_cloud_url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 9, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:13:"Tag Cloud URL";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 281, identifier: login_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 10, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:13:"Login (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 282, identifier: logout_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 11, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:14:"Logout (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 283, identifier: my_profile_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 12, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:18:"My profile (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 284, identifier: register_user_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 13, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:25:"Register new user (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 285, identifier: rss_feed, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 14, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:8:"RSS feed";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 286, identifier: shopping_basket_label, is_information_collector: 0, is_required: 0, is_searchable: 1, placement: 15, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:23:"Shopping basket (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 287, identifier: site_settings_label, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:21:"Site settings (label)";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 288, identifier: footer_text, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 17, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:11:"Footer text";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezboolean, id: 289, identifier: hide_powered_by, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 18, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:17:"Hide "Powered by"";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 15, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 10, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: eztext, id: 290, identifier: footer_script, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 19, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:17:"Footer Javascript";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 1, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezkeyword, id: 292, identifier: tags, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 7, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Tags";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezstring, id: 293, identifier: name, is_information_collector: 0, is_required: 1, is_searchable: 0, placement: 16, serialized_data_text: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_description_list: 'a:2:{s:6:"eng-US";s:0:"";s:16:"always-available";s:6:"eng-US";}', serialized_name_list: 'a:2:{s:6:"eng-US";s:4:"Name";s:16:"always-available";s:6:"eng-US";}', version: 0 } + - { can_translate: 1, category: '', contentclass_id: 36, data_float1: 0, data_float2: 0, data_float3: 0, data_float4: 0, data_int1: 0, data_int2: 0, data_int3: 0, data_int4: 0, data_text1: '', data_text2: '', data_text3: '', data_text4: '', data_text5: '', data_type_string: ezurl, id: 294, identifier: url, is_information_collector: 0, is_required: 0, is_searchable: 0, placement: 3, serialized_data_text: 'a:0:{}', serialized_description_list: 'a:0:{}', serialized_name_list: 'a:2:{s:6:"eng-GB";s:3:"URL";s:16:"always-available";s:6:"eng-GB";}', version: 0 } ezcontentclass_classgroup: - { contentclass_id: 1, contentclass_version: 0, group_id: 1, group_name: Content } - { contentclass_id: 3, contentclass_version: 0, group_id: 2, group_name: Users } @@ -208,32 +208,32 @@ ezcontentclass_classgroup: - { contentclass_id: 35, contentclass_version: 0, group_id: 3, group_name: Media } - { contentclass_id: 36, contentclass_version: 0, group_id: 1, group_name: Content } ezcontentclass_name: - - { contentclass_id: 1, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: Folder } - - { contentclass_id: 3, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: 'User group' } - - { contentclass_id: 4, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: User } - - { contentclass_id: 13, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: Comment } - - { contentclass_id: 14, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: 'Common ini settings' } - - { contentclass_id: 15, contentclass_version: 0, language_id: 3, language_locale: eng-GB, name: 'Template look' } - - { contentclass_id: 16, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Article } - - { contentclass_id: 17, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Blog } - - { contentclass_id: 18, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Blog post' } - - { contentclass_id: 19, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Product } - - { contentclass_id: 20, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Feedback form' } - - { contentclass_id: 21, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Landing Page' } - - { contentclass_id: 22, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Wiki Page' } - - { contentclass_id: 23, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Poll } - - { contentclass_id: 24, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: File } - - { contentclass_id: 25, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Image } - - { contentclass_id: 26, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Link } - - { contentclass_id: 27, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Gallery } - - { contentclass_id: 28, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Forum } - - { contentclass_id: 29, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Forum topic' } - - { contentclass_id: 30, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Forum reply' } - - { contentclass_id: 31, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Event } - - { contentclass_id: 32, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: 'Event calendar' } - - { contentclass_id: 33, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Banner } - - { contentclass_id: 34, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Forums } - - { contentclass_id: 35, contentclass_version: 0, language_id: 9, language_locale: eng-US, name: Video } + - { contentclass_id: 1, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: Folder } + - { contentclass_id: 3, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: 'User group' } + - { contentclass_id: 4, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: User } + - { contentclass_id: 13, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: Comment } + - { contentclass_id: 14, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: 'Common ini settings' } + - { contentclass_id: 15, contentclass_version: 0, language_id: 3, language_locale: eng-US, name: 'Template look' } + - { contentclass_id: 16, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Article } + - { contentclass_id: 17, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Blog } + - { contentclass_id: 18, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Blog post' } + - { contentclass_id: 19, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Product } + - { contentclass_id: 20, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Feedback form' } + - { contentclass_id: 21, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Landing Page' } + - { contentclass_id: 22, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Wiki Page' } + - { contentclass_id: 23, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Poll } + - { contentclass_id: 24, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: File } + - { contentclass_id: 25, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Image } + - { contentclass_id: 26, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Link } + - { contentclass_id: 27, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Gallery } + - { contentclass_id: 28, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Forum } + - { contentclass_id: 29, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Forum topic' } + - { contentclass_id: 30, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Forum reply' } + - { contentclass_id: 31, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Event } + - { contentclass_id: 32, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: 'Event calendar' } + - { contentclass_id: 33, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Banner } + - { contentclass_id: 34, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Forums } + - { contentclass_id: 35, contentclass_version: 0, language_id: 9, language_locale: eng-GB, name: Video } ezcontentclassgroup: - { created: 1031216928, creator_id: 14, id: 1, modified: 1033922106, modifier_id: 14, name: Content, is_system: 0 } - { created: 1031216941, creator_id: 14, id: 2, modified: 1033922113, modifier_id: 14, name: Users, is_system: 0 } @@ -260,119 +260,119 @@ ezcontentobject: - { contentclass_id: 20, current_version: 1, id: 58, initial_language_id: 8, language_mask: 8, modified: 1332927282, name: 'Contact Us', owner_id: 14, published: 1332927205, remote_id: f8cc7a4cf8a964a1a0ea6666f5da7d0d, section_id: 1, status: 1 } - { contentclass_id: 3, current_version: 1, id: 59, initial_language_id: 2, language_mask: 3, modified: 1343140541, name: Partners, owner_id: 14, published: 1343140541, remote_id: 14e4411b264a6194a33847843919451a, section_id: 2, status: 1 } ezcontentobject_attribute: - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 4, data_float: null, data_int: null, data_text: 'Main group', data_type_string: ezstring, id: 7, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 4, data_float: null, data_int: null, data_text: Users, data_type_string: ezstring, id: 8, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 10, data_float: 0, data_int: 0, data_text: Anonymous, data_type_string: ezstring, id: 19, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: anonymous, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 10, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 20, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 12, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 21, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: 'Guest accounts', data_type_string: ezstring, id: 22, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: Members, data_type_string: ezstring, id: 22, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: members, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 12, data_float: 0, data_int: 0, data_text: 'Administrator users', data_type_string: ezstring, id: 24, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 12, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 25, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 13, data_float: 0, data_int: 0, data_text: Editors, data_type_string: ezstring, id: 26, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 13, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 27, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 4 } - - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } - - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 41, data_float: 0, data_int: 0, data_text: Media, data_type_string: ezstring, id: 98, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: media, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'Anonymous users', data_type_string: ezstring, id: 100, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: 'anonymous users', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'User group for the anonymous user', data_type_string: ezstring, id: 101, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: 'user group for the anonymous user', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 103, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 109, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 45, data_float: 0, data_int: 0, data_text: Setup, data_type_string: ezstring, id: 123, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: setup, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 124, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 128, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 49, data_float: 0, data_int: 0, data_text: Images, data_type_string: ezstring, id: 142, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: images, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 49, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 143, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 49, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 146, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 50, data_float: 0, data_int: 0, data_text: Files, data_type_string: ezstring, id: 147, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: files, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 50, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 148, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 50, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 151, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 51, data_float: 0, data_int: 0, data_text: Multimedia, data_type_string: ezstring, id: 152, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: multimedia, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 51, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 153, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 51, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 156, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 159, contentobject_id: 52, data_float: 0, data_int: 0, data_text: 'Common INI settings', data_type_string: ezstring, id: 157, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'common ini settings', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 160, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2/, data_type_string: ezinisetting, id: 158, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 161, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2, data_type_string: ezinisetting, id: 159, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 162, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 160, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 163, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 161, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 164, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '', data_type_string: ezinisetting, id: 162, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 165, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 163, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 166, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 164, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 167, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 165, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 168, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 166, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 169, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=100;100', data_type_string: ezinisetting, id: 167, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 170, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=200;200', data_type_string: ezinisetting, id: 168, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 171, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=300;300', data_type_string: ezinisetting, id: 169, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 172, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 'Ibexa Demo Design (without demo content)', data_type_string: ezinisetting, id: 170, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 173, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "author=eZ Systems\ncopyright=eZ Systems\ndescription=Content Management System\nkeywords=cms, publish, e-commerce, content management, development framework", data_type_string: ezinisetting, id: 171, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 174, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"1\" filename=\"Ibexa-Demo-Design-without-demo-content1.png\" suffix=\"png\" basename=\"Ibexa-Demo-Design-without-demo-content1\" dirpath=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-GB\" url=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-GB/Ibexa-Demo-Design-without-demo-content1.png\" original_filename=\"logo.png\" mime_type=\"image/png\" width=\"138\" height=\"46\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1343140541\"><original attribute_id=\"172\" attribute_version=\"2\" attribute_language=\"eng-GB\"/></ezimage>\n", data_type_string: ezimage, id: 172, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 175, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 0, data_type_string: ezpackage, id: 173, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 0, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 177, contentobject_id: 54, data_float: 0, data_int: 0, data_text: spam@ibexa.co, data_type_string: ezinisetting, id: 175, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 178, contentobject_id: 54, data_float: 0, data_int: 0, data_text: ws2/dump_47_demo/index.php, data_type_string: ezinisetting, id: 176, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 177, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezimage, id: 179, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-US\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } - - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-US\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } - - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 56, data_float: 0, data_int: null, data_text: Design, data_type_string: ezstring, id: 181, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: design, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 182, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 56, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 185, language_code: eng-GB, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 219, contentobject_id: 57, data_float: 0, data_int: null, data_text: Home, data_type_string: ezstring, id: 186, language_code: eng-US, language_id: 9, sort_key_int: 0, sort_key_string: home, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 212, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Contact Us', data_type_string: ezstring, id: 188, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: 'contact us', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 214, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Firstname Lastname', data_type_string: ezstring, id: 190, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: 'firstname lastname', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 215, contentobject_id: 58, data_float: 0, data_int: null, data_text: Subject, data_type_string: ezstring, id: 191, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: subject, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 216, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Message text', data_type_string: eztext, id: 192, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: 'message text', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 217, contentobject_id: 58, data_float: 0, data_int: null, data_text: sender@example.com, data_type_string: ezemail, id: 193, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: sender@example.com, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 218, contentobject_id: 58, data_float: 0, data_int: null, data_text: recipient@example.com, data_type_string: ezemail, id: 194, language_code: eng-US, language_id: 8, sort_key_int: 0, sort_key_string: recipient@example.com, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 279, contentobject_id: 54, data_float: 0, data_int: 23, data_text: 'Site map', data_type_string: ezurl, id: 195, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 280, contentobject_id: 54, data_float: 0, data_int: 24, data_text: 'Tag cloud', data_type_string: ezurl, id: 196, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 281, contentobject_id: 54, data_float: 0, data_int: null, data_text: Login, data_type_string: ezstring, id: 197, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: login, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 282, contentobject_id: 54, data_float: 0, data_int: null, data_text: Logout, data_type_string: ezstring, id: 198, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: logout, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 283, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'My profile', data_type_string: ezstring, id: 199, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'my profile', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 284, contentobject_id: 54, data_float: 0, data_int: null, data_text: Register, data_type_string: ezstring, id: 200, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: register, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 285, contentobject_id: 54, data_float: 0, data_int: null, data_text: /rss/feed/my_feed, data_type_string: ezstring, id: 201, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: /rss/feed/my_feed, version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 286, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Shopping basket content', data_type_string: ezstring, id: 202, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'shopping basket', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 287, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Site settings', data_type_string: ezstring, id: 203, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: 'site settings', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 288, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Copyright © 2012 <a href="http://ibexa.co" title="eZ Systems">eZ Systems AS</a> (except where otherwise noted). All rights reserved.', data_type_string: eztext, id: 204, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 289, contentobject_id: 54, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 205, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 290, contentobject_id: 54, data_float: 0, data_int: null, data_text: '', data_type_string: eztext, id: 206, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } - - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 59, data_float: 0, data_int: null, data_text: Partners, data_type_string: ezstring, id: 207, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: partners, version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 59, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 208, language_code: eng-GB, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 41, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 215, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 45, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 216, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 49, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 217, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 50, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 218, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 51, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 219, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } - - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 220, language_code: eng-GB, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 4, data_float: null, data_int: null, data_text: 'Main group', data_type_string: ezstring, id: 7, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 4, data_float: null, data_int: null, data_text: Users, data_type_string: ezstring, id: 8, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 10, data_float: 0, data_int: 0, data_text: Anonymous, data_type_string: ezstring, id: 19, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: anonymous, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 10, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 20, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 12, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 21, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: 'Guest accounts', data_type_string: ezstring, id: 22, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 11, data_float: 0, data_int: 0, data_text: Members, data_type_string: ezstring, id: 22, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: members, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 11, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 23, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 12, data_float: 0, data_int: 0, data_text: 'Administrator users', data_type_string: ezstring, id: 24, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 12, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 25, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 13, data_float: 0, data_int: 0, data_text: Editors, data_type_string: ezstring, id: 26, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 13, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 27, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 8, contentobject_id: 14, data_float: 0, data_int: 0, data_text: Administrator, data_type_string: ezstring, id: 28, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: administrator, version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 9, contentobject_id: 14, data_float: 0, data_int: 0, data_text: User, data_type_string: ezstring, id: 29, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: user, version: 4 } + - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } + - { attribute_original_id: 30, contentclassattribute_id: 12, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: ezuser, id: 30, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 41, data_float: 0, data_int: 0, data_text: Media, data_type_string: ezstring, id: 98, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: media, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'Anonymous users', data_type_string: ezstring, id: 100, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: 'anonymous users', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 42, data_float: 0, data_int: 0, data_text: 'User group for the anonymous user', data_type_string: ezstring, id: 101, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: 'user group for the anonymous user', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 103, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 41, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 109, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 45, data_float: 0, data_int: 0, data_text: Setup, data_type_string: ezstring, id: 123, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: setup, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 124, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 45, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 128, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 49, data_float: 0, data_int: 0, data_text: Images, data_type_string: ezstring, id: 142, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: images, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 49, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 143, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 49, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 146, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 50, data_float: 0, data_int: 0, data_text: Files, data_type_string: ezstring, id: 147, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: files, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 50, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 148, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 50, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 151, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 51, data_float: 0, data_int: 0, data_text: Multimedia, data_type_string: ezstring, id: 152, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: multimedia, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 51, data_float: 0, data_int: 0, data_text: '', data_type_string: ezstring, id: 153, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 51, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 156, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 159, contentobject_id: 52, data_float: 0, data_int: 0, data_text: 'Common INI settings', data_type_string: ezstring, id: 157, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'common ini settings', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 160, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2/, data_type_string: ezinisetting, id: 158, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 161, contentobject_id: 52, data_float: 0, data_int: 0, data_text: /content/view/full/2, data_type_string: ezinisetting, id: 159, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 162, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 160, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 163, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 161, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 164, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '', data_type_string: ezinisetting, id: 162, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 165, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 163, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 166, contentobject_id: 52, data_float: 0, data_int: 0, data_text: disabled, data_type_string: ezinisetting, id: 164, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 167, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 165, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 168, contentobject_id: 52, data_float: 0, data_int: 0, data_text: enabled, data_type_string: ezinisetting, id: 166, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 169, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=100;100', data_type_string: ezinisetting, id: 167, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 170, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=200;200', data_type_string: ezinisetting, id: 168, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 171, contentobject_id: 52, data_float: 0, data_int: 0, data_text: '=geometry/scale=300;300', data_type_string: ezinisetting, id: 169, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 172, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 'Ibexa Demo Design (without demo content)', data_type_string: ezinisetting, id: 170, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 173, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "author=eZ Systems\ncopyright=eZ Systems\ndescription=Content Management System\nkeywords=cms, publish, e-commerce, content management, development framework", data_type_string: ezinisetting, id: 171, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 174, contentobject_id: 54, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"1\" filename=\"Ibexa-Demo-Design-without-demo-content1.png\" suffix=\"png\" basename=\"Ibexa-Demo-Design-without-demo-content1\" dirpath=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-US\" url=\"var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-US/Ibexa-Demo-Design-without-demo-content1.png\" original_filename=\"logo.png\" mime_type=\"image/png\" width=\"138\" height=\"46\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1343140541\"><original attribute_id=\"172\" attribute_version=\"2\" attribute_language=\"eng-US\"/></ezimage>\n", data_type_string: ezimage, id: 172, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 175, contentobject_id: 54, data_float: 0, data_int: 0, data_text: 0, data_type_string: ezpackage, id: 173, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 0, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 177, contentobject_id: 54, data_float: 0, data_int: 0, data_text: spam@ibexa.co, data_type_string: ezinisetting, id: 175, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 178, contentobject_id: 54, data_float: 0, data_int: 0, data_text: ws2/dump_47_demo/index.php, data_type_string: ezinisetting, id: 176, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 177, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 179, contentobject_id: 14, data_float: 0, data_int: 0, data_text: '', data_type_string: eztext, id: 178, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 10, data_float: 0, data_int: 0, data_text: '', data_type_string: ezimage, id: 179, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 3 } + - { attribute_original_id: 0, contentclassattribute_id: 180, contentobject_id: 14, data_float: 0, data_int: 0, data_text: "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n", data_type_string: ezimage, id: 180, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 4 } + - { attribute_original_id: 0, contentclassattribute_id: 4, contentobject_id: 56, data_float: 0, data_int: null, data_text: Design, data_type_string: ezstring, id: 181, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: design, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 155, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 182, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 158, contentobject_id: 56, data_float: 0, data_int: 1, data_text: '', data_type_string: ezboolean, id: 185, language_code: eng-US, language_id: 3, sort_key_int: 1, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 219, contentobject_id: 57, data_float: 0, data_int: null, data_text: Home, data_type_string: ezstring, id: 186, language_code: eng-GB, language_id: 9, sort_key_int: 0, sort_key_string: home, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 212, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Contact Us', data_type_string: ezstring, id: 188, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: 'contact us', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 214, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Firstname Lastname', data_type_string: ezstring, id: 190, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: 'firstname lastname', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 215, contentobject_id: 58, data_float: 0, data_int: null, data_text: Subject, data_type_string: ezstring, id: 191, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: subject, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 216, contentobject_id: 58, data_float: 0, data_int: null, data_text: 'Message text', data_type_string: eztext, id: 192, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: 'message text', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 217, contentobject_id: 58, data_float: 0, data_int: null, data_text: sender@example.com, data_type_string: ezemail, id: 193, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: sender@example.com, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 218, contentobject_id: 58, data_float: 0, data_int: null, data_text: recipient@example.com, data_type_string: ezemail, id: 194, language_code: eng-GB, language_id: 8, sort_key_int: 0, sort_key_string: recipient@example.com, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 279, contentobject_id: 54, data_float: 0, data_int: 23, data_text: 'Site map', data_type_string: ezurl, id: 195, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 280, contentobject_id: 54, data_float: 0, data_int: 24, data_text: 'Tag cloud', data_type_string: ezurl, id: 196, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 281, contentobject_id: 54, data_float: 0, data_int: null, data_text: Login, data_type_string: ezstring, id: 197, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: login, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 282, contentobject_id: 54, data_float: 0, data_int: null, data_text: Logout, data_type_string: ezstring, id: 198, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: logout, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 283, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'My profile', data_type_string: ezstring, id: 199, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'my profile', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 284, contentobject_id: 54, data_float: 0, data_int: null, data_text: Register, data_type_string: ezstring, id: 200, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: register, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 285, contentobject_id: 54, data_float: 0, data_int: null, data_text: /rss/feed/my_feed, data_type_string: ezstring, id: 201, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: /rss/feed/my_feed, version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 286, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Shopping basket content', data_type_string: ezstring, id: 202, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'shopping basket', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 287, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Site settings', data_type_string: ezstring, id: 203, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: 'site settings', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 288, contentobject_id: 54, data_float: 0, data_int: null, data_text: 'Copyright © 2012 <a href="http://ibexa.co" title="eZ Systems">eZ Systems AS</a> (except where otherwise noted). All rights reserved.', data_type_string: eztext, id: 204, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 289, contentobject_id: 54, data_float: 0, data_int: 0, data_text: '', data_type_string: ezboolean, id: 205, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 290, contentobject_id: 54, data_float: 0, data_int: null, data_text: '', data_type_string: eztext, id: 206, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 2 } + - { attribute_original_id: 0, contentclassattribute_id: 6, contentobject_id: 59, data_float: 0, data_int: null, data_text: Partners, data_type_string: ezstring, id: 207, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: partners, version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 7, contentobject_id: 59, data_float: 0, data_int: null, data_text: '', data_type_string: ezstring, id: 208, language_code: eng-US, language_id: 3, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 41, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 215, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 45, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 216, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 49, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 217, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 50, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 218, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 51, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 219, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } + - { attribute_original_id: 0, contentclassattribute_id: 292, contentobject_id: 56, data_float: 0, data_int: null, data_text: '', data_type_string: ezkeyword, id: 220, language_code: eng-US, language_id: 2, sort_key_int: 0, sort_key_string: '', version: 1 } ezcontentobject_link: { } ezcontentobject_name: - - { content_translation: eng-GB, content_version: 1, contentobject_id: 4, language_id: 3, name: Users, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 2, contentobject_id: 10, language_id: 3, name: 'Anonymous User', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 11, language_id: 3, name: 'Guest accounts', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 2, contentobject_id: 11, language_id: 3, name: Members, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 12, language_id: 3, name: 'Administrator users', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 13, language_id: 3, name: Editors, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 3, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 4, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 41, language_id: 3, name: Media, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 42, language_id: 3, name: 'Anonymous users', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 45, language_id: 3, name: Setup, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 49, language_id: 3, name: Images, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 50, language_id: 3, name: Files, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 51, language_id: 3, name: Multimedia, real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 52, language_id: 2, name: 'Common INI settings', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 2, contentobject_id: 54, language_id: 2, name: 'Ibexa Demo Design (without demo content)', real_translation: eng-GB } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 56, language_id: 3, name: Design, real_translation: eng-GB } - - { content_translation: eng-US, content_version: 1, contentobject_id: 57, language_id: 9, name: Home, real_translation: eng-US } - - { content_translation: eng-US, content_version: 1, contentobject_id: 58, language_id: 8, name: 'Contact Us', real_translation: eng-US } - - { content_translation: eng-GB, content_version: 1, contentobject_id: 59, language_id: 3, name: Partners, real_translation: eng-GB } + - { content_translation: eng-US, content_version: 1, contentobject_id: 4, language_id: 3, name: Users, real_translation: eng-US } + - { content_translation: eng-US, content_version: 2, contentobject_id: 10, language_id: 3, name: 'Anonymous User', real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 11, language_id: 3, name: 'Guest accounts', real_translation: eng-US } + - { content_translation: eng-US, content_version: 2, contentobject_id: 11, language_id: 3, name: Members, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 12, language_id: 3, name: 'Administrator users', real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 13, language_id: 3, name: Editors, real_translation: eng-US } + - { content_translation: eng-US, content_version: 3, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-US } + - { content_translation: eng-US, content_version: 4, contentobject_id: 14, language_id: 3, name: 'Administrator User', real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 41, language_id: 3, name: Media, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 42, language_id: 3, name: 'Anonymous users', real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 45, language_id: 3, name: Setup, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 49, language_id: 3, name: Images, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 50, language_id: 3, name: Files, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 51, language_id: 3, name: Multimedia, real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 52, language_id: 2, name: 'Common INI settings', real_translation: eng-US } + - { content_translation: eng-US, content_version: 2, contentobject_id: 54, language_id: 2, name: 'Ibexa Demo Design (without demo content)', real_translation: eng-US } + - { content_translation: eng-US, content_version: 1, contentobject_id: 56, language_id: 3, name: Design, real_translation: eng-US } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 57, language_id: 9, name: Home, real_translation: eng-GB } + - { content_translation: eng-GB, content_version: 1, contentobject_id: 58, language_id: 8, name: 'Contact Us', real_translation: eng-GB } + - { content_translation: eng-US, content_version: 1, contentobject_id: 59, language_id: 3, name: Partners, real_translation: eng-US } ezcontentobject_trash: { } ezcontentobject_tree: - { contentobject_id: 0, contentobject_is_published: 1, contentobject_version: 1, depth: 0, is_hidden: 0, is_invisible: 0, main_node_id: 1, modified_subnode: 1343140542, node_id: 1, parent_node_id: 1, path_identification_string: '', path_string: /1/, priority: 0, remote_id: 629709ba256fe317c3ddcee35453a96a, sort_field: 1, sort_order: 1 } @@ -416,8 +416,8 @@ ezcontentobject_version: - { contentobject_id: 59, created: 1343140541, creator_id: 14, id: 507, initial_language_id: 2, language_mask: 3, modified: 1343140541, status: 1, user_id: 0, version: 1, workflow_event_pos: 0 } - { contentobject_id: 11, created: 1343140541, creator_id: 14, id: 508, initial_language_id: 2, language_mask: 3, modified: 1343140541, status: 1, user_id: 0, version: 2, workflow_event_pos: 0 } ezimagefile: - - { contentobject_attribute_id: 172, filepath: var/storage/images/setup/ez_publish/172-1-eng-US/ez_publish., id: 1 } - - { contentobject_attribute_id: 172, filepath: var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-GB/Ibexa-Demo-Design-without-demo-content1.png, id: 2 } + - { contentobject_attribute_id: 172, filepath: var/storage/images/setup/ez_publish/172-1-eng-GB/ez_publish., id: 1 } + - { contentobject_attribute_id: 172, filepath: var/ibexa_demo_site/storage/images/design/plain-site/172-2-eng-US/Ibexa-Demo-Design-without-demo-content1.png, id: 2 } eznode_assignment: - { contentobject_id: 8, contentobject_version: 2, from_node_id: 0, id: 4, is_main: 1, op_code: 2, parent_node: 5, parent_remote_id: '', remote_id: 0, sort_field: 1, sort_order: 1, priority: 0, is_hidden: 0 } - { contentobject_id: 42, contentobject_version: 1, from_node_id: 0, id: 5, is_main: 1, op_code: 2, parent_node: 5, parent_remote_id: '', remote_id: 0, sort_field: 9, sort_order: 1, priority: 0, is_hidden: 0 } From 3e897ff76369e6e603988487b307a7b96ca8b4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 25 Sep 2026 18:16:36 +0200 Subject: [PATCH 29/88] IBX-11939: [Doctrine Migrations] Added Doctrine Migrations-based schema and data install path (inlined SQL) Rebuilt as a single commit on the refreshed base; replaces these 2 commits: - IBX-11939: [Doctrine Migrations] Added the 5.0 schema rename and legacy identifier migrations - IBX-11939: Removed the deprecated InstallerTagPass --- .../Resources/config/doctrine_migrations.yml | 16 + .../Compiler/InstallerTagPass.php | 26 - .../FixLegacyIdentifiersMigration.php | 58 ++ .../Migration/InstallSchemaMigration.php | 2 +- .../Migration/RenameSchemaTo5_0Migration.php | 56 ++ .../SchemaBuilderEventSchemaProvider.php | 5 +- .../sql/fix-legacy-identifiers-mysql.sql | 5 + .../sql/fix-legacy-identifiers-postgresql.sql | 5 + .../sql/fix-legacy-identifiers-sqlite.sql | 5 + .../sql/rename-schema-to-5-0-mysql.sql | 353 +++++++++++ .../sql/rename-schema-to-5-0-postgresql.sql | 415 +++++++++++++ .../sql/rename-schema-to-5-0-sqlite.sql | 555 ++++++++++++++++++ .../Compiler/InstallerTagPassTest.php | 56 -- .../IbexaInstallerExtensionTest.php | 3 +- .../IbexaRepositoryInstallerBundleTest.php | 6 +- 15 files changed, 1474 insertions(+), 92 deletions(-) delete mode 100644 src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php create mode 100644 src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-sqlite.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-sqlite.sql delete mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php diff --git a/src/bundle/Core/Resources/config/doctrine_migrations.yml b/src/bundle/Core/Resources/config/doctrine_migrations.yml index 78ab3f7026..efdb675c83 100644 --- a/src/bundle/Core/Resources/config/doctrine_migrations.yml +++ b/src/bundle/Core/Resources/config/doctrine_migrations.yml @@ -15,6 +15,14 @@ services: tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + Ibexa\Bundle\RepositoryInstaller\Migration\RenameSchemaTo5_0Migration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: autowire: true public: false @@ -22,3 +30,11 @@ services: $connection: '@ibexa.persistence.connection' tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\FixLegacyIdentifiersMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php deleted file mode 100644 index 6477efb8ff..0000000000 --- a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -/** - * @copyright Copyright (C) Ibexa AS. All rights reserved. - * @license For full copyright and license information view LICENSE file distributed with this source code. - */ - -namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; - -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; -use Symfony\Component\DependencyInjection\ContainerBuilder; - -/** - * @deprecated 4.6.27 Installers are now injected into - * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers} via a - * `!tagged_locator` argument configured in services.yml, so this compiler pass is no longer needed. - * Will be removed in 5.0. - */ -class InstallerTagPass implements CompilerPassInterface -{ - public const string INSTALLER_TAG = 'ibexa.installer'; - - public function process(ContainerBuilder $container): void - { - } -} diff --git a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php new file mode 100644 index 0000000000..eeb416e905 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php @@ -0,0 +1,58 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Doctrine\DBAL\Schema\Schema; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; + +/** + * Fixes 3 stale legacy identifier values ("ez_lock"/"ezstring") left over from before the + * 5.0 renames, on the tables RenameSchemaTo5_0Migration renames them onto. Split out of that + * migration (rather than guarded by its schema-presence check) because this is a data fix, + * not a schema change: an install that built its schema via schema.yaml directly already has + * the renamed tables (so RenameSchemaTo5_0Migration skips), but its actual row data may still + * hold the old identifier strings, since schema.yaml only defines structure, not content. + * Runs unconditionally -- each UPDATE is a no-op via its own WHERE clause once already fixed, + * and by running strictly after RenameSchemaTo5_0Migration (same target version, later + * creation date), the tables it touches are always at their final names by the time this + * runs, whether the rename happened moments earlier in this same run or already existed. + */ +final class FixLegacyIdentifiersMigration extends AbstractSqlMigration implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Fixes stale "ez_lock"/"ezstring" legacy identifier values left over from the 5.0 renames'; + } + + public static function getTargetVersion(): string + { + return '5.0.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-07-20 00:00:01'); + } + + public function up(Schema $schema): void + { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index fc7d0b875a..b68f8392e2 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -39,7 +39,7 @@ public function up(Schema $schema): void // migration creates): an install that built its schema via schema.yaml (rather than // through this migration) never has "ezcontentobject" -- it already has // "ibexa_content" directly. - if ($schema->hasTable('ezcontentobject')) { + if ($schema->hasTable('ibexa_content')) { return; } diff --git a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php new file mode 100644 index 0000000000..255b4707ba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php @@ -0,0 +1,56 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Doctrine\DBAL\Schema\Schema; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; + +/** + * Renames the legacy eZ Publish-style core database schema (ez*) to the Ibexa naming + * scheme (ibexa_*) introduced in 5.0. This is the incremental diff on top of + * InstallSchemaMigration's 4.6.0 baseline; a fresh 6.0 install runs both in sequence, + * while an existing 4.6 install only needs this one to reach the 5.0/6.0 shape. + */ +final class RenameSchemaTo5_0Migration extends AbstractSqlMigration implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Renames the legacy core database schema to the Ibexa naming scheme (introduced in 5.0)'; + } + + public static function getTargetVersion(): string + { + return '5.0.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-07-20 00:00:00'); + } + + public function up(Schema $schema): void + { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ($schema->hasTable('ibexa_content')) { + return; + } + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/rename-schema-to-5-0-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/rename-schema-to-5-0-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/rename-schema-to-5-0-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php index 6e4811d1cf..4fdf2b637f 100644 --- a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php +++ b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php @@ -23,11 +23,8 @@ */ final class SchemaBuilderEventSchemaProvider implements SchemaProvider { - private SchemaBuilderInterface $schemaBuilder; - - public function __construct(SchemaBuilderInterface $schemaBuilder) + public function __construct(private readonly SchemaBuilderInterface $schemaBuilder) { - $this->schemaBuilder = $schemaBuilder; } public function createSchema(): Schema diff --git a/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-mysql.sql new file mode 100644 index 0000000000..2dc24d2654 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-mysql.sql @@ -0,0 +1,5 @@ +UPDATE ibexa_object_state_group SET identifier = 'ibexa_lock' WHERE identifier = 'ez_lock'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_type_field_definition SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_field SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-postgresql.sql new file mode 100644 index 0000000000..2dc24d2654 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-postgresql.sql @@ -0,0 +1,5 @@ +UPDATE ibexa_object_state_group SET identifier = 'ibexa_lock' WHERE identifier = 'ez_lock'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_type_field_definition SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_field SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-sqlite.sql new file mode 100644 index 0000000000..2dc24d2654 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/fix-legacy-identifiers-sqlite.sql @@ -0,0 +1,5 @@ +UPDATE ibexa_object_state_group SET identifier = 'ibexa_lock' WHERE identifier = 'ez_lock'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_type_field_definition SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_field SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql new file mode 100644 index 0000000000..f9e9cffa91 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql @@ -0,0 +1,353 @@ +ALTER TABLE ezbinaryfile RENAME TO ibexa_binary_file; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state RENAME TO ibexa_object_state; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_object_state RENAME INDEX ezcobj_state_priority TO ibexa_object_state_priority; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_object_state RENAME INDEX ezcobj_state_lmask TO ibexa_object_state_lmask; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_object_state RENAME INDEX ezcobj_state_identifier TO ibexa_object_state_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_group RENAME TO ibexa_object_state_group; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_object_state_group RENAME INDEX ezcobj_state_group_lmask TO ibexa_object_state_group_lmask; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_object_state_group RENAME INDEX ezcobj_state_group_identifier TO ibexa_object_state_group_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_group_language RENAME TO ibexa_object_state_group_language; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_language RENAME TO ibexa_object_state_language; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_link RENAME TO ibexa_object_state_link; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontent_language RENAME TO ibexa_content_language; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_language RENAME INDEX ezcontent_language_name TO ibexa_content_language_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark RENAME TO ibexa_content_bookmark; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark RENAME INDEX ezcontentbrowsebookmark_location TO ibexa_content_bookmark_location; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark RENAME INDEX ezcontentbrowsebookmark_user TO ibexa_content_bookmark_user; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark RENAME INDEX ezcontentbrowsebookmark_user_location TO ibexa_content_bookmark_user_location; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass RENAME TO ibexa_content_type; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type RENAME INDEX ezcontentclass_version TO ibexa_content_type_version; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type RENAME INDEX ezcontentclass_identifier TO ibexa_content_type_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute RENAME TO ibexa_content_type_field_definition; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME INDEX ezcontentclass_attr_ccid TO ibexa_content_type_field_definition_ctid; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME INDEX ezcontentclass_attr_dts TO ibexa_content_type_field_definition_dts; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml RENAME TO ibexa_content_type_field_definition_ml; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml DROP FOREIGN KEY ezcontentclass_attribute_ml_lang_fk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml ADD CONSTRAINT ibexa_content_type_field_definition_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ibexa_content_language(id) ON DELETE CASCADE ON UPDATE CASCADE; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_classgroup RENAME TO ibexa_content_type_group_assignment; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_name RENAME TO ibexa_content_type_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclassgroup RENAME TO ibexa_content_type_group; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_tree RENAME TO ibexa_content_tree; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_p_node_id TO ibexa_content_tree_p_node_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_path_ident TO ibexa_content_tree_path_ident; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_contentobject_id_path_string TO ibexa_content_tree_contentobject_id_path_string; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_co_id TO ibexa_content_tree_co_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_depth TO ibexa_content_tree_depth; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_path TO ibexa_content_tree_path; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX modified_subnode TO ibexa_content_modified_subnode; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_tree RENAME INDEX ezcontentobject_tree_remote_id TO ibexa_content_tree_remote_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark DROP FOREIGN KEY ezcontentbrowsebookmark_location_fk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark ADD CONSTRAINT ibexa_content_bookmark_location_fk FOREIGN KEY (node_id) REFERENCES ibexa_content_tree(node_id) ON DELETE CASCADE; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject RENAME TO ibexa_content; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_classid TO ibexa_content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_lmask TO ibexa_content_lmask; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_pub TO ibexa_content_pub; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_section TO ibexa_content_section; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_currentversion TO ibexa_content_currentversion; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_owner TO ibexa_content_owner; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_status TO ibexa_content_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME INDEX ezcontentobject_remote_id TO ibexa_content_remote_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_attribute RENAME TO ibexa_content_field; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME INDEX ezcontentobject_attribute_co_id_ver_lang_code TO ibexa_content_field_co_id_ver_lang_code; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME INDEX ezcontentobject_classattr_id TO ibexa_content_field_classattr_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME INDEX ezcontentobject_attribute_language_code TO ibexa_content_field_language_code; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME INDEX ezcontentobject_attribute_co_id_ver TO ibexa_content_field_co_id_ver; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_link RENAME TO ibexa_content_relation; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME INDEX ezco_link_to_co_id TO ibexa_content_relation_to_co_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME INDEX ezco_link_from TO ibexa_content_relation_from; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME INDEX ezco_link_cca_id TO ibexa_content_relation_cca_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_name RENAME TO ibexa_content_name; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_name RENAME INDEX ezcontentobject_name_lang_id TO ibexa_content_name_lang_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_name RENAME INDEX ezcontentobject_name_cov_id TO ibexa_content_name_cov_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_name RENAME INDEX ezcontentobject_name_name TO ibexa_content_name_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_trash RENAME TO ibexa_content_trash; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_trash RENAME INDEX ezcobj_trash_depth TO ibexa_content_trash_depth; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_trash RENAME INDEX ezcobj_trash_p_node_id TO ibexa_content_trash_p_node_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_trash RENAME INDEX ezcobj_trash_path_ident TO ibexa_content_trash_path_ident; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_trash RENAME INDEX ezcobj_trash_co_id TO ibexa_content_trash_co_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_trash RENAME INDEX ezcobj_trash_modified_subnode TO ibexa_content_trash_modified_subnode; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_trash RENAME INDEX ezcobj_trash_path TO ibexa_content_trash_path; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_version RENAME TO ibexa_content_version; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version RENAME INDEX ezcobj_version_status TO ibexa_content_version_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version RENAME INDEX idx_object_version_objver TO ibexa_content_version_idx_ver; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version RENAME INDEX ezcontobj_version_obj_status TO ibexa_content_version_idx_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version RENAME INDEX ezcobj_version_creator_id TO ibexa_content_version_creator_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezdfsfile RENAME TO ibexa_dfs_file; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_name_trunk TO ibexa_dfs_file_name_trunk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_expired_name TO ibexa_dfs_file_expired_name; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_name TO ibexa_dfs_file_name; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_mtime TO ibexa_dfs_file_mtime; +-- ibexa:sql-statement-separator +ALTER TABLE ezgmaplocation RENAME TO ibexa_map_location; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_map_location RENAME INDEX latitude_longitude_key TO ibexa_map_location_latitude_longitude_key; +-- ibexa:sql-statement-separator +ALTER TABLE ezimagefile RENAME TO ibexa_image_file; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_image_file RENAME INDEX ezimagefile_file TO ibexa_image_file_file; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_image_file RENAME INDEX ezimagefile_coid TO ibexa_image_file_coid; +-- ibexa:sql-statement-separator +ALTER TABLE ezkeyword RENAME TO ibexa_keyword; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_keyword RENAME INDEX ezkeyword_keyword TO ibexa_keyword_keyword; +-- ibexa:sql-statement-separator +ALTER TABLE ezkeyword_attribute_link RENAME TO ibexa_keyword_field_link; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_keyword_field_link RENAME INDEX ezkeyword_attr_link_oaid TO ibexa_keyword_field_link_oaid; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_keyword_field_link RENAME INDEX ezkeyword_attr_link_kid_oaid TO ibexa_keyword_field_link_kid_oaid; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_keyword_field_link RENAME INDEX ezkeyword_attr_link_oaid_ver TO ibexa_keyword_field_link_oaid_ver; +-- ibexa:sql-statement-separator +ALTER TABLE ezmedia RENAME TO ibexa_media; +-- ibexa:sql-statement-separator +ALTER TABLE eznode_assignment RENAME TO ibexa_node_assignment; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_node_assignment RENAME INDEX eznode_assignment_is_main TO ibexa_node_assignment_is_main; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_node_assignment RENAME INDEX eznode_assignment_coid_cov TO ibexa_node_assignment_coid_cov; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_node_assignment RENAME INDEX eznode_assignment_parent_node TO ibexa_node_assignment_parent_node; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_node_assignment RENAME INDEX eznode_assignment_co_version TO ibexa_node_assignment_co_version; +-- ibexa:sql-statement-separator +ALTER TABLE eznotification RENAME TO ibexa_notification; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_notification RENAME INDEX eznotification_owner_is_pending TO ibexa_notification_owner_is_pending; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_notification RENAME INDEX eznotification_owner TO ibexa_notification_owner; +-- ibexa:sql-statement-separator +ALTER TABLE ezpackage RENAME TO ibexa_package; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy RENAME TO ibexa_policy; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_policy RENAME INDEX ezpolicy_role_id TO ibexa_policy_role_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_policy RENAME INDEX ezpolicy_original_id TO ibexa_policy_original_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy_limitation RENAME TO ibexa_policy_limitation; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_policy_limitation RENAME INDEX policy_id TO ibexa_policy_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy_limitation_value RENAME TO ibexa_policy_limitation_value; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_policy_limitation_value RENAME INDEX ezpolicy_limit_value_limit_id TO ibexa_policy_limit_value_limit_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_policy_limitation_value RENAME INDEX ezpolicy_limitation_value_val TO ibexa_policy_limitation_value_val; +-- ibexa:sql-statement-separator +ALTER TABLE ezpreferences RENAME TO ibexa_user_preference; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_user_preference RENAME INDEX ezpreferences_user_id_idx TO ibexa_user_preference_user_id_idx; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_user_preference RENAME INDEX ezpreferences_name TO ibexa_user_preference_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezrole RENAME TO ibexa_role; +-- ibexa:sql-statement-separator +ALTER TABLE ezsearch_object_word_link RENAME TO ibexa_search_object_word_link; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME INDEX ezsearch_object_word_link_object TO ibexa_search_object_word_link_object; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME INDEX ezsearch_object_word_link_identifier TO ibexa_search_object_word_link_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME INDEX ezsearch_object_word_link_integer_value TO ibexa_search_object_word_link_integer_value; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME INDEX ezsearch_object_word_link_word TO ibexa_search_object_word_link_word; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME INDEX ezsearch_object_word_link_frequency TO ibexa_search_object_word_link_frequency; +-- ibexa:sql-statement-separator +ALTER TABLE ezsearch_word RENAME TO ibexa_search_word; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_word RENAME INDEX ezsearch_word_word_i TO ibexa_search_word_word_i; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_word RENAME INDEX ezsearch_word_obj_count TO ibexa_search_word_obj_count; +-- ibexa:sql-statement-separator +ALTER TABLE ezsection RENAME TO ibexa_section; +-- ibexa:sql-statement-separator +ALTER TABLE ezsite_data RENAME TO ibexa_site_data; +-- ibexa:sql-statement-separator +ALTER TABLE ezurl RENAME TO ibexa_url; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url RENAME INDEX ezurl_url TO ibexa_url_url; +-- ibexa:sql-statement-separator +ALTER TABLE ezurl_object_link RENAME TO ibexa_url_content_link; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_content_link RENAME INDEX ezurl_ol_coa_id TO ibexa_url_ol_coa_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_content_link RENAME INDEX ezurl_ol_url_id TO ibexa_url_ol_url_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_content_link RENAME INDEX ezurl_ol_coa_version TO ibexa_url_ol_coa_version; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_content_link RENAME INDEX ezurl_ol_coa_id_cav TO ibexa_url_ol_coa_id_cav; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias RENAME TO ibexa_url_alias; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias RENAME INDEX ezurlalias_source_md5 TO ibexa_url_alias_source_md5; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias RENAME INDEX ezurlalias_wcard_fwd TO ibexa_url_alias_wcard_fwd; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias RENAME INDEX ezurlalias_forward_to_id TO ibexa_url_alias_forward_to_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias RENAME INDEX ezurlalias_imp_wcard_fwd TO ibexa_url_alias_imp_wcard_fwd; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias RENAME INDEX ezurlalias_source_url TO ibexa_url_alias_source_url; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias RENAME INDEX ezurlalias_desturl TO ibexa_url_alias_desturl; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias_ml RENAME TO ibexa_url_alias_ml; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_actt_org_al TO ibexa_url_alias_ml_actt_org_al; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_text_lang TO ibexa_url_alias_ml_text_lang; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_par_act_id_lnk TO ibexa_url_alias_ml_par_act_id_lnk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_par_lnk_txt TO ibexa_url_alias_ml_par_lnk_txt; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_act_org TO ibexa_url_alias_ml_act_org; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_text TO ibexa_url_alias_ml_text; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_link TO ibexa_url_alias_ml_link; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_url_alias_ml RENAME INDEX ezurlalias_ml_id TO ibexa_url_alias_ml_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias_ml_incr RENAME TO ibexa_url_alias_ml_incr; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlwildcard RENAME TO ibexa_url_wildcard; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser RENAME TO ibexa_user; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_user RENAME INDEX ezuser_login TO ibexa_user_login; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_accountkey RENAME TO ibexa_user_accountkey; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_role RENAME TO ibexa_user_role; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_user_role RENAME INDEX ezuser_role_role_id TO ibexa_user_role_role_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_user_role RENAME INDEX ezuser_role_contentobject_id TO ibexa_user_role_contentobject_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_setting RENAME TO ibexa_user_setting; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark DROP FOREIGN KEY ezcontentbrowsebookmark_user_fk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark ADD CONSTRAINT ibexa_content_bookmark_user_fk FOREIGN KEY (user_id) REFERENCES ibexa_user(contentobject_id) ON DELETE CASCADE; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_group_assignment RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_name RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type RENAME INDEX ibexa_content_type_version TO ibexa_content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_group_assignment RENAME COLUMN contentclass_version TO content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_name RENAME COLUMN contentclass_version TO content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME COLUMN contentclass_attribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME COLUMN contentclassattribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME INDEX ibexa_content_field_classattr_id TO ibexa_content_field_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME COLUMN contentclassattribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME INDEX ibexa_content_relation_cca_id TO ibexa_content_relation_ccfd_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME COLUMN contentclass_attribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +UPDATE ibexa_object_state_group SET identifier = 'ibexa_lock' WHERE identifier = 'ez_lock'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_type_field_definition SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_field SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql new file mode 100644 index 0000000000..07150fa771 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql @@ -0,0 +1,415 @@ +ALTER TABLE ezbinaryfile RENAME TO ibexa_binary_file; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state RENAME TO ibexa_object_state; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_state_priority RENAME TO ibexa_object_state_priority; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_state_lmask RENAME TO ibexa_object_state_lmask; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_state_identifier RENAME TO ibexa_object_state_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_group RENAME TO ibexa_object_state_group; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_state_group_lmask RENAME TO ibexa_object_state_group_lmask; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_state_group_identifier RENAME TO ibexa_object_state_group_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_group_language RENAME TO ibexa_object_state_group_language; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_language RENAME TO ibexa_object_state_language; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_link RENAME TO ibexa_object_state_link; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontent_language RENAME TO ibexa_content_language; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontent_language_name RENAME TO ibexa_content_language_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark RENAME TO ibexa_content_bookmark; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentbrowsebookmark_location RENAME TO ibexa_content_bookmark_location; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentbrowsebookmark_user RENAME TO ibexa_content_bookmark_user; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentbrowsebookmark_user_location RENAME TO ibexa_content_bookmark_user_location; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass RENAME TO ibexa_content_type; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentclass_version RENAME TO ibexa_content_type_version; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentclass_identifier RENAME TO ibexa_content_type_identifier; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute RENAME TO ibexa_content_type_field_definition; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentclass_attr_ccid RENAME TO ibexa_content_type_field_definition_ctid; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentclass_attr_dts RENAME TO ibexa_content_type_field_definition_dts; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml RENAME TO ibexa_content_type_field_definition_ml; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml DROP CONSTRAINT ezcontentclass_attribute_ml_lang_fk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml ADD CONSTRAINT ibexa_content_type_field_definition_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ibexa_content_language(id) ON DELETE CASCADE ON UPDATE CASCADE; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_classgroup RENAME TO ibexa_content_type_group_assignment; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_name RENAME TO ibexa_content_type_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclassgroup RENAME TO ibexa_content_type_group; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_tree RENAME TO ibexa_content_tree; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_p_node_id RENAME TO ibexa_content_tree_p_node_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_path_ident RENAME TO ibexa_content_tree_path_ident; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_contentobject_id_path_string RENAME TO ibexa_content_tree_contentobject_id_path_string; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_co_id RENAME TO ibexa_content_tree_co_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_depth RENAME TO ibexa_content_tree_depth; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_path RENAME TO ibexa_content_tree_path; +-- ibexa:sql-statement-separator +ALTER INDEX modified_subnode RENAME TO ibexa_content_modified_subnode; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_tree_remote_id RENAME TO ibexa_content_tree_remote_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark DROP CONSTRAINT ezcontentbrowsebookmark_location_fk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark ADD CONSTRAINT ibexa_content_bookmark_location_fk FOREIGN KEY (node_id) REFERENCES ibexa_content_tree(node_id) ON DELETE CASCADE; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject RENAME TO ibexa_content; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_classid RENAME TO ibexa_content_type_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_lmask RENAME TO ibexa_content_lmask; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_pub RENAME TO ibexa_content_pub; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_section RENAME TO ibexa_content_section; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_currentversion RENAME TO ibexa_content_currentversion; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_owner RENAME TO ibexa_content_owner; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_status RENAME TO ibexa_content_status; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_remote_id RENAME TO ibexa_content_remote_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_attribute RENAME TO ibexa_content_field; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_attribute_co_id_ver_lang_code RENAME TO ibexa_content_field_co_id_ver_lang_code; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_classattr_id RENAME TO ibexa_content_field_classattr_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_attribute_language_code RENAME TO ibexa_content_field_language_code; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_attribute_co_id_ver RENAME TO ibexa_content_field_co_id_ver; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_link RENAME TO ibexa_content_relation; +-- ibexa:sql-statement-separator +ALTER INDEX ezco_link_to_co_id RENAME TO ibexa_content_relation_to_co_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezco_link_from RENAME TO ibexa_content_relation_from; +-- ibexa:sql-statement-separator +ALTER INDEX ezco_link_cca_id RENAME TO ibexa_content_relation_cca_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_name RENAME TO ibexa_content_name; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_name_lang_id RENAME TO ibexa_content_name_lang_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_name_cov_id RENAME TO ibexa_content_name_cov_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontentobject_name_name RENAME TO ibexa_content_name_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_trash RENAME TO ibexa_content_trash; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_trash_depth RENAME TO ibexa_content_trash_depth; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_trash_p_node_id RENAME TO ibexa_content_trash_p_node_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_trash_path_ident RENAME TO ibexa_content_trash_path_ident; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_trash_co_id RENAME TO ibexa_content_trash_co_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_trash_modified_subnode RENAME TO ibexa_content_trash_modified_subnode; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_trash_path RENAME TO ibexa_content_trash_path; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_version RENAME TO ibexa_content_version; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_version_status RENAME TO ibexa_content_version_status; +-- ibexa:sql-statement-separator +ALTER INDEX idx_object_version_objver RENAME TO ibexa_content_version_idx_ver; +-- ibexa:sql-statement-separator +ALTER INDEX ezcontobj_version_obj_status RENAME TO ibexa_content_version_idx_status; +-- ibexa:sql-statement-separator +ALTER INDEX ezcobj_version_creator_id RENAME TO ibexa_content_version_creator_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezdfsfile RENAME TO ibexa_dfs_file; +-- ibexa:sql-statement-separator +ALTER INDEX ezdfsfile_name_trunk RENAME TO ibexa_dfs_file_name_trunk; +-- ibexa:sql-statement-separator +ALTER INDEX ezdfsfile_expired_name RENAME TO ibexa_dfs_file_expired_name; +-- ibexa:sql-statement-separator +ALTER INDEX ezdfsfile_name RENAME TO ibexa_dfs_file_name; +-- ibexa:sql-statement-separator +ALTER INDEX ezdfsfile_mtime RENAME TO ibexa_dfs_file_mtime; +-- ibexa:sql-statement-separator +ALTER TABLE ezgmaplocation RENAME TO ibexa_map_location; +-- ibexa:sql-statement-separator +ALTER INDEX latitude_longitude_key RENAME TO ibexa_map_location_latitude_longitude_key; +-- ibexa:sql-statement-separator +ALTER TABLE ezimagefile RENAME TO ibexa_image_file; +-- ibexa:sql-statement-separator +ALTER INDEX ezimagefile_file RENAME TO ibexa_image_file_file; +-- ibexa:sql-statement-separator +ALTER INDEX ezimagefile_coid RENAME TO ibexa_image_file_coid; +-- ibexa:sql-statement-separator +ALTER TABLE ezkeyword RENAME TO ibexa_keyword; +-- ibexa:sql-statement-separator +ALTER INDEX ezkeyword_keyword RENAME TO ibexa_keyword_keyword; +-- ibexa:sql-statement-separator +ALTER TABLE ezkeyword_attribute_link RENAME TO ibexa_keyword_field_link; +-- ibexa:sql-statement-separator +ALTER INDEX ezkeyword_attr_link_oaid RENAME TO ibexa_keyword_field_link_oaid; +-- ibexa:sql-statement-separator +ALTER INDEX ezkeyword_attr_link_kid_oaid RENAME TO ibexa_keyword_field_link_kid_oaid; +-- ibexa:sql-statement-separator +ALTER INDEX ezkeyword_attr_link_oaid_ver RENAME TO ibexa_keyword_field_link_oaid_ver; +-- ibexa:sql-statement-separator +ALTER TABLE ezmedia RENAME TO ibexa_media; +-- ibexa:sql-statement-separator +ALTER TABLE eznode_assignment RENAME TO ibexa_node_assignment; +-- ibexa:sql-statement-separator +ALTER INDEX eznode_assignment_is_main RENAME TO ibexa_node_assignment_is_main; +-- ibexa:sql-statement-separator +ALTER INDEX eznode_assignment_coid_cov RENAME TO ibexa_node_assignment_coid_cov; +-- ibexa:sql-statement-separator +ALTER INDEX eznode_assignment_parent_node RENAME TO ibexa_node_assignment_parent_node; +-- ibexa:sql-statement-separator +ALTER INDEX eznode_assignment_co_version RENAME TO ibexa_node_assignment_co_version; +-- ibexa:sql-statement-separator +ALTER TABLE eznotification RENAME TO ibexa_notification; +-- ibexa:sql-statement-separator +ALTER INDEX eznotification_owner_is_pending RENAME TO ibexa_notification_owner_is_pending; +-- ibexa:sql-statement-separator +ALTER INDEX eznotification_owner RENAME TO ibexa_notification_owner; +-- ibexa:sql-statement-separator +ALTER TABLE ezpackage RENAME TO ibexa_package; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy RENAME TO ibexa_policy; +-- ibexa:sql-statement-separator +ALTER INDEX ezpolicy_role_id RENAME TO ibexa_policy_role_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezpolicy_original_id RENAME TO ibexa_policy_original_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy_limitation RENAME TO ibexa_policy_limitation; +-- ibexa:sql-statement-separator +ALTER INDEX policy_id RENAME TO ibexa_policy_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy_limitation_value RENAME TO ibexa_policy_limitation_value; +-- ibexa:sql-statement-separator +ALTER INDEX ezpolicy_limit_value_limit_id RENAME TO ibexa_policy_limit_value_limit_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezpolicy_limitation_value_val RENAME TO ibexa_policy_limitation_value_val; +-- ibexa:sql-statement-separator +ALTER TABLE ezpreferences RENAME TO ibexa_user_preference; +-- ibexa:sql-statement-separator +ALTER INDEX ezpreferences_user_id_idx RENAME TO ibexa_user_preference_user_id_idx; +-- ibexa:sql-statement-separator +ALTER INDEX ezpreferences_name RENAME TO ibexa_user_preference_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezrole RENAME TO ibexa_role; +-- ibexa:sql-statement-separator +ALTER TABLE ezsearch_object_word_link RENAME TO ibexa_search_object_word_link; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_object_word_link_object RENAME TO ibexa_search_object_word_link_object; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_object_word_link_identifier RENAME TO ibexa_search_object_word_link_identifier; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_object_word_link_integer_value RENAME TO ibexa_search_object_word_link_integer_value; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_object_word_link_word RENAME TO ibexa_search_object_word_link_word; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_object_word_link_frequency RENAME TO ibexa_search_object_word_link_frequency; +-- ibexa:sql-statement-separator +ALTER TABLE ezsearch_word RENAME TO ibexa_search_word; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_word_word_i RENAME TO ibexa_search_word_word_i; +-- ibexa:sql-statement-separator +ALTER INDEX ezsearch_word_obj_count RENAME TO ibexa_search_word_obj_count; +-- ibexa:sql-statement-separator +ALTER TABLE ezsection RENAME TO ibexa_section; +-- ibexa:sql-statement-separator +ALTER TABLE ezsite_data RENAME TO ibexa_site_data; +-- ibexa:sql-statement-separator +ALTER TABLE ezurl RENAME TO ibexa_url; +-- ibexa:sql-statement-separator +ALTER INDEX ezurl_url RENAME TO ibexa_url_url; +-- ibexa:sql-statement-separator +ALTER TABLE ezurl_object_link RENAME TO ibexa_url_content_link; +-- ibexa:sql-statement-separator +ALTER INDEX ezurl_ol_coa_id RENAME TO ibexa_url_ol_coa_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezurl_ol_url_id RENAME TO ibexa_url_ol_url_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezurl_ol_coa_version RENAME TO ibexa_url_ol_coa_version; +-- ibexa:sql-statement-separator +ALTER INDEX ezurl_ol_coa_id_cav RENAME TO ibexa_url_ol_coa_id_cav; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias RENAME TO ibexa_url_alias; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_source_md5 RENAME TO ibexa_url_alias_source_md5; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_wcard_fwd RENAME TO ibexa_url_alias_wcard_fwd; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_forward_to_id RENAME TO ibexa_url_alias_forward_to_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_imp_wcard_fwd RENAME TO ibexa_url_alias_imp_wcard_fwd; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_source_url RENAME TO ibexa_url_alias_source_url; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_desturl RENAME TO ibexa_url_alias_desturl; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias_ml RENAME TO ibexa_url_alias_ml; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_actt_org_al RENAME TO ibexa_url_alias_ml_actt_org_al; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_text_lang RENAME TO ibexa_url_alias_ml_text_lang; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_par_act_id_lnk RENAME TO ibexa_url_alias_ml_par_act_id_lnk; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_par_lnk_txt RENAME TO ibexa_url_alias_ml_par_lnk_txt; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_act_org RENAME TO ibexa_url_alias_ml_act_org; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_text RENAME TO ibexa_url_alias_ml_text; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_link RENAME TO ibexa_url_alias_ml_link; +-- ibexa:sql-statement-separator +ALTER INDEX ezurlalias_ml_id RENAME TO ibexa_url_alias_ml_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias_ml_incr RENAME TO ibexa_url_alias_ml_incr; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlwildcard RENAME TO ibexa_url_wildcard; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser RENAME TO ibexa_user; +-- ibexa:sql-statement-separator +ALTER INDEX ezuser_login RENAME TO ibexa_user_login; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_accountkey RENAME TO ibexa_user_accountkey; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_role RENAME TO ibexa_user_role; +-- ibexa:sql-statement-separator +ALTER INDEX ezuser_role_role_id RENAME TO ibexa_user_role_role_id; +-- ibexa:sql-statement-separator +ALTER INDEX ezuser_role_contentobject_id RENAME TO ibexa_user_role_contentobject_id; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_setting RENAME TO ibexa_user_setting; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark DROP CONSTRAINT ezcontentbrowsebookmark_user_fk; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_bookmark ADD CONSTRAINT ibexa_content_bookmark_user_fk FOREIGN KEY (user_id) REFERENCES ibexa_user(contentobject_id) ON DELETE CASCADE; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_group_assignment RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_name RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER INDEX ibexa_content_type_version RENAME TO ibexa_content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_group_assignment RENAME COLUMN contentclass_version TO content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_name RENAME COLUMN contentclass_version TO content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME COLUMN contentclass_attribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME COLUMN contentclassattribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER INDEX ibexa_content_field_classattr_id RENAME TO ibexa_content_field_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME COLUMN contentclassattribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER INDEX ibexa_content_relation_cca_id RENAME TO ibexa_content_relation_ccfd_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME COLUMN contentclass_attribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcobj_state_group_id_seq RENAME TO ibexa_object_state_group_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcobj_state_id_seq RENAME TO ibexa_object_state_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentbrowsebookmark_id_seq RENAME TO ibexa_content_bookmark_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentclass_attribute_id_seq RENAME TO ibexa_content_type_field_definition_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentclass_id_seq RENAME TO ibexa_content_type_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentclassgroup_id_seq RENAME TO ibexa_content_type_group_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentobject_attribute_id_seq RENAME TO ibexa_content_field_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentobject_id_seq RENAME TO ibexa_content_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentobject_link_id_seq RENAME TO ibexa_content_relation_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentobject_tree_node_id_seq RENAME TO ibexa_content_tree_node_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezcontentobject_version_id_seq RENAME TO ibexa_content_version_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezimagefile_id_seq RENAME TO ibexa_image_file_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezkeyword_attribute_link_id_seq RENAME TO ibexa_keyword_field_link_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezkeyword_id_seq RENAME TO ibexa_keyword_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE eznode_assignment_id_seq RENAME TO ibexa_node_assignment_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE eznotification_id_seq RENAME TO ibexa_notification_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezpackage_id_seq RENAME TO ibexa_package_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezpolicy_id_seq RENAME TO ibexa_policy_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezpolicy_limitation_id_seq RENAME TO ibexa_policy_limitation_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezpolicy_limitation_value_id_seq RENAME TO ibexa_policy_limitation_value_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezpreferences_id_seq RENAME TO ibexa_user_preference_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezrole_id_seq RENAME TO ibexa_role_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezsearch_object_word_link_id_seq RENAME TO ibexa_search_object_word_link_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezsearch_word_id_seq RENAME TO ibexa_search_word_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezsection_id_seq RENAME TO ibexa_section_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezurl_id_seq RENAME TO ibexa_url_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezurlalias_id_seq RENAME TO ibexa_url_alias_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezurlalias_ml_incr_id_seq RENAME TO ibexa_url_alias_ml_incr_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezurlwildcard_id_seq RENAME TO ibexa_url_wildcard_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezuser_accountkey_id_seq RENAME TO ibexa_user_accountkey_id_seq; +-- ibexa:sql-statement-separator +ALTER SEQUENCE ezuser_role_id_seq RENAME TO ibexa_user_role_id_seq; +-- ibexa:sql-statement-separator +UPDATE ibexa_object_state_group SET identifier = 'ibexa_lock' WHERE identifier = 'ez_lock'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_type_field_definition SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_field SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-sqlite.sql new file mode 100644 index 0000000000..a5df30153f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-sqlite.sql @@ -0,0 +1,555 @@ +ALTER TABLE ezbinaryfile RENAME TO ibexa_binary_file; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state RENAME TO ibexa_object_state; +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_state_priority; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_object_state_priority ON ibexa_object_state (priority); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_state_lmask; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_object_state_lmask ON ibexa_object_state (language_mask); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_state_identifier; +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_object_state_identifier ON ibexa_object_state (group_id, identifier); +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_group RENAME TO ibexa_object_state_group; +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_state_group_lmask; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_object_state_group_lmask ON ibexa_object_state_group (language_mask); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_state_group_identifier; +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_object_state_group_identifier ON ibexa_object_state_group (identifier); +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_group_language RENAME TO ibexa_object_state_group_language; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_language RENAME TO ibexa_object_state_language; +-- ibexa:sql-statement-separator +ALTER TABLE ezcobj_state_link RENAME TO ibexa_object_state_link; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontent_language RENAME TO ibexa_content_language; +-- ibexa:sql-statement-separator +DROP INDEX ezcontent_language_name; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_language_name ON ibexa_content_language (name); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark RENAME TO ibexa_content_bookmark; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentbrowsebookmark_location; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_bookmark_location ON ibexa_content_bookmark (node_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentbrowsebookmark_user; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_bookmark_user ON ibexa_content_bookmark (user_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentbrowsebookmark_user_location; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_bookmark_user_location ON ibexa_content_bookmark (user_id, node_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass RENAME TO ibexa_content_type; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentclass_version; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_version ON ibexa_content_type (version); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentclass_identifier; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_identifier ON ibexa_content_type (identifier, version); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute RENAME TO ibexa_content_type_field_definition; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentclass_attr_ccid; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_field_definition_ctid ON ibexa_content_type_field_definition (contentclass_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentclass_attr_dts; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_field_definition_dts ON ibexa_content_type_field_definition (data_type_string); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml RENAME TO ibexa_content_type_field_definition_ml; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentclass_attribute_ml_lang_fk; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_field_definition_ml_lang_fk ON ibexa_content_type_field_definition_ml (language_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_classgroup RENAME TO ibexa_content_type_group_assignment; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_name RENAME TO ibexa_content_type_name; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclassgroup RENAME TO ibexa_content_type_group; +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_tree RENAME TO ibexa_content_tree; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_p_node_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_p_node_id ON ibexa_content_tree (parent_node_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_path_ident; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_path_ident ON ibexa_content_tree (path_identification_string); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_contentobject_id_path_string; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_contentobject_id_path_string ON ibexa_content_tree (path_string, contentobject_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_co_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_co_id ON ibexa_content_tree (contentobject_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_depth; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_depth ON ibexa_content_tree (depth); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_path; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_path ON ibexa_content_tree (path_string); +-- ibexa:sql-statement-separator +DROP INDEX modified_subnode; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_modified_subnode ON ibexa_content_tree (modified_subnode); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_tree_remote_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_tree_remote_id ON ibexa_content_tree (remote_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject RENAME TO ibexa_content; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_classid; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_id ON ibexa_content (contentclass_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_lmask; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_lmask ON ibexa_content (language_mask); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_pub; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_pub ON ibexa_content (published); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_section; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_section ON ibexa_content (section_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_currentversion; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_currentversion ON ibexa_content (current_version); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_owner; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_owner ON ibexa_content (owner_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_status; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_status ON ibexa_content (status); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_remote_id; +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_content_remote_id ON ibexa_content (remote_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_attribute RENAME TO ibexa_content_field; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_attribute_co_id_ver_lang_code; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_field_co_id_ver_lang_code ON ibexa_content_field (contentobject_id, version, language_code); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_classattr_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_field_classattr_id ON ibexa_content_field (contentclassattribute_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_attribute_language_code; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_field_language_code ON ibexa_content_field (language_code); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_attribute_co_id_ver; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_field_co_id_ver ON ibexa_content_field (contentobject_id, version); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_link RENAME TO ibexa_content_relation; +-- ibexa:sql-statement-separator +DROP INDEX ezco_link_to_co_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_relation_to_co_id ON ibexa_content_relation (to_contentobject_id); +-- ibexa:sql-statement-separator +DROP INDEX ezco_link_from; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_relation_from ON ibexa_content_relation (from_contentobject_id, from_contentobject_version, contentclassattribute_id); +-- ibexa:sql-statement-separator +DROP INDEX ezco_link_cca_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_relation_cca_id ON ibexa_content_relation (contentclassattribute_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_name RENAME TO ibexa_content_name; +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_name_lang_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_name_lang_id ON ibexa_content_name (language_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_name_cov_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_name_cov_id ON ibexa_content_name (content_version); +-- ibexa:sql-statement-separator +DROP INDEX ezcontentobject_name_name; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_name_name ON ibexa_content_name (name); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_trash RENAME TO ibexa_content_trash; +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_trash_depth; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_trash_depth ON ibexa_content_trash (depth); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_trash_p_node_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_trash_p_node_id ON ibexa_content_trash (parent_node_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_trash_path_ident; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_trash_path_ident ON ibexa_content_trash (path_identification_string); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_trash_co_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_trash_co_id ON ibexa_content_trash (contentobject_id); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_trash_modified_subnode; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_trash_modified_subnode ON ibexa_content_trash (modified_subnode); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_trash_path; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_trash_path ON ibexa_content_trash (path_string); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_version RENAME TO ibexa_content_version; +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_version_status; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_status ON ibexa_content_version (status); +-- ibexa:sql-statement-separator +DROP INDEX idx_object_version_objver; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_idx_ver ON ibexa_content_version (contentobject_id, version); +-- ibexa:sql-statement-separator +DROP INDEX ezcontobj_version_obj_status; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_idx_status ON ibexa_content_version (contentobject_id, status); +-- ibexa:sql-statement-separator +DROP INDEX ezcobj_version_creator_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_creator_id ON ibexa_content_version (creator_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezdfsfile RENAME TO ibexa_dfs_file; +-- ibexa:sql-statement-separator +DROP INDEX ezdfsfile_name_trunk; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_dfs_file_name_trunk ON ibexa_dfs_file (name_trunk); +-- ibexa:sql-statement-separator +DROP INDEX ezdfsfile_expired_name; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_dfs_file_expired_name ON ibexa_dfs_file (expired, name); +-- ibexa:sql-statement-separator +DROP INDEX ezdfsfile_name; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_dfs_file_name ON ibexa_dfs_file (name); +-- ibexa:sql-statement-separator +DROP INDEX ezdfsfile_mtime; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_dfs_file_mtime ON ibexa_dfs_file (mtime); +-- ibexa:sql-statement-separator +ALTER TABLE ezgmaplocation RENAME TO ibexa_map_location; +-- ibexa:sql-statement-separator +DROP INDEX latitude_longitude_key; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_map_location_latitude_longitude_key ON ibexa_map_location (latitude, longitude); +-- ibexa:sql-statement-separator +ALTER TABLE ezimagefile RENAME TO ibexa_image_file; +-- ibexa:sql-statement-separator +DROP INDEX ezimagefile_file; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_image_file_file ON ibexa_image_file (filepath); +-- ibexa:sql-statement-separator +DROP INDEX ezimagefile_coid; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_image_file_coid ON ibexa_image_file (contentobject_attribute_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezkeyword RENAME TO ibexa_keyword; +-- ibexa:sql-statement-separator +DROP INDEX ezkeyword_keyword; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_keyword_keyword ON ibexa_keyword (keyword); +-- ibexa:sql-statement-separator +ALTER TABLE ezkeyword_attribute_link RENAME TO ibexa_keyword_field_link; +-- ibexa:sql-statement-separator +DROP INDEX ezkeyword_attr_link_oaid; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_keyword_field_link_oaid ON ibexa_keyword_field_link (objectattribute_id); +-- ibexa:sql-statement-separator +DROP INDEX ezkeyword_attr_link_kid_oaid; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_keyword_field_link_kid_oaid ON ibexa_keyword_field_link (keyword_id, objectattribute_id); +-- ibexa:sql-statement-separator +DROP INDEX ezkeyword_attr_link_oaid_ver; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_keyword_field_link_oaid_ver ON ibexa_keyword_field_link (objectattribute_id, version); +-- ibexa:sql-statement-separator +ALTER TABLE ezmedia RENAME TO ibexa_media; +-- ibexa:sql-statement-separator +ALTER TABLE eznode_assignment RENAME TO ibexa_node_assignment; +-- ibexa:sql-statement-separator +DROP INDEX eznode_assignment_is_main; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_node_assignment_is_main ON ibexa_node_assignment (is_main); +-- ibexa:sql-statement-separator +DROP INDEX eznode_assignment_coid_cov; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_node_assignment_coid_cov ON ibexa_node_assignment (contentobject_id, contentobject_version); +-- ibexa:sql-statement-separator +DROP INDEX eznode_assignment_parent_node; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_node_assignment_parent_node ON ibexa_node_assignment (parent_node); +-- ibexa:sql-statement-separator +DROP INDEX eznode_assignment_co_version; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_node_assignment_co_version ON ibexa_node_assignment (contentobject_version); +-- ibexa:sql-statement-separator +ALTER TABLE eznotification RENAME TO ibexa_notification; +-- ibexa:sql-statement-separator +DROP INDEX eznotification_owner_is_pending; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_notification_owner_is_pending ON ibexa_notification (owner_id, is_pending); +-- ibexa:sql-statement-separator +DROP INDEX eznotification_owner; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_notification_owner ON ibexa_notification (owner_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezpackage RENAME TO ibexa_package; +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy RENAME TO ibexa_policy; +-- ibexa:sql-statement-separator +DROP INDEX ezpolicy_role_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_policy_role_id ON ibexa_policy (role_id); +-- ibexa:sql-statement-separator +DROP INDEX ezpolicy_original_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_policy_original_id ON ibexa_policy (original_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy_limitation RENAME TO ibexa_policy_limitation; +-- ibexa:sql-statement-separator +DROP INDEX policy_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_policy_id ON ibexa_policy_limitation (policy_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezpolicy_limitation_value RENAME TO ibexa_policy_limitation_value; +-- ibexa:sql-statement-separator +DROP INDEX ezpolicy_limit_value_limit_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_policy_limit_value_limit_id ON ibexa_policy_limitation_value (limitation_id); +-- ibexa:sql-statement-separator +DROP INDEX ezpolicy_limitation_value_val; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_policy_limitation_value_val ON ibexa_policy_limitation_value (value); +-- ibexa:sql-statement-separator +ALTER TABLE ezpreferences RENAME TO ibexa_user_preference; +-- ibexa:sql-statement-separator +DROP INDEX ezpreferences_user_id_idx; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_user_preference_user_id_idx ON ibexa_user_preference (user_id, name); +-- ibexa:sql-statement-separator +DROP INDEX ezpreferences_name; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_user_preference_name ON ibexa_user_preference (name); +-- ibexa:sql-statement-separator +ALTER TABLE ezrole RENAME TO ibexa_role; +-- ibexa:sql-statement-separator +ALTER TABLE ezsearch_object_word_link RENAME TO ibexa_search_object_word_link; +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_object_word_link_object; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_object_word_link_object ON ibexa_search_object_word_link (contentobject_id); +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_object_word_link_identifier; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_object_word_link_identifier ON ibexa_search_object_word_link (identifier); +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_object_word_link_integer_value; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_object_word_link_integer_value ON ibexa_search_object_word_link (integer_value); +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_object_word_link_word; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_object_word_link_word ON ibexa_search_object_word_link (word_id); +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_object_word_link_frequency; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_object_word_link_frequency ON ibexa_search_object_word_link (frequency); +-- ibexa:sql-statement-separator +ALTER TABLE ezsearch_word RENAME TO ibexa_search_word; +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_word_word_i; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_word_word_i ON ibexa_search_word (word); +-- ibexa:sql-statement-separator +DROP INDEX ezsearch_word_obj_count; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_search_word_obj_count ON ibexa_search_word (object_count); +-- ibexa:sql-statement-separator +ALTER TABLE ezsection RENAME TO ibexa_section; +-- ibexa:sql-statement-separator +ALTER TABLE ezsite_data RENAME TO ibexa_site_data; +-- ibexa:sql-statement-separator +ALTER TABLE ezurl RENAME TO ibexa_url; +-- ibexa:sql-statement-separator +DROP INDEX ezurl_url; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_url ON ibexa_url (url); +-- ibexa:sql-statement-separator +ALTER TABLE ezurl_object_link RENAME TO ibexa_url_content_link; +-- ibexa:sql-statement-separator +DROP INDEX ezurl_ol_coa_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_ol_coa_id ON ibexa_url_content_link (contentobject_attribute_id); +-- ibexa:sql-statement-separator +DROP INDEX ezurl_ol_url_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_ol_url_id ON ibexa_url_content_link (url_id); +-- ibexa:sql-statement-separator +DROP INDEX ezurl_ol_coa_version; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_ol_coa_version ON ibexa_url_content_link (contentobject_attribute_version); +-- ibexa:sql-statement-separator +DROP INDEX ezurl_ol_coa_id_cav; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_ol_coa_id_cav ON ibexa_url_content_link (contentobject_attribute_id, contentobject_attribute_version); +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias RENAME TO ibexa_url_alias; +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_source_md5; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_source_md5 ON ibexa_url_alias (source_md5); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_wcard_fwd; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_wcard_fwd ON ibexa_url_alias (is_wildcard, forward_to_id); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_forward_to_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_forward_to_id ON ibexa_url_alias (forward_to_id); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_imp_wcard_fwd; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_imp_wcard_fwd ON ibexa_url_alias (is_imported, is_wildcard, forward_to_id); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_source_url; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_source_url ON ibexa_url_alias (source_url); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_desturl; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_desturl ON ibexa_url_alias (destination_url); +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias_ml RENAME TO ibexa_url_alias_ml; +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_actt_org_al; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_actt_org_al ON ibexa_url_alias_ml (action_type, is_original, is_alias); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_text_lang; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_text_lang ON ibexa_url_alias_ml (text, lang_mask, parent); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_par_act_id_lnk; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_par_act_id_lnk ON ibexa_url_alias_ml ("action", id, link, parent); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_par_lnk_txt; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_par_lnk_txt ON ibexa_url_alias_ml (parent, text, link); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_act_org; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_act_org ON ibexa_url_alias_ml ("action", is_original); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_text; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_text ON ibexa_url_alias_ml (text, id, link); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_link; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_link ON ibexa_url_alias_ml (link); +-- ibexa:sql-statement-separator +DROP INDEX ezurlalias_ml_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_url_alias_ml_id ON ibexa_url_alias_ml (id); +-- ibexa:sql-statement-separator +ALTER TABLE ezurlalias_ml_incr RENAME TO ibexa_url_alias_ml_incr; +-- ibexa:sql-statement-separator +ALTER TABLE ezurlwildcard RENAME TO ibexa_url_wildcard; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser RENAME TO ibexa_user; +-- ibexa:sql-statement-separator +DROP INDEX ezuser_login; +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_user_login ON ibexa_user (login); +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_accountkey RENAME TO ibexa_user_accountkey; +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_role RENAME TO ibexa_user_role; +-- ibexa:sql-statement-separator +DROP INDEX ezuser_role_role_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_user_role_role_id ON ibexa_user_role (role_id); +-- ibexa:sql-statement-separator +DROP INDEX ezuser_role_contentobject_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_user_role_contentobject_id ON ibexa_user_role (contentobject_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezuser_setting RENAME TO ibexa_user_setting; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_group_assignment RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_name RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME COLUMN contentclass_id TO content_type_id; +-- ibexa:sql-statement-separator +DROP INDEX ibexa_content_type_version; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_type_status ON ibexa_content_type (version); +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME COLUMN version TO status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_group_assignment RENAME COLUMN contentclass_version TO content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_name RENAME COLUMN contentclass_version TO content_type_status; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME COLUMN contentclass_attribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_field RENAME COLUMN contentclassattribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +DROP INDEX ibexa_content_field_classattr_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_field_field_definition_id ON ibexa_content_field (content_type_field_definition_id); +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_relation RENAME COLUMN contentclassattribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +DROP INDEX ibexa_content_relation_cca_id; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_relation_ccfd_id ON ibexa_content_relation (content_type_field_definition_id); +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_search_object_word_link RENAME COLUMN contentclass_attribute_id TO content_type_field_definition_id; +-- ibexa:sql-statement-separator +UPDATE ibexa_object_state_group SET identifier = 'ibexa_lock' WHERE identifier = 'ez_lock'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_type_field_definition SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; +-- ibexa:sql-statement-separator +UPDATE ibexa_content_field SET data_type_string = 'ibexa_string' WHERE data_type_string = 'ezstring'; diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php deleted file mode 100644 index 0dd8d5003b..0000000000 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php - -/** - * @copyright Copyright (C) Ibexa AS. All rights reserved. - * @license For full copyright and license information view LICENSE file distributed with this source code. - */ -declare(strict_types=1); - -namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection\Compiler; - -use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; -use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Definition; -use Symfony\Component\DependencyInjection\Reference; - -/** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass - */ -class InstallerTagPassTest extends AbstractCompilerPassTestCase -{ - /** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass::process - */ - public function testProcessInjectsInstallersIntoCommand(): void - { - $this->setDefinition( - InstallPlatformCommand::class, - new Definition(InstallPlatformCommand::class, ['$installers' => []]) - ); - $definition = new Definition(); - $definition->addTag( - InstallerTagPass::INSTALLER_TAG, - [ - 'type' => 'installer_type', - ] - ); - - $this->setDefinition('service_id', $definition); - $this->compile(); - - $this->assertContainerBuilderHasServiceDefinitionWithArgument( - InstallPlatformCommand::class, - '$installers', - [ - 'installer_type' => new Reference('service_id'), - ] - ); - } - - protected function registerCompilerPass(ContainerBuilder $container): void - { - $container->addCompilerPass(new InstallerTagPass()); - } -} diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index 90625e43bc..f0123dfb7b 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -10,7 +10,6 @@ use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension; use Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller; use Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller; @@ -34,7 +33,7 @@ public function testLoadLoadsTaggedCoreInstaller(): void ); $this->assertContainerBuilderHasServiceDefinitionWithTag( CoreInstaller::class, - InstallerTagPass::INSTALLER_TAG, + 'ibexa.installer', ['type' => 'ibexa-oss'] ); } diff --git a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php index a67042e6ba..ee2cf423cd 100644 --- a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php +++ b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php @@ -9,7 +9,7 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DependencyInjection\DoctrineSchemaExtension; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; use Ibexa\Bundle\RepositoryInstaller\IbexaRepositoryInstallerBundle; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; @@ -34,12 +34,12 @@ public function testBuild(): void $container->registerExtension(new DoctrineSchemaExtension()); $this->bundle->build($container); - // check if InstallerTagPass was added + // check if RegisterSchemaBuilderEventSchemaProviderPass was added self::assertNotEmpty( array_filter( $container->getCompilerPassConfig()->getPasses(), static function (CompilerPassInterface $compilerPass): bool { - return $compilerPass instanceof InstallerTagPass; + return $compilerPass instanceof RegisterSchemaBuilderEventSchemaProviderPass; } ) ); From e6842163a9a27b0782557b1a82b0bb8df40d521e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sat, 26 Sep 2026 16:46:34 +0200 Subject: [PATCH 30/88] IBX-11939: Added a shared SchemaBuilderEvent subscriber for plain ORM entities OrmEntitiesSchemaSubscriber contributes the tables (and sequences) of a given list of Doctrine ORM entities to the SchemaBuilderEvent schema, derived from their mappings via SchemaTool. ibexa/taxonomy and ibexa/connector-payum each carried an identical copy of this logic, differing only in the entity list. Each package now registers its own instance of this class instead, listing just its own entities. --- .../OrmEntitiesSchemaSubscriber.php | 179 +++++++++++++++++ .../Subscriber/Fixtures/Entity/Category.php | 16 ++ .../Event/Subscriber/Fixtures/Entity/Item.php | 18 ++ .../Subscriber/Fixtures/orm/Category.orm.xml | 14 ++ .../Subscriber/Fixtures/orm/Item.orm.xml | 18 ++ .../OrmEntitiesSchemaSubscriberTest.php | 189 ++++++++++++++++++ 6 files changed, 434 insertions(+) create mode 100644 src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php create mode 100644 tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Category.php create mode 100644 tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Item.php create mode 100644 tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Category.orm.xml create mode 100644 tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Item.orm.xml create mode 100644 tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php diff --git a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php new file mode 100644 index 0000000000..bb5b01d6a6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php @@ -0,0 +1,179 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Event\Subscriber; + +use Doctrine\DBAL\Schema\Table; +use Doctrine\DBAL\Types\Type; +use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Tools\SchemaTool; +use Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent; +use Ibexa\Contracts\DoctrineSchema\SchemaBuilderEvents; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; + +/** + * Contributes the tables of plain Doctrine ORM entities to the SchemaBuilderEvent schema by + * introspecting their mappings, instead of a hand-maintained parallel schema.yaml declaration -- + * the ORM mapping is already the single source of truth for what these tables look like, and + * SchemaTool already knows how to turn mapping metadata into a Doctrine\DBAL\Schema\Schema. + * + * A package registers its own instance, listing only its own entities: + * + * ibexa.<package>.schema_builder.orm_entities: + * class: Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\OrmEntitiesSchemaSubscriber + * arguments: + * $entityManager: '@ibexa.doctrine.orm.entity_manager' + * $entityClasses: + * - Ibexa\<Package>\Persistence\Entity\SomeEntity + * tags: [kernel.event_subscriber] + * + * Tables already present in the schema are left as they are. + */ +final class OrmEntitiesSchemaSubscriber implements EventSubscriberInterface +{ + private EntityManagerInterface $entityManager; + + /** @var list<class-string> */ + private array $entityClasses; + + /** + * @param list<class-string> $entityClasses + */ + public function __construct(EntityManagerInterface $entityManager, array $entityClasses) + { + $this->entityManager = $entityManager; + $this->entityClasses = $entityClasses; + } + + public static function getSubscribedEvents(): array + { + return [ + SchemaBuilderEvents::BUILD_SCHEMA => ['onBuildSchema', 250], + ]; + } + + public function onBuildSchema(SchemaBuilderEvent $event): void + { + $metadataFactory = $this->entityManager->getMetadataFactory(); + $classMetadata = array_map( + static function (string $class) use ($metadataFactory) { + return $metadataFactory->getMetadataFor($class); + }, + $this->entityClasses, + ); + + $schemaTool = new SchemaTool($this->entityManager); + $ormSchema = $schemaTool->getSchemaFromMetadata($classMetadata); + + // SchemaTool::getSchemaFromMetadata() fires Doctrine's ToolEvents::postGenerateSchema on + // the entity manager's (shared) event manager -- any *other* listener on that same event + // manager (e.g. Symfony Messenger's Doctrine transport auto-setup) reacts too and adds its + // own table, regardless of which classes were actually requested here. Only transplant the + // tables that genuinely belong to the requested entities. + $ownTableNames = array_map( + static function ($metadata) { + return $metadata->getTableName(); + }, + $classMetadata, + ); + + $targetSchema = $event->getSchema(); + foreach ($ormSchema->getTables() as $ormTable) { + if (!in_array($ormTable->getName(), $ownTableNames, true)) { + continue; + } + + if ($targetSchema->hasTable($ormTable->getName())) { + continue; + } + + $this->copyTable($ormTable, $targetSchema->createTable($ormTable->getName())); + } + + $ownSequenceNames = array_filter(array_map( + static function ($metadata) { + return isset($metadata->sequenceGeneratorDefinition['sequenceName']) + ? $metadata->sequenceGeneratorDefinition['sequenceName'] + : null; + }, + $classMetadata, + )); + + foreach ($ormSchema->getSequences() as $sequence) { + if (!in_array($sequence->getName(), $ownSequenceNames, true)) { + continue; + } + + if ($targetSchema->hasSequence($sequence->getName())) { + continue; + } + + $targetSchema->createSequence( + $sequence->getName(), + $sequence->getAllocationSize(), + $sequence->getInitialValue(), + ); + } + } + + /** + * Doctrine\DBAL\Schema\Schema has no public API to transplant an existing Table between two + * Schema instances (Schema::_addTable() is protected), so each aspect is copied individually + * through Table's own public API -- the same approach ibexa/doctrine-schema's own + * SchemaImporter uses when building a table from a parsed Yaml array, just reading from an + * already-built Table here instead. + */ + private function copyTable(Table $source, Table $target): void + { + foreach ($source->getColumns() as $column) { + $options = [ + 'length' => $column->getLength(), + 'precision' => $column->getPrecision(), + 'scale' => $column->getScale(), + 'unsigned' => $column->getUnsigned(), + 'fixed' => $column->getFixed(), + 'notnull' => $column->getNotnull(), + 'default' => $column->getDefault(), + 'autoincrement' => $column->getAutoincrement(), + 'columnDefinition' => $column->getColumnDefinition(), + 'comment' => $column->getComment(), + ]; + if ($column->getPlatformOptions() !== []) { + $options['platformOptions'] = $column->getPlatformOptions(); + } + $target->addColumn($column->getName(), Type::getTypeRegistry()->lookupName($column->getType()), $options); + } + + $primaryKey = $source->getPrimaryKey(); + if ($primaryKey !== null) { + $target->setPrimaryKey($primaryKey->getUnquotedColumns()); + } + + foreach ($source->getIndexes() as $index) { + if ($index->isPrimary()) { + continue; + } + + if ($index->isUnique()) { + $target->addUniqueIndex($index->getUnquotedColumns(), $index->getName(), $index->getOptions()); + } else { + $target->addIndex($index->getUnquotedColumns(), $index->getName(), $index->getFlags(), $index->getOptions()); + } + } + + foreach ($source->getForeignKeys() as $foreignKey) { + $target->addForeignKeyConstraint( + $foreignKey->getForeignTableName(), + $foreignKey->getUnquotedLocalColumns(), + $foreignKey->getUnquotedForeignColumns(), + $foreignKey->getOptions(), + $foreignKey->getName(), + ); + } + } +} diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Category.php b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Category.php new file mode 100644 index 0000000000..e0ab5099d7 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Category.php @@ -0,0 +1,16 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity; + +final class Category +{ + public int $id; + + public string $identifier; +} diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Item.php b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Item.php new file mode 100644 index 0000000000..df4a8a075b --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/Entity/Item.php @@ -0,0 +1,18 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity; + +final class Item +{ + public int $id; + + public Category $category; + + public string $name; +} diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Category.orm.xml b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Category.orm.xml new file mode 100644 index 0000000000..50c4c2e4f0 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Category.orm.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> + <entity name="Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Category" table="test_orm_category"> + <unique-constraints> + <unique-constraint name="test_orm_category_identifier_idx" columns="identifier"/> + </unique-constraints> + <id name="id" type="integer"> + <generator strategy="AUTO"/> + </id> + <field name="identifier" type="string" length="64"/> + </entity> +</doctrine-mapping> diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Item.orm.xml b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Item.orm.xml new file mode 100644 index 0000000000..2168f1d51b --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/Fixtures/orm/Item.orm.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://www.doctrine-project.org/schemas/orm/doctrine-mapping.xsd"> + <entity name="Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Item" table="test_orm_item"> + <indexes> + <index name="test_orm_item_name_idx" columns="name"/> + </indexes> + <id name="id" type="integer"> + <generator strategy="SEQUENCE"/> + <sequence-generator sequence-name="test_orm_item_id_seq" allocation-size="1" initial-value="1"/> + </id> + <field name="name" type="string" length="255"/> + <many-to-one field="category" target-entity="Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Category"> + <join-column name="category_id" referenced-column-name="id" nullable="false" on-delete="CASCADE"/> + </many-to-one> + </entity> +</doctrine-mapping> diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php b/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php new file mode 100644 index 0000000000..55951b01cb --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php @@ -0,0 +1,189 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber; + +use Doctrine\Common\EventManager; +use Doctrine\DBAL\DriverManager; +use Doctrine\DBAL\Platforms\AbstractPlatform; +use Doctrine\DBAL\Platforms\MySQL57Platform; +use Doctrine\DBAL\Platforms\PostgreSQL94Platform; +use Doctrine\DBAL\Platforms\SqlitePlatform; +use Doctrine\DBAL\Schema\Column; +use Doctrine\DBAL\Schema\Schema; +use Doctrine\DBAL\Schema\Sequence; +use Doctrine\DBAL\Schema\Table; +use Doctrine\ORM\Configuration; +use Doctrine\ORM\EntityManager; +use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver; +use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; +use Doctrine\ORM\Tools\SchemaTool; +use Doctrine\ORM\Tools\ToolEvents; +use Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\OrmEntitiesSchemaSubscriber; +use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; +use Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent; +use Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Category; +use Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Item; +use PHPUnit\Framework\TestCase; + +/** + * Uses a real (SQLite, in-memory) entity manager over XML-mapped fixture entities, since the + * subscriber's whole job is to turn real ORM metadata into DBAL schema objects. + * + * @covers \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\OrmEntitiesSchemaSubscriber + */ +final class OrmEntitiesSchemaSubscriberTest extends TestCase +{ + private const ENTITY_CLASSES = [Category::class, Item::class]; + + private EventManager $eventManager; + + private EntityManagerInterface $entityManager; + + protected function setUp(): void + { + $configuration = new Configuration(); + $configuration->setMetadataDriverImpl(new SimplifiedXmlDriver([ + __DIR__ . '/Fixtures/orm' => 'Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity', + ])); + $configuration->setProxyDir(sys_get_temp_dir()); + $configuration->setProxyNamespace('Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Proxies'); + + $this->eventManager = new EventManager(); + $this->entityManager = new EntityManager( + DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true]), + $configuration, + $this->eventManager, + ); + } + + /** + * @dataProvider providePlatforms + */ + public function testAddsTablesOfListedEntitiesAsSchemaToolGeneratesThem(AbstractPlatform $platform): void + { + $schema = $this->dispatch(new Schema()); + + self::assertSame( + $this->getCreateTablesSql($this->getSchemaToolSchema(), $platform), + $this->getCreateTablesSql($schema, $platform), + ); + } + + /** + * @return iterable<string, array{\Doctrine\DBAL\Platforms\AbstractPlatform}> + */ + public static function providePlatforms(): iterable + { + yield 'MySQL' => [new MySQL57Platform()]; + yield 'PostgreSQL' => [new PostgreSQL94Platform()]; + yield 'SQLite' => [new SqlitePlatform()]; + } + + public function testAddsSequencesOfListedEntitiesAsSchemaToolGeneratesThem(): void + { + $schema = $this->dispatch(new Schema()); + + self::assertSame( + $this->getCreateSequencesSql($this->getSchemaToolSchema()), + $this->getCreateSequencesSql($schema), + ); + self::assertNotEmpty($this->getCreateSequencesSql($schema)); + } + + public function testIgnoresTablesAndSequencesOtherListenersAddToTheOrmSchema(): void + { + $this->eventManager->addEventListener(ToolEvents::postGenerateSchema, new class() { + public function postGenerateSchema(GenerateSchemaEventArgs $args): void + { + $args->getSchema()->createTable('test_orm_foreign')->addColumn('id', 'integer'); + $args->getSchema()->createSequence('test_orm_foreign_id_seq'); + } + }); + + $schema = $this->dispatch(new Schema()); + + self::assertTrue($schema->hasTable('test_orm_item')); + self::assertFalse($schema->hasTable('test_orm_foreign')); + self::assertTrue($schema->hasSequence('test_orm_item_id_seq')); + self::assertFalse($schema->hasSequence('test_orm_foreign_id_seq')); + } + + public function testLeavesTablesAlreadyInTheSchemaUntouched(): void + { + $schema = new Schema(); + $schema->createTable('test_orm_category')->addColumn('legacy_id', 'integer'); + + $schema = $this->dispatch($schema); + + $columnNames = array_map( + static function (Column $column): string { + return $column->getName(); + }, + array_values($schema->getTable('test_orm_category')->getColumns()), + ); + + self::assertSame(['legacy_id'], $columnNames); + self::assertTrue($schema->hasTable('test_orm_item')); + } + + private function getSchemaToolSchema(): Schema + { + $metadataFactory = $this->entityManager->getMetadataFactory(); + + return (new SchemaTool($this->entityManager))->getSchemaFromMetadata(array_map( + static function (string $class) use ($metadataFactory) { + return $metadataFactory->getMetadataFor($class); + }, + self::ENTITY_CLASSES, + )); + } + + /** + * @return array<string, array<string>> + */ + private function getCreateTablesSql(Schema $schema, AbstractPlatform $platform): array + { + return array_map( + static function (Table $table) use ($platform): array { + return $platform->getCreateTableSQL( + $table, + AbstractPlatform::CREATE_INDEXES | AbstractPlatform::CREATE_FOREIGNKEYS, + ); + }, + $schema->getTables(), + ); + } + + /** + * Sequences are compared on PostgreSQL only, as neither MySQL nor SQLite supports them. + * + * @return array<string, string> + */ + private function getCreateSequencesSql(Schema $schema): array + { + $platform = new PostgreSQL94Platform(); + + return array_map( + static function (Sequence $sequence) use ($platform): string { + return $platform->getCreateSequenceSQL($sequence); + }, + $schema->getSequences(), + ); + } + + private function dispatch(Schema $schema): Schema + { + $event = new SchemaBuilderEvent($this->createStub(SchemaBuilderInterface::class), $schema); + + (new OrmEntitiesSchemaSubscriber($this->entityManager, self::ENTITY_CLASSES))->onBuildSchema($event); + + return $event->getSchema(); + } +} From 1ff4219d25a3f73c191b550a678a88678cd9c8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sat, 26 Sep 2026 16:54:52 +0200 Subject: [PATCH 31/88] IBX-11939: Adapted OrmEntitiesSchemaSubscriber and its test to 5.0 Uses 5.0's readonly class / promoted constructor style, passes array_values() of the foreign key columns (DBAL 4 requires a list), and the test uses APIs present in both DBAL 3 and 4 (getCreateTablesSQL(), connection-provided SQLite platform) with XSD validation enabled, so it carries over to 6.0 unchanged. --- .../OrmEntitiesSchemaSubscriber.php | 40 +++++--------- .../OrmEntitiesSchemaSubscriberTest.php | 54 ++++++++----------- 2 files changed, 35 insertions(+), 59 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php index bb5b01d6a6..711e4ef155 100644 --- a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php +++ b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php @@ -34,21 +34,15 @@ * * Tables already present in the schema are left as they are. */ -final class OrmEntitiesSchemaSubscriber implements EventSubscriberInterface +final readonly class OrmEntitiesSchemaSubscriber implements EventSubscriberInterface { - private EntityManagerInterface $entityManager; - - /** @var list<class-string> */ - private array $entityClasses; - /** * @param list<class-string> $entityClasses */ - public function __construct(EntityManagerInterface $entityManager, array $entityClasses) - { - $this->entityManager = $entityManager; - $this->entityClasses = $entityClasses; - } + public function __construct( + private EntityManagerInterface $entityManager, + private array $entityClasses + ) {} public static function getSubscribedEvents(): array { @@ -61,9 +55,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void { $metadataFactory = $this->entityManager->getMetadataFactory(); $classMetadata = array_map( - static function (string $class) use ($metadataFactory) { - return $metadataFactory->getMetadataFor($class); - }, + static fn (string $class) => $metadataFactory->getMetadataFor($class), $this->entityClasses, ); @@ -76,9 +68,7 @@ static function (string $class) use ($metadataFactory) { // own table, regardless of which classes were actually requested here. Only transplant the // tables that genuinely belong to the requested entities. $ownTableNames = array_map( - static function ($metadata) { - return $metadata->getTableName(); - }, + static fn ($metadata) => $metadata->getTableName(), $classMetadata, ); @@ -96,11 +86,7 @@ static function ($metadata) { } $ownSequenceNames = array_filter(array_map( - static function ($metadata) { - return isset($metadata->sequenceGeneratorDefinition['sequenceName']) - ? $metadata->sequenceGeneratorDefinition['sequenceName'] - : null; - }, + static fn ($metadata) => $metadata->sequenceGeneratorDefinition['sequenceName'] ?? null, $classMetadata, )); @@ -128,8 +114,10 @@ static function ($metadata) { * SchemaImporter uses when building a table from a parsed Yaml array, just reading from an * already-built Table here instead. */ - private function copyTable(Table $source, Table $target): void - { + private function copyTable( + Table $source, + Table $target + ): void { foreach ($source->getColumns() as $column) { $options = [ 'length' => $column->getLength(), @@ -169,8 +157,8 @@ private function copyTable(Table $source, Table $target): void foreach ($source->getForeignKeys() as $foreignKey) { $target->addForeignKeyConstraint( $foreignKey->getForeignTableName(), - $foreignKey->getUnquotedLocalColumns(), - $foreignKey->getUnquotedForeignColumns(), + array_values($foreignKey->getUnquotedLocalColumns()), + array_values($foreignKey->getUnquotedForeignColumns()), $foreignKey->getOptions(), $foreignKey->getName(), ); diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php b/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php index 55951b01cb..cdfd5fe3c5 100644 --- a/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php @@ -11,13 +11,11 @@ use Doctrine\Common\EventManager; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Platforms\AbstractPlatform; -use Doctrine\DBAL\Platforms\MySQL57Platform; -use Doctrine\DBAL\Platforms\PostgreSQL94Platform; -use Doctrine\DBAL\Platforms\SqlitePlatform; +use Doctrine\DBAL\Platforms\MySQLPlatform; +use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use Doctrine\DBAL\Schema\Column; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Schema\Sequence; -use Doctrine\DBAL\Schema\Table; use Doctrine\ORM\Configuration; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; @@ -49,9 +47,10 @@ final class OrmEntitiesSchemaSubscriberTest extends TestCase protected function setUp(): void { $configuration = new Configuration(); - $configuration->setMetadataDriverImpl(new SimplifiedXmlDriver([ - __DIR__ . '/Fixtures/orm' => 'Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity', - ])); + $configuration->setMetadataDriverImpl(new SimplifiedXmlDriver( + [__DIR__ . '/Fixtures/orm' => 'Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity'], + isXsdValidationEnabled: true, + )); $configuration->setProxyDir(sys_get_temp_dir()); $configuration->setProxyNamespace('Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Proxies'); @@ -77,13 +76,14 @@ public function testAddsTablesOfListedEntitiesAsSchemaToolGeneratesThem(Abstract } /** - * @return iterable<string, array{\Doctrine\DBAL\Platforms\AbstractPlatform}> + * @return iterable<string, array{AbstractPlatform}> */ public static function providePlatforms(): iterable { - yield 'MySQL' => [new MySQL57Platform()]; - yield 'PostgreSQL' => [new PostgreSQL94Platform()]; - yield 'SQLite' => [new SqlitePlatform()]; + yield 'MySQL' => [new MySQLPlatform()]; + yield 'PostgreSQL' => [new PostgreSQLPlatform()]; + // The SQLite platform class was renamed between DBAL 3 and 4 - let DBAL pick it. + yield 'SQLite' => [DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true])->getDatabasePlatform()]; } public function testAddsSequencesOfListedEntitiesAsSchemaToolGeneratesThem(): void @@ -123,9 +123,7 @@ public function testLeavesTablesAlreadyInTheSchemaUntouched(): void $schema = $this->dispatch($schema); $columnNames = array_map( - static function (Column $column): string { - return $column->getName(); - }, + static fn (Column $column): string => $column->getName(), array_values($schema->getTable('test_orm_category')->getColumns()), ); @@ -138,27 +136,19 @@ private function getSchemaToolSchema(): Schema $metadataFactory = $this->entityManager->getMetadataFactory(); return (new SchemaTool($this->entityManager))->getSchemaFromMetadata(array_map( - static function (string $class) use ($metadataFactory) { - return $metadataFactory->getMetadataFor($class); - }, + static fn (string $class) => $metadataFactory->getMetadataFor($class), self::ENTITY_CLASSES, )); } /** - * @return array<string, array<string>> + * @return list<string> */ - private function getCreateTablesSql(Schema $schema, AbstractPlatform $platform): array - { - return array_map( - static function (Table $table) use ($platform): array { - return $platform->getCreateTableSQL( - $table, - AbstractPlatform::CREATE_INDEXES | AbstractPlatform::CREATE_FOREIGNKEYS, - ); - }, - $schema->getTables(), - ); + private function getCreateTablesSql( + Schema $schema, + AbstractPlatform $platform + ): array { + return $platform->getCreateTablesSQL($schema->getTables()); } /** @@ -168,12 +158,10 @@ static function (Table $table) use ($platform): array { */ private function getCreateSequencesSql(Schema $schema): array { - $platform = new PostgreSQL94Platform(); + $platform = new PostgreSQLPlatform(); return array_map( - static function (Sequence $sequence) use ($platform): string { - return $platform->getCreateSequenceSQL($sequence); - }, + static fn (Sequence $sequence): string => $platform->getCreateSequenceSQL($sequence), $schema->getSequences(), ); } From 49cff098eb638ee764ddbf80c99e78dd8ed2b107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sat, 26 Sep 2026 17:23:38 +0200 Subject: [PATCH 32/88] IBX-11939: Pointed the bundle_installer test suite at tests/bundle/RepositoryInstaller The suite still pointed at tests/bundle/Installer, which hasn't existed since the IBX-538 rename, so none of the RepositoryInstaller bundle tests ran. Same path the 5.0 branch already uses. --- phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index 3babacfd15..2423c77dd4 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -24,7 +24,7 @@ <directory>tests/bundle/Debug</directory> </testsuite> <testsuite name="bundle_installer"> - <directory>tests/bundle/Installer</directory> + <directory>tests/bundle/RepositoryInstaller</directory> </testsuite> <testsuite name="bundle_io"> <directory>tests/bundle/IO</directory> From b5ff977e37e075f168759895f5e193614f6816cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sat, 26 Sep 2026 17:40:16 +0200 Subject: [PATCH 33/88] IBX-11939: Fixed code style of OrmEntitiesSchemaSubscriber's constructor --- .../Event/Subscriber/OrmEntitiesSchemaSubscriber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php index 711e4ef155..c6141543d6 100644 --- a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php +++ b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php @@ -42,7 +42,8 @@ public function __construct( private EntityManagerInterface $entityManager, private array $entityClasses - ) {} + ) { + } public static function getSubscribedEvents(): array { From 96b92317ec35764419b9ee9c9a05807aa231703e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sat, 26 Sep 2026 18:07:06 +0200 Subject: [PATCH 34/88] IBX-11939: Fixed the stale installer type in IbexaInstallerExtensionTest IBX-538 renamed CoreInstaller's installer type from "clean" to "ibexa-oss", but the moved test kept asserting the old one. It went unnoticed because the suite never ran these tests. --- .../DependencyInjection/IbexaInstallerExtensionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index 9a8084eb14..3a8c1106e7 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -34,7 +34,7 @@ public function testLoadLoadsTaggedCoreInstaller(): void $this->assertContainerBuilderHasServiceDefinitionWithTag( CoreInstaller::class, 'ibexa.installer', - ['type' => 'clean'] + ['type' => 'ibexa-oss'] ); } From 5d2d30d0a8c69efdfffc7768e34b838c6447efe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sun, 27 Sep 2026 13:18:10 +0200 Subject: [PATCH 35/88] IBX-11939: Took the installers as a ServiceLocator in InstallPlatformCommand #785 replaced InstallerTagPass with a !tagged_locator for the command's $installers argument, and both of those reached this branch through the base - but InstallPlatformCommand kept 5.0's array-typed constructor, so ibexa:install failed with a TypeError before doing anything. Ported the matching change from #785: ServiceLocator in, has()/get() for the lookup, and getProvidedServices() for listing the available types. --- .../Command/InstallPlatformCommand.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index e29e66a1f1..c32bb7658f 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -21,6 +21,7 @@ use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\DependencyInjection\ServiceLocator; use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\Process; @@ -44,14 +45,14 @@ final class InstallPlatformCommand extends Command /** @var string */ private $environment; - /** @var \Ibexa\Bundle\RepositoryInstaller\Installer\Installer[] */ - private $installers = []; + /** @var \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> */ + private ServiceLocator $installers; private RepositoryConfigurationProviderInterface $repositoryConfigurationProvider; public function __construct( Connection $connection, - array $installers, + ServiceLocator $installers, CacheItemPoolInterface $cachePool, string $environment, RepositoryConfigurationProviderInterface $repositoryConfigurationProvider @@ -69,7 +70,7 @@ protected function configure(): void $this->addArgument( 'type', InputArgument::OPTIONAL, - 'The type of install. Available options: ' . implode(', ', array_keys($this->installers)), + 'The type of install. Available options: ' . implode(', ', array_keys($this->installers->getProvidedServices())), 'ibexa-oss' ); $this->addOption( @@ -100,7 +101,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int if ($installer === false) { $output->writeln( "Unknown install type '$type', available options in currently installed Ibexa package: " . - implode(', ', array_keys($this->installers)) + implode(', ', array_keys($this->installers->getProvidedServices())) ); exit(self::EXIT_UNKNOWN_INSTALL_TYPE); } @@ -213,11 +214,11 @@ private function indexData(OutputInterface $output, $siteaccess = null) */ private function getInstaller($type) { - if (!isset($this->installers[$type])) { + if (!$this->installers->has($type)) { return false; } - return $this->installers[$type]; + return $this->installers->get($type); } /** From 55cd5091c011143dad10dc70c1343928fc6b32a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sun, 27 Sep 2026 13:38:12 +0200 Subject: [PATCH 36/88] IBX-11939: Fixed PHPStan and code style after the ServiceLocator change Declares the installers ServiceLocator's value type on the constructor, drops the baseline entry for the old array-typed parameter, and removes a stray blank line in CoreInstaller that the code style check flagged. --- phpstan-baseline.neon | 6 ------ .../RepositoryInstaller/Command/InstallPlatformCommand.php | 3 +++ src/bundle/RepositoryInstaller/Installer/CoreInstaller.php | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 6d2bde7a80..de71e0faad 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -3684,12 +3684,6 @@ parameters: count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:__construct\(\) has parameter \$installers with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:cacheClear\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index c32bb7658f..8c52fb7bb9 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -50,6 +50,9 @@ final class InstallPlatformCommand extends Command private RepositoryConfigurationProviderInterface $repositoryConfigurationProvider; + /** + * @param \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> $installers + */ public function __construct( Connection $connection, ServiceLocator $installers, diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 7cdf2899a3..0fc8de7981 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -198,5 +198,4 @@ protected function getDropSqlStatementsForExistingSchema( public function importBinaries() { } - } From 62a30e615f2722e270a7ad0c02b147c795a9cab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sun, 27 Sep 2026 17:21:39 +0200 Subject: [PATCH 37/88] IBX-11939: Adapted the Doctrine Migrations install path to 6.0 What the 5.0 work needs on 6.0's stack: - DBAL 4 removed AbstractPlatform::getName() and AbstractSchemaManager::createSchema(): CoreInstaller::reportExecutedQueries() uses getDBMSDataDirectoryName() like the rest of the class, and TaggedMigrationsRunner introspects the live schema via createSchemaManager()-> introspectSchema(). - 6.0's PHPStan rules want arrow function return types (OrmEntitiesSchemaSubscriber and its test) and static createStub() calls. - PHPUnit 11 metadata as attributes instead of doc-comment annotations in the RepositoryInstaller tests this effort added. --- .../Subscriber/OrmEntitiesSchemaSubscriber.php | 7 ++++--- .../Installer/CoreInstaller.php | 2 +- .../Migration/TaggedMigrationsRunner.php | 2 +- .../DoctrineMigrationsSchemaHookTest.php | 8 ++++---- ...rSchemaBuilderEventSchemaProviderPassTest.php | 5 ++--- .../RemoveTaggedMigrationsRunnerPassTest.php | 5 ++--- .../IbexaInstallerExtensionTest.php | 6 ------ .../OrmEntitiesSchemaSubscriberTest.php | 16 ++++++++-------- .../SchemaBuilderEventSchemaProviderTest.php | 5 ++--- 9 files changed, 24 insertions(+), 32 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php index c6141543d6..8ddf981eba 100644 --- a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php +++ b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php @@ -11,6 +11,7 @@ use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Tools\SchemaTool; use Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent; use Ibexa\Contracts\DoctrineSchema\SchemaBuilderEvents; @@ -56,7 +57,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void { $metadataFactory = $this->entityManager->getMetadataFactory(); $classMetadata = array_map( - static fn (string $class) => $metadataFactory->getMetadataFor($class), + static fn (string $class): ClassMetadata => $metadataFactory->getMetadataFor($class), $this->entityClasses, ); @@ -69,7 +70,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void // own table, regardless of which classes were actually requested here. Only transplant the // tables that genuinely belong to the requested entities. $ownTableNames = array_map( - static fn ($metadata) => $metadata->getTableName(), + static fn (ClassMetadata $metadata): string => $metadata->getTableName(), $classMetadata, ); @@ -87,7 +88,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void } $ownSequenceNames = array_filter(array_map( - static fn ($metadata) => $metadata->sequenceGeneratorDefinition['sequenceName'] ?? null, + static fn (ClassMetadata $metadata): ?string => $metadata->sequenceGeneratorDefinition['sequenceName'] ?? null, $classMetadata, )); diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 4c5de40245..fd5efa732b 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -141,7 +141,7 @@ private function reportExecutedQueries(array $queries): void '<info>Executed %d queries on database <comment>%s</comment> (<comment>%s</comment>)</info>', count($queries), $this->db->getDatabase(), - $this->db->getDatabasePlatform()->getName() + $this->getDBMSDataDirectoryName() ) ); } diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index 198bb88e35..06a0ddf247 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -96,7 +96,7 @@ private function executeMigration( // in this same run (or a prior run) actually created -- introspect the live database // instead, same as what "doctrine:migrations:migrate" itself does via // DBALSchemaDiffProvider::createFromSchema(). - $migration->up($connection->getSchemaManager()->createSchema()); + $migration->up($connection->createSchemaManager()->introspectSchema()); $queries = $migration->getSql(); foreach ($queries as $query) { diff --git a/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php index 5fc2bffdcd..61bfdd5040 100644 --- a/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php +++ b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php @@ -14,6 +14,7 @@ use Doctrine\Migrations\Version\MigrationPlanCalculator; use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Symfony\Component\OptionsResolver\OptionsResolver; @@ -22,9 +23,8 @@ * TaggedMigrationsRunner is final, so the seam this asserts on is one level down: the runner * unconditionally calls MetadataStorage::ensureInitialized() before doing anything else, so whether * that happens is exactly "did the hook run the migrations or not". - * - * @covers \Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook */ +#[CoversClass(DoctrineMigrationsSchemaHook::class)] final class DoctrineMigrationsSchemaHookTest extends TestCase { public function testInstallSchemaOptionDefaultsToFalse(): void @@ -63,10 +63,10 @@ private function createRunner(MockObject $metadataStorage): TaggedMigrationsRunn { // An empty migration list makes run() stop right after ensureInitialized(), so no // connection, executor or plan is needed to tell "ran" from "didn't run" apart. - $planCalculator = $this->createStub(MigrationPlanCalculator::class); + $planCalculator = self::createStub(MigrationPlanCalculator::class); $planCalculator->method('getMigrations')->willReturn(new AvailableMigrationsList([])); - $dependencyFactory = $this->createStub(DependencyFactory::class); + $dependencyFactory = self::createStub(DependencyFactory::class); $dependencyFactory->method('getMetadataStorage')->willReturn($metadataStorage); $dependencyFactory->method('getMigrationPlanCalculator')->willReturn($planCalculator); diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php index b0270133e3..01d24266bd 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php @@ -12,14 +12,13 @@ use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; use Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; use Symfony\Component\DependencyInjection\Reference; -/** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass - */ +#[CoversClass(RegisterSchemaBuilderEventSchemaProviderPass::class)] final class RegisterSchemaBuilderEventSchemaProviderPassTest extends TestCase { public function testWiresSchemaProviderOntoIbexaOnlyDependencyFactory(): void diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php index 4a7594bca6..cedc128ae4 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php @@ -12,13 +12,12 @@ use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Definition; -/** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass - */ +#[CoversClass(RemoveTaggedMigrationsRunnerPass::class)] final class RemoveTaggedMigrationsRunnerPassTest extends TestCase { public function testRemovesRunnerAndItsDependentsWhenDependencyFactoryIsMissing(): void diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index 78fd8b17fb..9ba2d48588 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -43,9 +43,6 @@ public function testLoadLoadsTaggedInstallerCommand(): void ); } - /** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension::load - */ public function testLoadRegistersTaggedDoctrineMigrationsSchemaHookInTestEnvironment(): void { $this->container->setParameter('kernel.environment', 'test'); @@ -59,9 +56,6 @@ public function testLoadRegistersTaggedDoctrineMigrationsSchemaHookInTestEnviron ); } - /** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension::load - */ public function testLoadSkipsDoctrineMigrationsSchemaHookOutsideTestEnvironment(): void { $this->load(); diff --git a/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php b/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php index cdfd5fe3c5..fc9bbd492e 100644 --- a/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php +++ b/tests/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriberTest.php @@ -19,6 +19,7 @@ use Doctrine\ORM\Configuration; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver; use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; use Doctrine\ORM\Tools\SchemaTool; @@ -28,14 +29,15 @@ use Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent; use Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Category; use Ibexa\Tests\Bundle\RepositoryInstaller\Event\Subscriber\Fixtures\Entity\Item; +use PHPUnit\Framework\Attributes\CoversClass; +use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; /** * Uses a real (SQLite, in-memory) entity manager over XML-mapped fixture entities, since the * subscriber's whole job is to turn real ORM metadata into DBAL schema objects. - * - * @covers \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\OrmEntitiesSchemaSubscriber */ +#[CoversClass(OrmEntitiesSchemaSubscriber::class)] final class OrmEntitiesSchemaSubscriberTest extends TestCase { private const ENTITY_CLASSES = [Category::class, Item::class]; @@ -62,9 +64,7 @@ protected function setUp(): void ); } - /** - * @dataProvider providePlatforms - */ + #[DataProvider('providePlatforms')] public function testAddsTablesOfListedEntitiesAsSchemaToolGeneratesThem(AbstractPlatform $platform): void { $schema = $this->dispatch(new Schema()); @@ -136,7 +136,7 @@ private function getSchemaToolSchema(): Schema $metadataFactory = $this->entityManager->getMetadataFactory(); return (new SchemaTool($this->entityManager))->getSchemaFromMetadata(array_map( - static fn (string $class) => $metadataFactory->getMetadataFor($class), + static fn (string $class): ClassMetadata => $metadataFactory->getMetadataFor($class), self::ENTITY_CLASSES, )); } @@ -154,7 +154,7 @@ private function getCreateTablesSql( /** * Sequences are compared on PostgreSQL only, as neither MySQL nor SQLite supports them. * - * @return array<string, string> + * @return list<string> */ private function getCreateSequencesSql(Schema $schema): array { @@ -168,7 +168,7 @@ private function getCreateSequencesSql(Schema $schema): array private function dispatch(Schema $schema): Schema { - $event = new SchemaBuilderEvent($this->createStub(SchemaBuilderInterface::class), $schema); + $event = new SchemaBuilderEvent(self::createStub(SchemaBuilderInterface::class), $schema); (new OrmEntitiesSchemaSubscriber($this->entityManager, self::ENTITY_CLASSES))->onBuildSchema($event); diff --git a/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php b/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php index b63fcbcd62..2e3750c3ea 100644 --- a/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php +++ b/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php @@ -11,11 +11,10 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider; use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; -/** - * @covers \Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider - */ +#[CoversClass(SchemaBuilderEventSchemaProvider::class)] final class SchemaBuilderEventSchemaProviderTest extends TestCase { public function testCreateSchemaDelegatesToSchemaBuilder(): void From dfe9d801cd9fe48baa5b67ec52bc7d9e1806bbf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sun, 27 Sep 2026 17:36:10 +0200 Subject: [PATCH 38/88] IBX-11939: Lifted the schema assets filter for TaggedMigrationsRunner's introspection 6.0's ManagedTablesSchemaAssetFilter hides every table without an ORM entity behind it from schema introspection. The Schema handed to each migration came from that filtered introspection, so the migrations' hasTable() guards saw almost nothing - ImportDataMigration concluded the baseline tables didn't exist and skipped importing the bootstrap data, leaving an empty repository. The runner now introspects through SchemaAssetsFilterBypassInterface, the same way CoreInstaller lists existing tables. --- .../Migration/TaggedMigrationsRunner.php | 20 +++++++++++++++---- .../Resources/config/services.yml | 1 + .../DoctrineMigrationsSchemaHookTest.php | 3 ++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index 06a0ddf247..ade47c7a26 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -10,11 +10,13 @@ use DateTimeImmutable; use Doctrine\DBAL\Connection; +use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\MigrationPlan; use Doctrine\Migrations\Metadata\Storage\MetadataStorage; use Doctrine\Migrations\Version\ExecutionResult; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use Ibexa\Contracts\DoctrineSchema\SchemaAssetsFilterBypassInterface; /** * Runs every not-yet-executed migration tagged with @@ -44,9 +46,14 @@ final class TaggedMigrationsRunner { private DependencyFactory $dependencyFactory; - public function __construct(DependencyFactory $dependencyFactory) - { + private SchemaAssetsFilterBypassInterface $schemaAssetsFilterBypass; + + public function __construct( + DependencyFactory $dependencyFactory, + SchemaAssetsFilterBypassInterface $schemaAssetsFilterBypass + ) { $this->dependencyFactory = $dependencyFactory; + $this->schemaAssetsFilterBypass = $schemaAssetsFilterBypass; } /** @@ -95,8 +102,13 @@ private function executeMigration( // check inside a migration see nothing at all, regardless of what previous migrations // in this same run (or a prior run) actually created -- introspect the live database // instead, same as what "doctrine:migrations:migrate" itself does via - // DBALSchemaDiffProvider::createFromSchema(). - $migration->up($connection->createSchemaManager()->introspectSchema()); + // DBALSchemaDiffProvider::createFromSchema(). With the connection's schema assets filter + // lifted: it hides every table without an ORM entity behind it (i.e. nearly all of them) + // from introspection, which would make those guards think the tables don't exist. + $migration->up($this->schemaAssetsFilterBypass->call( + $connection, + static fn (): Schema => $connection->createSchemaManager()->introspectSchema() + )); $queries = $migration->getSql(); foreach ($queries as $query) { diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index dc10aabb17..15fd0d58bb 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -13,6 +13,7 @@ services: # Not defined here, since it belongs to that package, not this one. # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID $dependencyFactory: '@ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + $schemaAssetsFilterBypass: '@Ibexa\Contracts\DoctrineSchema\SchemaAssetsFilterBypassInterface' Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider: autowire: true diff --git a/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php index 61bfdd5040..dbc3255b48 100644 --- a/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php +++ b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php @@ -14,6 +14,7 @@ use Doctrine\Migrations\Version\MigrationPlanCalculator; use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\DoctrineSchema\Filter\SchemaAssetsFilterBypass; use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; @@ -70,7 +71,7 @@ private function createRunner(MockObject $metadataStorage): TaggedMigrationsRunn $dependencyFactory->method('getMetadataStorage')->willReturn($metadataStorage); $dependencyFactory->method('getMigrationPlanCalculator')->willReturn($planCalculator); - return new TaggedMigrationsRunner($dependencyFactory); + return new TaggedMigrationsRunner($dependencyFactory, new SchemaAssetsFilterBypass()); } /** From 61e77c69074340c4b690d6046e708ccc77b157bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 08:51:31 +0200 Subject: [PATCH 39/88] IBX-11939: Renamed the index behind ibexa_content_type_field_definition_ml's language FK The 5.0 rename replaced the ezcontentclass_attribute_ml_lang_fk foreign key, but on MySQL and PostgreSQL the index behind it kept its old name - MySQL reuses the leftover index for the new constraint, and PostgreSQL's was created explicitly by the install schema. schema.yaml expects ibexa_content_type_field_definition_ml_lang_fk for both. SQLite already dropped and recreated it. --- .../Migration/sql/rename-schema-to-5-0-mysql.sql | 2 ++ .../Migration/sql/rename-schema-to-5-0-postgresql.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql index f9e9cffa91..8b420f3621 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-mysql.sql @@ -48,6 +48,8 @@ ALTER TABLE ezcontentclass_attribute_ml RENAME TO ibexa_content_type_field_defin -- ibexa:sql-statement-separator ALTER TABLE ibexa_content_type_field_definition_ml DROP FOREIGN KEY ezcontentclass_attribute_ml_lang_fk; -- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_type_field_definition_ml RENAME INDEX ezcontentclass_attribute_ml_lang_fk TO ibexa_content_type_field_definition_ml_lang_fk; +-- ibexa:sql-statement-separator ALTER TABLE ibexa_content_type_field_definition_ml ADD CONSTRAINT ibexa_content_type_field_definition_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ibexa_content_language(id) ON DELETE CASCADE ON UPDATE CASCADE; -- ibexa:sql-statement-separator ALTER TABLE ezcontentclass_classgroup RENAME TO ibexa_content_type_group_assignment; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql index 07150fa771..1fa7240d10 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/rename-schema-to-5-0-postgresql.sql @@ -48,6 +48,8 @@ ALTER TABLE ezcontentclass_attribute_ml RENAME TO ibexa_content_type_field_defin -- ibexa:sql-statement-separator ALTER TABLE ibexa_content_type_field_definition_ml DROP CONSTRAINT ezcontentclass_attribute_ml_lang_fk; -- ibexa:sql-statement-separator +ALTER INDEX ezcontentclass_attribute_ml_lang_fk RENAME TO ibexa_content_type_field_definition_ml_lang_fk; +-- ibexa:sql-statement-separator ALTER TABLE ibexa_content_type_field_definition_ml ADD CONSTRAINT ibexa_content_type_field_definition_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ibexa_content_language(id) ON DELETE CASCADE ON UPDATE CASCADE; -- ibexa:sql-statement-separator ALTER TABLE ezcontentclass_classgroup RENAME TO ibexa_content_type_group_assignment; From 89442435dae1e27c5b3c5ddecfcbdf327eb70686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 08:52:37 +0200 Subject: [PATCH 40/88] IBX-11939: Added the 6.0 content version constraints migration Core's part of the 5.0 to 6.0 schema change (IBX-12078), converted from ibexa/installer's upgrade/db/{mysql,postgresql}/ibexa-5.0.latest-to-6.0.0.sql: "ibexa_content_version.contentobject_id" becomes mandatory, with a unique (contentobject_id, version) index replacing the plain one. Versions without a content item are orphans and are removed first. SQLite can't add NOT NULL in place, so there the table is rebuilt. Skipped when the unique index already exists, i.e. on schemas installed through SchemaBuilderEvent. --- .../Resources/config/doctrine_migrations.yml | 8 +++ .../AddContentVersionUniqueIndexMigration.php | 59 +++++++++++++++++++ ...add-content-version-unique-index-mysql.sql | 7 +++ ...ontent-version-unique-index-postgresql.sql | 7 +++ ...dd-content-version-unique-index-sqlite.sql | 30 ++++++++++ 5 files changed, 111 insertions(+) create mode 100644 src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-sqlite.sql diff --git a/src/bundle/Core/Resources/config/doctrine_migrations.yml b/src/bundle/Core/Resources/config/doctrine_migrations.yml index efdb675c83..4096fc6181 100644 --- a/src/bundle/Core/Resources/config/doctrine_migrations.yml +++ b/src/bundle/Core/Resources/config/doctrine_migrations.yml @@ -38,3 +38,11 @@ services: $connection: '@ibexa.persistence.connection' tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\AddContentVersionUniqueIndexMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php new file mode 100644 index 0000000000..f9d0499ff1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php @@ -0,0 +1,59 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Doctrine\DBAL\Schema\Schema; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; + +/** + * Core's part of the 5.0 to 6.0 schema change (IBX-12078), converted from ibexa/installer's + * upgrade/db/{mysql,postgresql}/ibexa-5.0.latest-to-6.0.0.sql: a content version always belongs to + * a content item, and a content item has at most one version with a given number. Versions without + * a content item are orphans and are removed first, or the constraints couldn't be added. + */ +final class AddContentVersionUniqueIndexMigration extends AbstractSqlMigration implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Makes "ibexa_content_version.contentobject_id" mandatory and unique per version number'; + } + + public static function getTargetVersion(): string + { + return '6.0.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-09-28 00:00:00'); + } + + public function up(Schema $schema): void + { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ( + !$schema->hasTable('ibexa_content_version') + || $schema->getTable('ibexa_content_version')->hasIndex('ibexa_content_version_coid_version_unique') + ) { + return; + } + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-version-unique-index-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-version-unique-index-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-version-unique-index-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-mysql.sql new file mode 100644 index 0000000000..9d4cec7029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-mysql.sql @@ -0,0 +1,7 @@ +DELETE FROM ibexa_content_version WHERE contentobject_id IS NULL; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version CHANGE contentobject_id contentobject_id INT NOT NULL; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version ADD UNIQUE INDEX ibexa_content_version_coid_version_unique (contentobject_id, version); +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version DROP INDEX ibexa_content_version_idx_ver; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-postgresql.sql new file mode 100644 index 0000000000..12406e868c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-postgresql.sql @@ -0,0 +1,7 @@ +DELETE FROM ibexa_content_version WHERE contentobject_id IS NULL; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version ALTER contentobject_id SET NOT NULL; +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_content_version_coid_version_unique ON ibexa_content_version (contentobject_id, version); +-- ibexa:sql-statement-separator +DROP INDEX ibexa_content_version_idx_ver; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-sqlite.sql new file mode 100644 index 0000000000..1657d3fc64 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-version-unique-index-sqlite.sql @@ -0,0 +1,30 @@ +DELETE FROM ibexa_content_version WHERE contentobject_id IS NULL; +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_content_version_new ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + workflow_event_pos INTEGER DEFAULT 0 +); +-- ibexa:sql-statement-separator +INSERT INTO ibexa_content_version_new (id, contentobject_id, created, creator_id, initial_language_id, language_mask, modified, status, user_id, version, workflow_event_pos) +SELECT id, contentobject_id, created, creator_id, initial_language_id, language_mask, modified, status, user_id, version, workflow_event_pos FROM ibexa_content_version; +-- ibexa:sql-statement-separator +DROP TABLE ibexa_content_version; +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_content_version_new RENAME TO ibexa_content_version; +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_status ON ibexa_content_version (status); +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_idx_status ON ibexa_content_version (contentobject_id, status); +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_content_version_creator_id ON ibexa_content_version (creator_id); +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_content_version_coid_version_unique ON ibexa_content_version (contentobject_id, version); From cf2b90be397a7ea5793f172e8154a4f6305f2849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 09:17:05 +0200 Subject: [PATCH 41/88] IBX-11939: Typed the closures in OrmEntitiesSchemaSubscriber --- .../Event/Subscriber/OrmEntitiesSchemaSubscriber.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php index bb5b01d6a6..bd420da371 100644 --- a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php +++ b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php @@ -11,6 +11,7 @@ use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Tools\SchemaTool; use Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent; use Ibexa\Contracts\DoctrineSchema\SchemaBuilderEvents; @@ -61,7 +62,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void { $metadataFactory = $this->entityManager->getMetadataFactory(); $classMetadata = array_map( - static function (string $class) use ($metadataFactory) { + static function (string $class) use ($metadataFactory): ClassMetadata { return $metadataFactory->getMetadataFor($class); }, $this->entityClasses, @@ -76,7 +77,7 @@ static function (string $class) use ($metadataFactory) { // own table, regardless of which classes were actually requested here. Only transplant the // tables that genuinely belong to the requested entities. $ownTableNames = array_map( - static function ($metadata) { + static function (ClassMetadata $metadata): string { return $metadata->getTableName(); }, $classMetadata, @@ -96,7 +97,7 @@ static function ($metadata) { } $ownSequenceNames = array_filter(array_map( - static function ($metadata) { + static function (ClassMetadata $metadata): ?string { return isset($metadata->sequenceGeneratorDefinition['sequenceName']) ? $metadata->sequenceGeneratorDefinition['sequenceName'] : null; From 5edc32a770dde95e53e6c7294e14c31dbbe0fff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 09:17:06 +0200 Subject: [PATCH 42/88] IBX-11939: Typed the closures in OrmEntitiesSchemaSubscriber --- .../Event/Subscriber/OrmEntitiesSchemaSubscriber.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php index c6141543d6..8ddf981eba 100644 --- a/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php +++ b/src/bundle/RepositoryInstaller/Event/Subscriber/OrmEntitiesSchemaSubscriber.php @@ -11,6 +11,7 @@ use Doctrine\DBAL\Schema\Table; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\EntityManagerInterface; +use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Tools\SchemaTool; use Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent; use Ibexa\Contracts\DoctrineSchema\SchemaBuilderEvents; @@ -56,7 +57,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void { $metadataFactory = $this->entityManager->getMetadataFactory(); $classMetadata = array_map( - static fn (string $class) => $metadataFactory->getMetadataFor($class), + static fn (string $class): ClassMetadata => $metadataFactory->getMetadataFor($class), $this->entityClasses, ); @@ -69,7 +70,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void // own table, regardless of which classes were actually requested here. Only transplant the // tables that genuinely belong to the requested entities. $ownTableNames = array_map( - static fn ($metadata) => $metadata->getTableName(), + static fn (ClassMetadata $metadata): string => $metadata->getTableName(), $classMetadata, ); @@ -87,7 +88,7 @@ public function onBuildSchema(SchemaBuilderEvent $event): void } $ownSequenceNames = array_filter(array_map( - static fn ($metadata) => $metadata->sequenceGeneratorDefinition['sequenceName'] ?? null, + static fn (ClassMetadata $metadata): ?string => $metadata->sequenceGeneratorDefinition['sequenceName'] ?? null, $classMetadata, )); From 01d0866493c3022b959c0ebcf1c4534dce25ae58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 17:01:27 +0200 Subject: [PATCH 43/88] IBX-11939: Ran tagged migrations through Doctrine's Migrator TaggedMigrationsRunner now hands each migration to DependencyFactory::getMigrator() - the Migrator "ibexa:doctrine:migrations:migrate" uses - instead of executing its SQL itself. Each migration runs in its own transaction where isTransactional() allows it, so on PostgreSQL and SQLite a failed migration no longer leaves half-created tables behind, and a failure now names the migration it came from. On MySQL this relies on ibexa/doctrine-migrations#13, which makes AbstractSqlMigration non-transactional there. Without it, Doctrine's executor leaves the connection's transaction nesting level raised after an implicit commit. --- .../Migration/TaggedMigrationsRunner.php | 74 +++++------ .../Fixtures/Migration1CreateTable.php | 20 +++ .../Fixtures/Migration2InsertRow.php | 20 +++ .../Migration/Fixtures/Migration3Failing.php | 21 +++ .../Migration/TaggedMigrationsRunnerTest.php | 123 ++++++++++++++++++ 5 files changed, 217 insertions(+), 41 deletions(-) create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index 198bb88e35..c5cb8d79e1 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -8,13 +8,12 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; -use DateTimeImmutable; -use Doctrine\DBAL\Connection; use Doctrine\Migrations\DependencyFactory; -use Doctrine\Migrations\Metadata\MigrationPlan; -use Doctrine\Migrations\Metadata\Storage\MetadataStorage; -use Doctrine\Migrations\Version\ExecutionResult; +use Doctrine\Migrations\Metadata\MigrationPlanList; +use Doctrine\Migrations\MigratorConfiguration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use RuntimeException; +use Throwable; /** * Runs every not-yet-executed migration tagged with @@ -30,10 +29,12 @@ * Each migration's execution is recorded in the same versioning table `doctrine:migrations:migrate` * would use, so migrations already executed in a prior run are skipped rather than re-applied. * - * Execution is driven manually here (rather than via {@see DependencyFactory::getMigrator()}), since - * Doctrine Migrations' Migrator/Executor/AliasResolver classes are marked `@internal`. Only the - * DependencyFactory's public accessors ({@see DependencyFactory::getMigrationPlanCalculator()}, - * {@see DependencyFactory::getMetadataStorage()}, {@see DependencyFactory::getConnection()}) are used. + * Migrations are executed by {@see DependencyFactory::getMigrator()} - the same Migrator + * "ibexa:doctrine:migrations:migrate" uses - so an install runs them exactly as an upgrade does: + * each in its own transaction unless {@see \Doctrine\Migrations\AbstractMigration::isTransactional()} + * says otherwise, against a schema introspected from the live database, with the same events and + * logging. Doctrine Migrations marks the Migrator interface and MigratorConfiguration `@internal`, + * so they're used here only. * * This service isn't registered at all when "ibexa/doctrine-migrations" isn't installed/enabled * ({@see \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass} @@ -51,6 +52,8 @@ public function __construct(DependencyFactory $dependencyFactory) /** * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run + * + * @throws \RuntimeException naming the migration that failed, with the original error as its previous exception */ public function run(): array { @@ -68,44 +71,33 @@ public function run(): array $latestVersion = end($availableMigrations)->getVersion(); $plan = $planCalculator->getPlanUntilVersion($latestVersion); - $connection = $this->dependencyFactory->getConnection(); + $migrator = $this->dependencyFactory->getMigrator(); + $migratorConfiguration = new MigratorConfiguration(); $executedQueries = []; foreach ($plan->getItems() as $migrationPlan) { - foreach ($this->executeMigration($connection, $metadataStorage, $migrationPlan) as $query) { - $executedQueries[] = $query; + // One migration per migrate() call, so that a failure can name the migration it came + // from - Doctrine's executor logs it, but rethrows the original error as it was. + try { + $queriesByVersion = $migrator->migrate( + new MigrationPlanList([$migrationPlan], $plan->getDirection()), + $migratorConfiguration + ); + } catch (Throwable $e) { + throw new RuntimeException( + sprintf('Migration "%s" failed: %s', (string)$migrationPlan->getVersion(), $e->getMessage()), + 0, + $e + ); } - } - - return $executedQueries; - } - /** - * @return \Doctrine\Migrations\Query\Query[] - */ - private function executeMigration( - Connection $connection, - MetadataStorage $metadataStorage, - MigrationPlan $migrationPlan - ): array { - $executedAt = new DateTimeImmutable(); - - $migration = $migrationPlan->getMigration(); - // A freshly-constructed, empty Schema() would make every hasTable()/getTable() guard - // check inside a migration see nothing at all, regardless of what previous migrations - // in this same run (or a prior run) actually created -- introspect the live database - // instead, same as what "doctrine:migrations:migrate" itself does via - // DBALSchemaDiffProvider::createFromSchema(). - $migration->up($connection->getSchemaManager()->createSchema()); - $queries = $migration->getSql(); - - foreach ($queries as $query) { - $connection->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); + foreach ($queriesByVersion as $queries) { + foreach ($queries as $query) { + $executedQueries[] = $query; + } + } } - $result = new ExecutionResult($migrationPlan->getVersion(), $migrationPlan->getDirection(), $executedAt); - $metadataStorage->complete($result); - - return $queries; + return $executedQueries; } } diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php new file mode 100644 index 0000000000..d0aa33309f --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php @@ -0,0 +1,20 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration1CreateTable extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->addSql('CREATE TABLE runner_test (id INTEGER NOT NULL)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php new file mode 100644 index 0000000000..be92bdfa54 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php @@ -0,0 +1,20 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration2InsertRow extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->addSql('INSERT INTO runner_test (id) VALUES (1)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php new file mode 100644 index 0000000000..939d621a78 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php @@ -0,0 +1,21 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration3Failing extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->addSql('CREATE TABLE runner_test_partial (id INTEGER NOT NULL)'); + $this->addSql('INSERT INTO runner_test_missing (id) VALUES (1)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php new file mode 100644 index 0000000000..82d159711f --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php @@ -0,0 +1,123 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration; + +use Doctrine\DBAL\Connection; +use Doctrine\DBAL\DriverManager; +use Doctrine\Migrations\Configuration\Configuration; +use Doctrine\Migrations\Configuration\Connection\ExistingConnection; +use Doctrine\Migrations\Configuration\Migration\ExistingConfiguration; +use Doctrine\Migrations\DependencyFactory; +use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration1CreateTable; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration2InsertRow; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration3Failing; +use PHPUnit\Framework\TestCase; +use RuntimeException; + +/** + * Runs real migrations through a real DependencyFactory on in-memory SQLite, which has + * transactional DDL, so a failed migration's rollback is observable. + * + * @covers \Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner + */ +final class TaggedMigrationsRunnerTest extends TestCase +{ + private Connection $connection; + + protected function setUp(): void + { + $this->connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true]); + } + + public function testRunsPendingMigrationsAndReturnsTheirQueries(): void + { + $dependencyFactory = $this->createDependencyFactory(Migration1CreateTable::class, Migration2InsertRow::class); + + $queries = (new TaggedMigrationsRunner($dependencyFactory))->run(); + + self::assertSame( + ['CREATE TABLE runner_test (id INTEGER NOT NULL)', 'INSERT INTO runner_test (id) VALUES (1)'], + array_map(static fn ($query): string => $query->getStatement(), $queries) + ); + self::assertEquals(1, $this->connection->fetchOne('SELECT COUNT(*) FROM runner_test')); + self::assertSame( + [Migration1CreateTable::class, Migration2InsertRow::class], + $this->getExecutedVersions($dependencyFactory) + ); + self::assertSame(0, $this->connection->getTransactionNestingLevel()); + } + + public function testSkipsMigrationsExecutedInAnEarlierRun(): void + { + $migrationClasses = [Migration1CreateTable::class, Migration2InsertRow::class]; + (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses)))->run(); + + $queries = (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses)))->run(); + + self::assertSame([], $queries); + self::assertEquals(1, $this->connection->fetchOne('SELECT COUNT(*) FROM runner_test')); + } + + public function testFailureNamesTheMigrationAndRollsItBack(): void + { + $dependencyFactory = $this->createDependencyFactory(Migration1CreateTable::class, Migration3Failing::class); + + try { + (new TaggedMigrationsRunner($dependencyFactory))->run(); + self::fail('Expected the failing migration to throw.'); + } catch (RuntimeException $e) { + self::assertStringStartsWith( + sprintf('Migration "%s" failed: ', Migration3Failing::class), + $e->getMessage() + ); + self::assertNotNull($e->getPrevious()); + } + + // The migration before it stays applied and recorded; the failing one leaves nothing behind. + self::assertSame([Migration1CreateTable::class], $this->getExecutedVersions($dependencyFactory)); + self::assertTrue($this->hasTable('runner_test')); + self::assertFalse($this->hasTable('runner_test_partial')); + self::assertSame(0, $this->connection->getTransactionNestingLevel()); + } + + /** + * @param class-string ...$migrationClasses + */ + private function createDependencyFactory(string ...$migrationClasses): DependencyFactory + { + $configuration = new Configuration(); + $configuration->setMetadataStorageConfiguration(new TableMetadataStorageConfiguration()); + foreach ($migrationClasses as $migrationClass) { + $configuration->addMigrationClass($migrationClass); + } + + return DependencyFactory::fromConnection( + new ExistingConfiguration($configuration), + new ExistingConnection($this->connection) + ); + } + + /** + * @return list<string> + */ + private function getExecutedVersions(DependencyFactory $dependencyFactory): array + { + return array_values(array_map( + static fn ($migration): string => (string)$migration->getVersion(), + $dependencyFactory->getMetadataStorage()->getExecutedMigrations()->getItems() + )); + } + + private function hasTable(string $table): bool + { + return $this->connection->getSchemaManager()->tablesExist([$table]); + } +} From cbba249ebaddd58491d54febb84daafe20728a17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 17:14:45 +0200 Subject: [PATCH 44/88] IBX-11939: Marked DoctrineMigrationsSchemaHook as internal --- .../Bootstrapper/DoctrineMigrationsSchemaHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php index 78778c2abb..304eb94db0 100644 --- a/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php +++ b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php @@ -15,7 +15,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver; /** - * @experimental + * @internal for internal use by Ibexa packages' integration test setup * * Installs the database schema the way a real `ibexa:install` does when the SchemaBuilderEvent path * is turned off: by running every Ibexa-tagged Doctrine migration via {@see TaggedMigrationsRunner} From 5b5ff98d00d19eb0095f668da9653cd8d92251bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 17:14:45 +0200 Subject: [PATCH 45/88] IBX-11939: Renamed bootstrapper.yml to bootstrapper.yaml --- .../DependencyInjection/IbexaRepositoryInstallerExtension.php | 2 +- .../Resources/config/{bootstrapper.yml => bootstrapper.yaml} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/bundle/RepositoryInstaller/Resources/config/{bootstrapper.yml => bootstrapper.yaml} (100%) diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php index 40b9bb9cab..c0860d6be3 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php @@ -20,7 +20,7 @@ public function load(array $configs, ContainerBuilder $container) $loader->load('services.yml'); if ($this->shouldRegisterBootstrapperHook($container)) { - $loader->load('bootstrapper.yml'); + $loader->load('bootstrapper.yaml'); } } diff --git a/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml b/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yaml similarity index 100% rename from src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml rename to src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yaml From cc5668b9a8ed5d40d397f84e95e862ee420ce844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 19:18:33 +0200 Subject: [PATCH 46/88] IBX-11939: Named the failing statement when a tagged migration fails DBAL 3 no longer includes the SQL in its exception message, so the runner now takes it from DriverException::getQuery() and puts it in its own message. --- .../Migration/TaggedMigrationsRunner.php | 11 ++++++++++- .../Migration/TaggedMigrationsRunnerTest.php | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index c5cb8d79e1..bf90c5d009 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -8,6 +8,7 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; +use Doctrine\DBAL\Exception\DriverException; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\MigrationPlanList; use Doctrine\Migrations\MigratorConfiguration; @@ -84,8 +85,16 @@ public function run(): array $migratorConfiguration ); } catch (Throwable $e) { + // Unlike DBAL 2, DBAL 3+ leaves the failing statement out of its message. + $query = $e instanceof DriverException ? $e->getQuery() : null; + throw new RuntimeException( - sprintf('Migration "%s" failed: %s', (string)$migrationPlan->getVersion(), $e->getMessage()), + sprintf( + 'Migration "%s" failed%s: %s', + (string)$migrationPlan->getVersion(), + $query !== null ? sprintf(' while executing "%s"', $query->getSQL()) : '', + $e->getMessage() + ), 0, $e ); diff --git a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php index 82d159711f..2cccb82af2 100644 --- a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php +++ b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php @@ -75,7 +75,10 @@ public function testFailureNamesTheMigrationAndRollsItBack(): void self::fail('Expected the failing migration to throw.'); } catch (RuntimeException $e) { self::assertStringStartsWith( - sprintf('Migration "%s" failed: ', Migration3Failing::class), + sprintf( + 'Migration "%s" failed while executing "INSERT INTO runner_test_missing (id) VALUES (1)": ', + Migration3Failing::class + ), $e->getMessage() ); self::assertNotNull($e->getPrevious()); From 194ae925e8e48a7612b2b0979c77b4d79963c8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 19:24:45 +0200 Subject: [PATCH 47/88] IBX-11939: Adapted TaggedMigrationsRunnerTest to 6.0 Passes the runner its SchemaAssetsFilterBypass, uses DBAL 4's createSchemaManager() and PHPUnit 11's CoversClass attribute, and covers the bypass itself: a migration whose guard needs a table the connection's schema assets filter hides only runs when the filter is lifted. --- .../Migration4RequiresVisibleTable.php | 22 ++++++++++++ .../Migration/TaggedMigrationsRunnerTest.php | 35 +++++++++++++++---- 2 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration4RequiresVisibleTable.php diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration4RequiresVisibleTable.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration4RequiresVisibleTable.php new file mode 100644 index 0000000000..a7240d963a --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration4RequiresVisibleTable.php @@ -0,0 +1,22 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration4RequiresVisibleTable extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->abortIf(!$schema->hasTable('runner_test'), 'Table "runner_test" is not in the introspected schema.'); + + $this->addSql('INSERT INTO runner_test (id) VALUES (2)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php index 2cccb82af2..b076f68d24 100644 --- a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php +++ b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php @@ -16,18 +16,20 @@ use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\DoctrineSchema\Filter\SchemaAssetsFilterBypass; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration1CreateTable; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration2InsertRow; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration3Failing; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration4RequiresVisibleTable; +use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\TestCase; use RuntimeException; /** * Runs real migrations through a real DependencyFactory on in-memory SQLite, which has * transactional DDL, so a failed migration's rollback is observable. - * - * @covers \Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner */ +#[CoversClass(TaggedMigrationsRunner::class)] final class TaggedMigrationsRunnerTest extends TestCase { private Connection $connection; @@ -41,7 +43,7 @@ public function testRunsPendingMigrationsAndReturnsTheirQueries(): void { $dependencyFactory = $this->createDependencyFactory(Migration1CreateTable::class, Migration2InsertRow::class); - $queries = (new TaggedMigrationsRunner($dependencyFactory))->run(); + $queries = (new TaggedMigrationsRunner($dependencyFactory, new SchemaAssetsFilterBypass()))->run(); self::assertSame( ['CREATE TABLE runner_test (id INTEGER NOT NULL)', 'INSERT INTO runner_test (id) VALUES (1)'], @@ -58,9 +60,9 @@ public function testRunsPendingMigrationsAndReturnsTheirQueries(): void public function testSkipsMigrationsExecutedInAnEarlierRun(): void { $migrationClasses = [Migration1CreateTable::class, Migration2InsertRow::class]; - (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses)))->run(); + (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses), new SchemaAssetsFilterBypass()))->run(); - $queries = (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses)))->run(); + $queries = (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses), new SchemaAssetsFilterBypass()))->run(); self::assertSame([], $queries); self::assertEquals(1, $this->connection->fetchOne('SELECT COUNT(*) FROM runner_test')); @@ -71,7 +73,7 @@ public function testFailureNamesTheMigrationAndRollsItBack(): void $dependencyFactory = $this->createDependencyFactory(Migration1CreateTable::class, Migration3Failing::class); try { - (new TaggedMigrationsRunner($dependencyFactory))->run(); + (new TaggedMigrationsRunner($dependencyFactory, new SchemaAssetsFilterBypass()))->run(); self::fail('Expected the failing migration to throw.'); } catch (RuntimeException $e) { self::assertStringStartsWith( @@ -91,6 +93,25 @@ public function testFailureNamesTheMigrationAndRollsItBack(): void self::assertSame(0, $this->connection->getTransactionNestingLevel()); } + public function testLiftsTheSchemaAssetsFilterWhileMigrating(): void + { + // Like 6.0's managed-tables filter, which hides every table without an ORM entity behind it. + $hideRunnerTest = static fn (string $assetName): bool => $assetName !== 'runner_test'; + $this->connection->getConfiguration()->setSchemaAssetsFilter($hideRunnerTest); + $dependencyFactory = $this->createDependencyFactory( + Migration1CreateTable::class, + Migration4RequiresVisibleTable::class + ); + + (new TaggedMigrationsRunner($dependencyFactory, new SchemaAssetsFilterBypass()))->run(); + + self::assertSame( + [Migration1CreateTable::class, Migration4RequiresVisibleTable::class], + $this->getExecutedVersions($dependencyFactory) + ); + self::assertSame($hideRunnerTest, $this->connection->getConfiguration()->getSchemaAssetsFilter()); + } + /** * @param class-string ...$migrationClasses */ @@ -121,6 +142,6 @@ private function getExecutedVersions(DependencyFactory $dependencyFactory): arra private function hasTable(string $table): bool { - return $this->connection->getSchemaManager()->tablesExist([$table]); + return $this->connection->createSchemaManager()->tablesExist([$table]); } } From f75405c25ed20d22f7d1b2c7018cd5dc6c228f7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Tue, 29 Sep 2026 00:39:11 +0200 Subject: [PATCH 48/88] IBX-11939: Added a dedicated exception for failing tagged migrations TaggedMigrationsRunner threw a plain RuntimeException, which SonarCloud flags (php:S112) and callers can't tell apart from other runtime errors. MigrationFailedException carries the failing migration's version on top of the same message, and still extends RuntimeException, so existing catch blocks keep working. --- .../Installer/CoreInstaller.php | 1 + .../Exception/MigrationFailedException.php | 34 +++++++++++++++++++ .../Migration/TaggedMigrationsRunner.php | 10 ++---- .../Migration/TaggedMigrationsRunnerTest.php | 5 +-- 4 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 57253f09b5..f438de029e 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -58,6 +58,7 @@ public function __construct( * @throws \Doctrine\DBAL\DBALException * @throws \RuntimeException if "ibexa.installer.schema_builder_event.enabled" is disabled but * "ibexa/doctrine-migrations" isn't installed/enabled to run the migrations-based path instead + * @throws \Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException if one of those migrations fails */ public function importSchema() { diff --git a/src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php b/src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php new file mode 100644 index 0000000000..418127b721 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php @@ -0,0 +1,34 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration\Exception; + +use RuntimeException; +use Throwable; + +/** + * Thrown by {@see \Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner} when one of the + * migrations it runs fails. Names that migration, since Doctrine's executor rethrows the original + * error as it was, and carries that error as the previous exception. + */ +final class MigrationFailedException extends RuntimeException +{ + private string $version; + + public function __construct(string $version, Throwable $previous) + { + parent::__construct(sprintf('Migration "%s" failed: %s', $version, $previous->getMessage()), 0, $previous); + + $this->version = $version; + } + + public function getVersion(): string + { + return $this->version; + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index c5cb8d79e1..0c4ef4ef96 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -11,8 +11,8 @@ use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\MigrationPlanList; use Doctrine\Migrations\MigratorConfiguration; +use Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; -use RuntimeException; use Throwable; /** @@ -53,7 +53,7 @@ public function __construct(DependencyFactory $dependencyFactory) /** * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run * - * @throws \RuntimeException naming the migration that failed, with the original error as its previous exception + * @throws \Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException naming the migration that failed, with the original error as its previous exception */ public function run(): array { @@ -84,11 +84,7 @@ public function run(): array $migratorConfiguration ); } catch (Throwable $e) { - throw new RuntimeException( - sprintf('Migration "%s" failed: %s', (string)$migrationPlan->getVersion(), $e->getMessage()), - 0, - $e - ); + throw new MigrationFailedException((string)$migrationPlan->getVersion(), $e); } foreach ($queriesByVersion as $queries) { diff --git a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php index 82d159711f..f14bd0ea14 100644 --- a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php +++ b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php @@ -15,12 +15,12 @@ use Doctrine\Migrations\Configuration\Migration\ExistingConfiguration; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration; +use Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration1CreateTable; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration2InsertRow; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration3Failing; use PHPUnit\Framework\TestCase; -use RuntimeException; /** * Runs real migrations through a real DependencyFactory on in-memory SQLite, which has @@ -73,7 +73,8 @@ public function testFailureNamesTheMigrationAndRollsItBack(): void try { (new TaggedMigrationsRunner($dependencyFactory))->run(); self::fail('Expected the failing migration to throw.'); - } catch (RuntimeException $e) { + } catch (MigrationFailedException $e) { + self::assertSame(Migration3Failing::class, $e->getVersion()); self::assertStringStartsWith( sprintf('Migration "%s" failed: ', Migration3Failing::class), $e->getMessage() From 06ca13bae2e4339608e13a2669299d6b6e9a470a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 16 Jul 2026 17:40:57 +0200 Subject: [PATCH 49/88] [Doctrine Migrations] Added Doctrine Migrations-based schema and data install path Adds an ibexa/doctrine-migrations-based alternative to the event-driven SchemaBuilderEvent mechanism CoreInstaller has used to install the core schema and bootstrap data. Controlled by the new "ibexa.installer.schema_builder_event.enabled" setting (defaults to true, preserving current behavior): - When enabled (default), CoreInstaller keeps dispatching SchemaBuilderEvent and importing cleandata.sql directly, unchanged. - When disabled, schema creation and data import are each modeled as an AbstractVersion migration (InstallSchemaMigration, ImportDataMigration), tagged for discovery, and executed via TaggedMigrationsRunner through the new IbexaOnlyDependencyFactory service - an independent Doctrine Migrations DependencyFactory scoped to only Ibexa-tagged migrations, so a project's own migrations are never accidentally executed. Each migration's execution is recorded in the standard Doctrine Migrations versioning table, making repeated installs idempotent. InstallSchemaMigration's SQL (mysql/postgresql/sqlite, one statement per file) is generated from the existing schema.yaml; ImportDataMigration's from the existing per-DBMS cleandata.sql files (with the mysql statements reused verbatim for sqlite, which previously had no cleandata support at all). --- composer.json | 7 + phpstan-baseline.neon | 72 -- .../DependencyInjection/Configuration.php | 39 + .../IbexaCoreExtension.php | 12 + .../Command/InstallPlatformCommand.php | 89 +- .../Compiler/InstallerTagPass.php | 34 +- .../IbexaRepositoryInstallerBundle.php | 2 - .../Installer/CoreInstaller.php | 111 ++- .../Migration/ImportDataMigration.php | 45 + .../Migration/InstallSchemaMigration.php | 45 + .../Migration/TaggedMigrationsRunner.php | 113 +++ .../Resources/config/services.yml | 28 +- .../Resources/migrations/import_data.yaml | 243 ++++++ .../Resources/migrations/install_schema.yaml | 773 ++++++++++++++++++ .../sql/mysql/0001_create_ezbinaryfile.sql | 1 + .../sql/mysql/0002_create_ezcobj_state.sql | 1 + .../mysql/0003_create_ezcobj_state_group.sql | 1 + ...004_create_ezcobj_state_group_language.sql | 1 + .../0005_create_ezcobj_state_language.sql | 1 + .../mysql/0006_create_ezcobj_state_link.sql | 1 + .../mysql/0007_create_ezcontent_language.sql | 1 + .../sql/mysql/0008_create_ezuser.sql | 1 + .../0009_create_ezcontentobject_tree.sql | 1 + .../0010_create_ezcontentbrowsebookmark.sql | 1 + .../sql/mysql/0011_create_ezcontentclass.sql | 1 + .../0012_create_ezcontentclass_attribute.sql | 1 + ...013_create_ezcontentclass_attribute_ml.sql | 1 + .../0014_create_ezcontentclass_classgroup.sql | 1 + .../mysql/0015_create_ezcontentclass_name.sql | 1 + .../mysql/0016_create_ezcontentclassgroup.sql | 1 + .../sql/mysql/0017_create_ezcontentobject.sql | 1 + .../0018_create_ezcontentobject_attribute.sql | 1 + .../0019_create_ezcontentobject_link.sql | 1 + .../0020_create_ezcontentobject_name.sql | 1 + .../0021_create_ezcontentobject_trash.sql | 1 + .../0022_create_ezcontentobject_version.sql | 1 + .../sql/mysql/0023_create_ezdfsfile.sql | 1 + .../sql/mysql/0024_create_ezgmaplocation.sql | 1 + .../sql/mysql/0025_create_ezimagefile.sql | 1 + .../sql/mysql/0026_create_ezkeyword.sql | 1 + .../0027_create_ezkeyword_attribute_link.sql | 1 + .../sql/mysql/0028_create_ezmedia.sql | 1 + .../mysql/0029_create_eznode_assignment.sql | 1 + .../sql/mysql/0030_create_eznotification.sql | 1 + .../sql/mysql/0031_create_ezpackage.sql | 1 + .../sql/mysql/0032_create_ezpolicy.sql | 1 + .../mysql/0033_create_ezpolicy_limitation.sql | 1 + .../0034_create_ezpolicy_limitation_value.sql | 1 + .../sql/mysql/0035_create_ezpreferences.sql | 1 + .../sql/mysql/0036_create_ezrole.sql | 1 + .../0037_create_ezsearch_object_word_link.sql | 1 + .../sql/mysql/0038_create_ezsearch_word.sql | 1 + .../sql/mysql/0039_create_ezsection.sql | 1 + .../sql/mysql/0040_create_ezsite_data.sql | 1 + .../sql/mysql/0041_create_ezurl.sql | 1 + .../mysql/0042_create_ezurl_object_link.sql | 1 + .../sql/mysql/0043_create_ezurlalias.sql | 1 + .../sql/mysql/0044_create_ezurlalias_ml.sql | 1 + .../mysql/0045_create_ezurlalias_ml_incr.sql | 1 + .../sql/mysql/0046_create_ezurlwildcard.sql | 1 + .../mysql/0047_create_ezuser_accountkey.sql | 1 + .../sql/mysql/0048_create_ezuser_role.sql | 1 + .../sql/mysql/0049_create_ezuser_setting.sql | 1 + .../sql/mysql/0050_create_ibexa_setting.sql | 1 + .../mysql/0051_create_ibexa_token_type.sql | 1 + .../sql/mysql/0052_create_ibexa_token.sql | 1 + ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 + ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 + .../mysql/data/0001_insert_ezcobj_state.sql | 3 + .../data/0002_insert_ezcobj_state_group.sql | 2 + ...003_insert_ezcobj_state_group_language.sql | 2 + .../0004_insert_ezcobj_state_language.sql | 3 + .../data/0005_insert_ezcobj_state_link.sql | 13 + .../data/0006_insert_ezcontent_language.sql | 2 + .../mysql/data/0007_insert_ezcontentclass.sql | 7 + .../0008_insert_ezcontentclass_attribute.sql | 25 + .../0009_insert_ezcontentclass_classgroup.sql | 7 + .../data/0010_insert_ezcontentclass_name.sql | 7 + .../data/0011_insert_ezcontentclassgroup.sql | 4 + .../data/0012_insert_ezcontentobject.sql | 13 + .../0013_insert_ezcontentobject_attribute.sql | 41 + .../data/0014_insert_ezcontentobject_name.sql | 13 + .../data/0015_insert_ezcontentobject_tree.sql | 14 + .../0016_insert_ezcontentobject_version.sql | 13 + .../data/0017_insert_eznode_assignment.sql | 13 + .../sql/mysql/data/0018_insert_ezpolicy.sql | 9 + .../data/0019_insert_ezpolicy_limitation.sql | 7 + .../0020_insert_ezpolicy_limitation_value.sql | 8 + .../sql/mysql/data/0021_insert_ezrole.sql | 5 + .../sql/mysql/data/0022_insert_ezsection.sql | 4 + .../mysql/data/0023_insert_ezsite_data.sql | 2 + .../sql/mysql/data/0024_insert_ezurlalias.sql | 13 + .../mysql/data/0025_insert_ezurlalias_ml.sql | 26 + .../data/0026_insert_ezurlalias_ml_incr.sql | 4 + .../sql/mysql/data/0027_insert_ezuser.sql | 3 + .../mysql/data/0028_insert_ezuser_role.sql | 7 + .../mysql/data/0029_insert_ezuser_setting.sql | 3 + .../mysql/data/0030_insert_ezpreferences.sql | 2 + .../postgresql/0001_create_ezbinaryfile.sql | 1 + .../postgresql/0002_create_ezcobj_state.sql | 1 + ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 + ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 + ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 + .../0006_create_ezcobj_state_group.sql | 1 + ...j_state_group_ezcobj_state_group_lmask.sql | 1 + ...te_group_ezcobj_state_group_identifier.sql | 1 + ...009_create_ezcobj_state_group_language.sql | 1 + .../0010_create_ezcobj_state_language.sql | 1 + .../0011_create_ezcobj_state_link.sql | 1 + .../0012_create_ezcontent_language.sql | 1 + ...ntent_language_ezcontent_language_name.sql | 1 + .../sql/postgresql/0014_create_ezuser.sql | 1 + .../0015_index_ezuser_ezuser_login.sql | 1 + .../0016_create_ezcontentobject_tree.sql | 1 + ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 + ...t_tree_ezcontentobject_tree_path_ident.sql | 1 + ...ject_tree_contentobject_id_path_string.sql | 1 + ...object_tree_ezcontentobject_tree_co_id.sql | 1 + ...object_tree_ezcontentobject_tree_depth.sql | 1 + ...tobject_tree_ezcontentobject_tree_path.sql | 1 + ..._ezcontentobject_tree_modified_subnode.sql | 1 + ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 + .../0025_create_ezcontentbrowsebookmark.sql | 1 + ...kmark_ezcontentbrowsebookmark_location.sql | 1 + ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 + ..._ezcontentbrowsebookmark_user_location.sql | 1 + .../postgresql/0029_create_ezcontentclass.sql | 1 + ..._ezcontentclass_ezcontentclass_version.sql | 1 + ...contentclass_ezcontentclass_identifier.sql | 1 + .../0032_create_ezcontentclass_attribute.sql | 1 + ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 + ...lass_attribute_ezcontentclass_attr_dts.sql | 1 + ...035_create_ezcontentclass_attribute_ml.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + .../0037_create_ezcontentclass_classgroup.sql | 1 + .../0038_create_ezcontentclass_name.sql | 1 + .../0039_create_ezcontentclassgroup.sql | 1 + .../0040_create_ezcontentobject.sql | 1 + ...zcontentobject_ezcontentobject_classid.sql | 1 + ..._ezcontentobject_ezcontentobject_lmask.sql | 1 + ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 + ...zcontentobject_ezcontentobject_section.sql | 1 + ...tobject_ezcontentobject_currentversion.sql | 1 + ..._ezcontentobject_ezcontentobject_owner.sql | 1 + ...ezcontentobject_ezcontentobject_status.sql | 1 + ...ontentobject_ezcontentobject_remote_id.sql | 1 + .../0049_create_ezcontentobject_attribute.sql | 1 + ...ntobject_attribute_co_id_ver_lang_code.sql | 1 + ...attribute_ezcontentobject_classattr_id.sql | 1 + ...ontentobject_attribute_sort_key_string.sql | 1 + ...zcontentobject_attribute_language_code.sql | 1 + ...ezcontentobject_attribute_sort_key_int.sql | 1 + ...te_ezcontentobject_attribute_co_id_ver.sql | 1 + .../0056_create_ezcontentobject_link.sql | 1 + ...zcontentobject_link_ezco_link_to_co_id.sql | 1 + ...ex_ezcontentobject_link_ezco_link_from.sql | 1 + ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 + .../0060_create_ezcontentobject_name.sql | 1 + ...ject_name_ezcontentobject_name_lang_id.sql | 1 + ...bject_name_ezcontentobject_name_cov_id.sql | 1 + ...tobject_name_ezcontentobject_name_name.sql | 1 + .../0064_create_ezcontentobject_trash.sql | 1 + ...contentobject_trash_ezcobj_trash_depth.sql | 1 + ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 + ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 + ...contentobject_trash_ezcobj_trash_co_id.sql | 1 + ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 + ...zcontentobject_trash_ezcobj_trash_path.sql | 1 + .../0071_create_ezcontentobject_version.sql | 1 + ...ntobject_version_ezcobj_version_status.sql | 1 + ...ject_version_idx_object_version_objver.sql | 1 + ...t_version_ezcontobj_version_obj_status.sql | 1 + ...ject_version_ezcobj_version_creator_id.sql | 1 + .../sql/postgresql/0076_create_ezdfsfile.sql | 1 + ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 + ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 + .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 + .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 + .../postgresql/0081_create_ezgmaplocation.sql | 1 + ..._ezgmaplocation_latitude_longitude_key.sql | 1 + .../postgresql/0083_create_ezimagefile.sql | 1 + ...084_index_ezimagefile_ezimagefile_file.sql | 1 + ...085_index_ezimagefile_ezimagefile_coid.sql | 1 + .../sql/postgresql/0086_create_ezkeyword.sql | 1 + ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 + .../0088_create_ezkeyword_attribute_link.sql | 1 + ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 + .../sql/postgresql/0092_create_ezmedia.sql | 1 + .../0093_create_eznode_assignment.sql | 1 + ...e_assignment_eznode_assignment_is_main.sql | 1 + ..._assignment_eznode_assignment_coid_cov.sql | 1 + ...signment_eznode_assignment_parent_node.sql | 1 + ...ssignment_eznode_assignment_co_version.sql | 1 + .../postgresql/0098_create_eznotification.sql | 1 + ...cation_eznotification_owner_is_pending.sql | 1 + ...ex_eznotification_eznotification_owner.sql | 1 + .../sql/postgresql/0101_create_ezpackage.sql | 1 + .../sql/postgresql/0102_create_ezpolicy.sql | 1 + .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 + ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 + .../0105_create_ezpolicy_limitation.sql | 1 + ...06_index_ezpolicy_limitation_policy_id.sql | 1 + .../0107_create_ezpolicy_limitation_value.sql | 1 + ...on_value_ezpolicy_limit_value_limit_id.sql | 1 + ...on_value_ezpolicy_limitation_value_val.sql | 1 + .../postgresql/0110_create_ezpreferences.sql | 1 + ...zpreferences_ezpreferences_user_id_idx.sql | 1 + ...index_ezpreferences_ezpreferences_name.sql | 1 + .../sql/postgresql/0113_create_ezrole.sql | 1 + .../0114_create_ezsearch_object_word_link.sql | 1 + ..._link_ezsearch_object_word_link_object.sql | 1 + ...k_ezsearch_object_word_link_identifier.sql | 1 + ...zsearch_object_word_link_integer_value.sql | 1 + ...rd_link_ezsearch_object_word_link_word.sql | 1 + ...nk_ezsearch_object_word_link_frequency.sql | 1 + .../postgresql/0120_create_ezsearch_word.sql | 1 + ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 + ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 + .../sql/postgresql/0123_create_ezsection.sql | 1 + .../postgresql/0124_create_ezsite_data.sql | 1 + .../sql/postgresql/0125_create_ezurl.sql | 1 + .../postgresql/0126_index_ezurl_ezurl_url.sql | 1 + .../0127_create_ezurl_object_link.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 + ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 + ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 + .../sql/postgresql/0132_create_ezurlalias.sql | 1 + ...index_ezurlalias_ezurlalias_source_md5.sql | 1 + ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 + ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 + ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 + ...index_ezurlalias_ezurlalias_source_url.sql | 1 + ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 + .../postgresql/0139_create_ezurlalias_ml.sql | 1 + ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 + ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 + ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 + ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 + ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 + ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 + .../0148_create_ezurlalias_ml_incr.sql | 1 + .../postgresql/0149_create_ezurlwildcard.sql | 1 + .../0150_create_ezuser_accountkey.sql | 1 + .../0151_index_ezuser_accountkey_hash_key.sql | 1 + .../postgresql/0152_create_ezuser_role.sql | 1 + ..._index_ezuser_role_ezuser_role_role_id.sql | 1 + ...user_role_ezuser_role_contentobject_id.sql | 1 + .../postgresql/0155_create_ezuser_setting.sql | 1 + .../postgresql/0156_create_ibexa_setting.sql | 1 + ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 + ...setting_ibexa_setting_group_identifier.sql | 1 + .../0159_create_ibexa_token_type.sql | 1 + ...exa_token_type_ibexa_token_type_unique.sql | 1 + .../postgresql/0161_create_ibexa_token.sql | 1 + ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 + ...3_index_ibexa_token_ibexa_token_unique.sql | 1 + ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 + ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 + .../data/0001_insert_ezcobj_state.sql | 3 + .../data/0002_insert_ezcobj_state_group.sql | 2 + ...003_insert_ezcobj_state_group_language.sql | 2 + .../0004_insert_ezcobj_state_language.sql | 3 + .../data/0005_insert_ezcobj_state_link.sql | 13 + .../data/0006_insert_ezcontent_language.sql | 2 + .../data/0007_insert_ezcontentclass.sql | 7 + .../0008_insert_ezcontentclass_attribute.sql | 25 + .../0009_insert_ezcontentclass_classgroup.sql | 7 + .../data/0010_insert_ezcontentclass_name.sql | 7 + .../data/0011_insert_ezcontentclassgroup.sql | 4 + .../data/0012_insert_ezcontentobject.sql | 13 + .../0013_insert_ezcontentobject_attribute.sql | 41 + .../data/0014_insert_ezcontentobject_name.sql | 13 + .../data/0015_insert_ezcontentobject_tree.sql | 14 + .../0016_insert_ezcontentobject_version.sql | 13 + .../data/0017_insert_eznode_assignment.sql | 13 + .../postgresql/data/0018_insert_ezpolicy.sql | 9 + .../data/0019_insert_ezpolicy_limitation.sql | 7 + .../0020_insert_ezpolicy_limitation_value.sql | 8 + .../postgresql/data/0021_insert_ezrole.sql | 5 + .../postgresql/data/0022_insert_ezsection.sql | 4 + .../data/0023_insert_ezsite_data.sql | 2 + .../data/0024_insert_ezurlalias.sql | 13 + .../data/0025_insert_ezurlalias_ml.sql | 26 + .../data/0026_insert_ezurlalias_ml_incr.sql | 4 + .../postgresql/data/0027_insert_ezuser.sql | 3 + .../data/0028_insert_ezuser_role.sql | 7 + .../data/0029_insert_ezuser_setting.sql | 3 + .../data/0030_insert_ezpreferences.sql | 2 + .../0031_setval_ezcobj_state_group_id_seq.sql | 2 + .../data/0032_setval_ezcobj_state_id_seq.sql | 1 + ..._setval_ezcontentbrowsebookmark_id_seq.sql | 1 + ...setval_ezcontentclass_attribute_id_seq.sql | 1 + .../0035_setval_ezcontentclass_id_seq.sql | 1 + ...0036_setval_ezcontentclassgroup_id_seq.sql | 1 + ...etval_ezcontentobject_attribute_id_seq.sql | 1 + .../0038_setval_ezcontentobject_id_seq.sql | 1 + ...039_setval_ezcontentobject_link_id_seq.sql | 1 + ...etval_ezcontentobject_tree_node_id_seq.sql | 1 + ..._setval_ezcontentobject_version_id_seq.sql | 1 + .../data/0042_setval_ezimagefile_id_seq.sql | 1 + ...setval_ezkeyword_attribute_link_id_seq.sql | 1 + .../data/0044_setval_ezkeyword_id_seq.sql | 1 + .../0045_setval_eznode_assignment_id_seq.sql | 1 + .../0046_setval_eznotification_id_seq.sql | 1 + .../data/0047_setval_ezpackage_id_seq.sql | 1 + .../data/0048_setval_ezpolicy_id_seq.sql | 1 + ...0049_setval_ezpolicy_limitation_id_seq.sql | 1 + ...etval_ezpolicy_limitation_value_id_seq.sql | 1 + .../data/0051_setval_ezpreferences_id_seq.sql | 1 + .../data/0052_setval_ezrole_id_seq.sql | 1 + ...etval_ezsearch_object_word_link_id_seq.sql | 1 + .../data/0054_setval_ezsearch_word_id_seq.sql | 1 + .../data/0055_setval_ezsection_id_seq.sql | 1 + .../data/0056_setval_ezurl_id_seq.sql | 1 + .../data/0057_setval_ezurlalias_id_seq.sql | 1 + .../0058_setval_ezurlalias_ml_incr_id_seq.sql | 1 + .../data/0059_setval_ezurlwildcard_id_seq.sql | 1 + .../0060_setval_ezuser_accountkey_id_seq.sql | 1 + .../data/0061_setval_ezuser_role_id_seq.sql | 1 + .../sql/sqlite/0001_create_ezbinaryfile.sql | 1 + .../sql/sqlite/0002_create_ezcobj_state.sql | 1 + ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 + ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 + ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 + .../sqlite/0006_create_ezcobj_state_group.sql | 1 + ...j_state_group_ezcobj_state_group_lmask.sql | 1 + ...te_group_ezcobj_state_group_identifier.sql | 1 + ...009_create_ezcobj_state_group_language.sql | 1 + .../0010_create_ezcobj_state_language.sql | 1 + .../sqlite/0011_create_ezcobj_state_link.sql | 1 + .../sqlite/0012_create_ezcontent_language.sql | 1 + ...ntent_language_ezcontent_language_name.sql | 1 + .../sql/sqlite/0014_create_ezuser.sql | 1 + .../sqlite/0015_index_ezuser_ezuser_login.sql | 1 + .../0016_create_ezcontentobject_tree.sql | 1 + ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 + ...t_tree_ezcontentobject_tree_path_ident.sql | 1 + ...ject_tree_contentobject_id_path_string.sql | 1 + ...object_tree_ezcontentobject_tree_co_id.sql | 1 + ...object_tree_ezcontentobject_tree_depth.sql | 1 + ...tobject_tree_ezcontentobject_tree_path.sql | 1 + ..._ezcontentobject_tree_modified_subnode.sql | 1 + ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 + .../0025_create_ezcontentbrowsebookmark.sql | 1 + ...kmark_ezcontentbrowsebookmark_location.sql | 1 + ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 + ..._ezcontentbrowsebookmark_user_location.sql | 1 + .../sql/sqlite/0029_create_ezcontentclass.sql | 1 + ..._ezcontentclass_ezcontentclass_version.sql | 1 + ...contentclass_ezcontentclass_identifier.sql | 1 + .../0032_create_ezcontentclass_attribute.sql | 1 + ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 + ...lass_attribute_ezcontentclass_attr_dts.sql | 1 + ...035_create_ezcontentclass_attribute_ml.sql | 1 + ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 + .../0037_create_ezcontentclass_classgroup.sql | 1 + .../0038_create_ezcontentclass_name.sql | 1 + .../0039_create_ezcontentclassgroup.sql | 1 + .../sqlite/0040_create_ezcontentobject.sql | 1 + ...zcontentobject_ezcontentobject_classid.sql | 1 + ..._ezcontentobject_ezcontentobject_lmask.sql | 1 + ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 + ...zcontentobject_ezcontentobject_section.sql | 1 + ...tobject_ezcontentobject_currentversion.sql | 1 + ..._ezcontentobject_ezcontentobject_owner.sql | 1 + ...ezcontentobject_ezcontentobject_status.sql | 1 + ...ontentobject_ezcontentobject_remote_id.sql | 1 + .../0049_create_ezcontentobject_attribute.sql | 1 + ...ntobject_attribute_co_id_ver_lang_code.sql | 1 + ...attribute_ezcontentobject_classattr_id.sql | 1 + ...ontentobject_attribute_sort_key_string.sql | 1 + ...zcontentobject_attribute_language_code.sql | 1 + ...ezcontentobject_attribute_sort_key_int.sql | 1 + ...te_ezcontentobject_attribute_co_id_ver.sql | 1 + .../0056_create_ezcontentobject_link.sql | 1 + ...zcontentobject_link_ezco_link_to_co_id.sql | 1 + ...ex_ezcontentobject_link_ezco_link_from.sql | 1 + ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 + .../0060_create_ezcontentobject_name.sql | 1 + ...ject_name_ezcontentobject_name_lang_id.sql | 1 + ...bject_name_ezcontentobject_name_cov_id.sql | 1 + ...tobject_name_ezcontentobject_name_name.sql | 1 + .../0064_create_ezcontentobject_trash.sql | 1 + ...contentobject_trash_ezcobj_trash_depth.sql | 1 + ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 + ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 + ...contentobject_trash_ezcobj_trash_co_id.sql | 1 + ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 + ...zcontentobject_trash_ezcobj_trash_path.sql | 1 + .../0071_create_ezcontentobject_version.sql | 1 + ...ntobject_version_ezcobj_version_status.sql | 1 + ...ject_version_idx_object_version_objver.sql | 1 + ...t_version_ezcontobj_version_obj_status.sql | 1 + ...ject_version_ezcobj_version_creator_id.sql | 1 + .../sql/sqlite/0076_create_ezdfsfile.sql | 1 + ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 + ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 + .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 + .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 + .../sql/sqlite/0081_create_ezgmaplocation.sql | 1 + ..._ezgmaplocation_latitude_longitude_key.sql | 1 + .../sql/sqlite/0083_create_ezimagefile.sql | 1 + ...084_index_ezimagefile_ezimagefile_file.sql | 1 + ...085_index_ezimagefile_ezimagefile_coid.sql | 1 + .../sql/sqlite/0086_create_ezkeyword.sql | 1 + ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 + .../0088_create_ezkeyword_attribute_link.sql | 1 + ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 + ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 + .../sql/sqlite/0092_create_ezmedia.sql | 1 + .../sqlite/0093_create_eznode_assignment.sql | 1 + ...e_assignment_eznode_assignment_is_main.sql | 1 + ..._assignment_eznode_assignment_coid_cov.sql | 1 + ...signment_eznode_assignment_parent_node.sql | 1 + ...ssignment_eznode_assignment_co_version.sql | 1 + .../sql/sqlite/0098_create_eznotification.sql | 1 + ...cation_eznotification_owner_is_pending.sql | 1 + ...ex_eznotification_eznotification_owner.sql | 1 + .../sql/sqlite/0101_create_ezpackage.sql | 1 + .../sql/sqlite/0102_create_ezpolicy.sql | 1 + .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 + ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 + .../0105_create_ezpolicy_limitation.sql | 1 + ...06_index_ezpolicy_limitation_policy_id.sql | 1 + .../0107_create_ezpolicy_limitation_value.sql | 1 + ...on_value_ezpolicy_limit_value_limit_id.sql | 1 + ...on_value_ezpolicy_limitation_value_val.sql | 1 + .../sql/sqlite/0110_create_ezpreferences.sql | 1 + ...zpreferences_ezpreferences_user_id_idx.sql | 1 + ...index_ezpreferences_ezpreferences_name.sql | 1 + .../sql/sqlite/0113_create_ezrole.sql | 1 + .../0114_create_ezsearch_object_word_link.sql | 1 + ..._link_ezsearch_object_word_link_object.sql | 1 + ...k_ezsearch_object_word_link_identifier.sql | 1 + ...zsearch_object_word_link_integer_value.sql | 1 + ...rd_link_ezsearch_object_word_link_word.sql | 1 + ...nk_ezsearch_object_word_link_frequency.sql | 1 + .../sql/sqlite/0120_create_ezsearch_word.sql | 1 + ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 + ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 + .../sql/sqlite/0123_create_ezsection.sql | 1 + .../sql/sqlite/0124_create_ezsite_data.sql | 1 + .../sql/sqlite/0125_create_ezurl.sql | 1 + .../sql/sqlite/0126_index_ezurl_ezurl_url.sql | 1 + .../sqlite/0127_create_ezurl_object_link.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 + ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 + ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 + ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 + .../sql/sqlite/0132_create_ezurlalias.sql | 1 + ...index_ezurlalias_ezurlalias_source_md5.sql | 1 + ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 + ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 + ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 + ...index_ezurlalias_ezurlalias_source_url.sql | 1 + ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 + .../sql/sqlite/0139_create_ezurlalias_ml.sql | 1 + ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 + ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 + ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 + ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 + ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 + ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 + ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 + .../sqlite/0148_create_ezurlalias_ml_incr.sql | 1 + .../sql/sqlite/0149_create_ezurlwildcard.sql | 1 + .../sqlite/0150_create_ezuser_accountkey.sql | 1 + .../0151_index_ezuser_accountkey_hash_key.sql | 1 + .../sql/sqlite/0152_create_ezuser_role.sql | 1 + ..._index_ezuser_role_ezuser_role_role_id.sql | 1 + ...user_role_ezuser_role_contentobject_id.sql | 1 + .../sql/sqlite/0155_create_ezuser_setting.sql | 1 + .../sql/sqlite/0156_create_ibexa_setting.sql | 2 + ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 + ...setting_ibexa_setting_group_identifier.sql | 1 + .../sqlite/0159_create_ibexa_token_type.sql | 1 + ...exa_token_type_ibexa_token_type_unique.sql | 1 + .../sql/sqlite/0161_create_ibexa_token.sql | 1 + ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 + ...3_index_ibexa_token_ibexa_token_unique.sql | 1 + .../sqlite/data/0001_insert_ezcobj_state.sql | 3 + .../data/0002_insert_ezcobj_state_group.sql | 2 + ...003_insert_ezcobj_state_group_language.sql | 2 + .../0004_insert_ezcobj_state_language.sql | 3 + .../data/0005_insert_ezcobj_state_link.sql | 13 + .../data/0006_insert_ezcontent_language.sql | 2 + .../data/0007_insert_ezcontentclass.sql | 7 + .../0008_insert_ezcontentclass_attribute.sql | 25 + .../0009_insert_ezcontentclass_classgroup.sql | 7 + .../data/0010_insert_ezcontentclass_name.sql | 7 + .../data/0011_insert_ezcontentclassgroup.sql | 4 + .../data/0012_insert_ezcontentobject.sql | 13 + .../0013_insert_ezcontentobject_attribute.sql | 41 + .../data/0014_insert_ezcontentobject_name.sql | 13 + .../data/0015_insert_ezcontentobject_tree.sql | 14 + .../0016_insert_ezcontentobject_version.sql | 13 + .../data/0017_insert_eznode_assignment.sql | 13 + .../sql/sqlite/data/0018_insert_ezpolicy.sql | 9 + .../data/0019_insert_ezpolicy_limitation.sql | 7 + .../0020_insert_ezpolicy_limitation_value.sql | 8 + .../sql/sqlite/data/0021_insert_ezrole.sql | 5 + .../sql/sqlite/data/0022_insert_ezsection.sql | 4 + .../sqlite/data/0023_insert_ezsite_data.sql | 2 + .../sqlite/data/0024_insert_ezurlalias.sql | 13 + .../sqlite/data/0025_insert_ezurlalias_ml.sql | 26 + .../data/0026_insert_ezurlalias_ml_incr.sql | 4 + .../sql/sqlite/data/0027_insert_ezuser.sql | 3 + .../sqlite/data/0028_insert_ezuser_role.sql | 7 + .../data/0029_insert_ezuser_setting.sql | 3 + .../sqlite/data/0030_insert_ezpreferences.sql | 2 + .../Compiler/InstallerTagPassTest.php | 58 -- .../IbexaInstallerExtensionTest.php | 3 +- .../IbexaRepositoryInstallerBundleTest.php | 13 +- 524 files changed, 2682 insertions(+), 249 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql create mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql delete mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php diff --git a/composer.json b/composer.json index 7a352379f3..b929891d71 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,12 @@ "description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.", "homepage": "https://ibexa.co", "license": "(GPL-2.0-only or proprietary)", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/ibexa/doctrine-migrations.git" + } + ], "suggest": { "php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required" }, @@ -39,6 +45,7 @@ "symfony/validator": "^5.3.0", "symfony/var-dumper": "^5.3.0", "ibexa/doctrine-schema": "~4.6.0@dev", + "ibexa/doctrine-migrations": "dev-feat/doctrine-migrations", "symfony-cmf/routing": "^2.3", "nelmio/cors-bundle": "^2.0", "pagerfanta/pagerfanta": "^2.1", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index af4e86b6e3..adb3dda31a 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5514,84 +5514,12 @@ parameters: count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Call to method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkParameters\(\) on a separate line has no effect\.$#' - identifier: method.resultUnused - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:__construct\(\) has parameter \$installers with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:cacheClear\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkCreateDatabase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkParameters\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkPermissions\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:configure\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:executeCommand\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:getInstaller\(\) has parameter \$type with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:getInstaller\(\) should return Ibexa\\Bundle\\RepositoryInstaller\\Installer\\Installer but returns false\.$#' - identifier: return.type - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:indexData\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Strict comparison using \=\=\= between bool and 1 will always evaluate to false\.$#' identifier: identical.alwaysFalse count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\ValidatePasswordHashesCommand\:\:configure\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/src/bundle/Core/DependencyInjection/Configuration.php b/src/bundle/Core/DependencyInjection/Configuration.php index 4b859f673b..6082b59115 100644 --- a/src/bundle/Core/DependencyInjection/Configuration.php +++ b/src/bundle/Core/DependencyInjection/Configuration.php @@ -65,6 +65,7 @@ public function getConfigTreeBuilder() $this->addUrlWildcardsSection($rootNode); $this->addOrmSection($rootNode); $this->addUITranslationsSection($rootNode); + $this->addInstallerSection($rootNode); // Delegate SiteAccess config to configuration parsers $this->mainSiteAccessConfigParser->addSemanticConfig($this->generateScopeBaseNode($rootNode)); @@ -563,6 +564,44 @@ private function addUITranslationsSection($rootNode): ArrayNodeDefinition ->end() ->end(); } + + /** + * Defines configuration for the "ibexa:install" installer. + * + * The configuration is available at: + * <code> + * ibexa: + * installer: + * schema_builder_event: + * enabled: true + * </code> + * + * @param \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode + */ + private function addInstallerSection(ArrayNodeDefinition $rootNode): ArrayNodeDefinition + { + return $rootNode + ->children() + ->arrayNode('installer') + ->children() + ->arrayNode('schema_builder_event') + ->info('Configuration of the legacy, event-driven database schema building mechanism used by the "ibexa:install" command') + ->children() + ->booleanNode('enabled') + ->defaultTrue() + ->info( + 'Whether "ibexa:install" dispatches Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent ' . + 'to let packages contribute their database schema via an event subscriber, as opposed to ' . + 'the schema being installed from static SQL migrations. ' . + 'Disable once all installed packages have migrated away from the event-driven mechanism.' + ) + ->end() + ->end() + ->end() + ->end() + ->end() + ->end(); + } } class_alias(Configuration::class, 'eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration'); diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index 5c8fda3ec1..910c7ba773 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -134,6 +134,7 @@ public function load(array $configs, ContainerBuilder $container) $this->registerUrlWildcardsConfiguration($config, $container); $this->registerOrmConfiguration($config, $container); $this->registerUITranslationsConfiguration($config, $container); + $this->registerInstallerConfiguration($config, $container); // Routing $this->handleRouting($config, $container, $loader); @@ -331,6 +332,17 @@ private function registerUITranslationsConfiguration(array $config, ContainerBui $container->setParameter('ibexa.ui.translations.enabled', $config['ui']['translations']['enabled'] ?? false); } + /** + * @param array<string, mixed> $config + */ + private function registerInstallerConfiguration(array $config, ContainerBuilder $container): void + { + $container->setParameter( + 'ibexa.installer.schema_builder_event.enabled', + $config['installer']['schema_builder_event']['enabled'] ?? true + ); + } + /** * Handle routing parameters. * diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index 0011d9d37c..f9f62de371 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -9,6 +9,7 @@ use Doctrine\DBAL\Connection; use Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider; use Ibexa\Bundle\Core\Command\BackwardCompatibleCommand; +use Ibexa\Bundle\RepositoryInstaller\Installer\Installer; use Psr\Cache\CacheItemPoolInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -17,37 +18,38 @@ use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\DependencyInjection\ServiceLocator; use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\Process; final class InstallPlatformCommand extends Command implements BackwardCompatibleCommand { - /** @var \Doctrine\DBAL\Connection */ - private $connection; + protected static $defaultName = 'ibexa:install'; - /** @var \Symfony\Component\Console\Output\OutputInterface */ - private $output; + private Connection $connection; - /** @var \Psr\Cache\CacheItemPoolInterface */ - private $cachePool; + private OutputInterface $output; - /** @var string */ - private $environment; + private CacheItemPoolInterface $cachePool; - /** @var \Ibexa\Bundle\RepositoryInstaller\Installer\Installer[] */ - private $installers = []; + private string $environment; - /** @var \Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider */ - private $repositoryConfigurationProvider; + /** @var \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> */ + private ServiceLocator $installers; + + private RepositoryConfigurationProvider $repositoryConfigurationProvider; public const EXIT_GENERAL_DATABASE_ERROR = 4; public const EXIT_PARAMETERS_NOT_FOUND = 5; public const EXIT_UNKNOWN_INSTALL_TYPE = 6; public const EXIT_MISSING_PERMISSIONS = 7; + /** + * @param \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> $installers + */ public function __construct( Connection $connection, - array $installers, + ServiceLocator $installers, CacheItemPoolInterface $cachePool, string $environment, RepositoryConfigurationProvider $repositoryConfigurationProvider @@ -60,14 +62,13 @@ public function __construct( parent::__construct(); } - protected function configure() + protected function configure(): void { - $this->setName('ibexa:install'); $this->setAliases($this->getDeprecatedAliases()); $this->addArgument( 'type', InputArgument::OPTIONAL, - 'The type of install. Available options: ' . implode(', ', array_keys($this->installers)), + 'The type of install. Available options: ' . implode(', ', array_keys($this->installers->getProvidedServices())), 'ibexa-oss' ); $this->addOption( @@ -82,43 +83,35 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $this->output = $output; $this->checkPermissions(); - $this->checkParameters(); $this->checkCreateDatabase($output); $schemaManager = $this->connection->getSchemaManager(); if (!empty($schemaManager->listTables())) { $io = new SymfonyStyle($input, $output); if (!$io->confirm('Running this command will delete data in all Ibexa generated tables. Continue?', )) { - return 0; + return self::SUCCESS; } } $type = $input->getArgument('type'); $siteaccess = $input->getOption('siteaccess'); - $installer = $this->getInstaller($type); - if ($installer === false) { - $output->writeln( - "Unknown install type '$type', available options in currently installed Ibexa package: " . - implode(', ', array_keys($this->installers)) - ); - exit(self::EXIT_UNKNOWN_INSTALL_TYPE); - } + $installer = $this->getInstaller($type, $output); $installer->setOutput($output); $installer->importSchema(); $installer->importData(); $installer->importBinaries(); - $this->cacheClear($output); + $this->cacheClear(); if (!$input->getOption('skip-indexing')) { $this->indexData($output, $siteaccess); } - return 0; + return self::SUCCESS; } - private function checkPermissions() + private function checkPermissions(): void { // @todo should take var-dir etc. from composer config or fallback to flex directory scheme if (!is_writable('public') && !is_writable('public/var')) { @@ -127,18 +120,7 @@ private function checkPermissions() } } - private function checkParameters() - { - // @todo doesn't make sense to check for parameters.yml in sf4 and flex - return; - $parametersFile = 'app/config/parameters.yml'; - if (!is_file($parametersFile)) { - $this->output->writeln("Required configuration file '$parametersFile' not found"); - exit(self::EXIT_PARAMETERS_NOT_FOUND); - } - } - - private function checkCreateDatabase(OutputInterface $output) + private function checkCreateDatabase(OutputInterface $output): void { $output->writeln( sprintf( @@ -167,10 +149,8 @@ private function checkCreateDatabase(OutputInterface $output) /** * Clear all content related cache (persistence cache). - * - * @param \Symfony\Component\Console\Output\OutputInterface $output */ - private function cacheClear(OutputInterface $output) + private function cacheClear(): void { $this->cachePool->clear(); } @@ -183,11 +163,8 @@ private function cacheClear(OutputInterface $output) * This is done after cache clearing to make sure no cached data from before sql import is used. * * IMPORTANT: This is done using a command because config has change, so container and all services are different. - * - * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param string|null $siteaccess */ - private function indexData(OutputInterface $output, $siteaccess = null) + private function indexData(OutputInterface $output, ?string $siteaccess = null): void { $output->writeln( sprintf('Search engine re-indexing, executing command ibexa:reindex') @@ -202,17 +179,19 @@ private function indexData(OutputInterface $output, $siteaccess = null) } /** - * @param $type - * * @return \Ibexa\Bundle\RepositoryInstaller\Installer\Installer */ - private function getInstaller($type) + private function getInstaller(string $type, OutputInterface $output): Installer { - if (!isset($this->installers[$type])) { - return false; + if (!$this->installers->has($type)) { + $output->writeln( + "Unknown install type '$type', available options in currently installed Ibexa package: " . + implode(', ', array_keys($this->installers->getProvidedServices())) + ); + exit(self::EXIT_UNKNOWN_INSTALL_TYPE); } - return $this->installers[$type]; + return $this->installers->get($type); } /** @@ -227,7 +206,7 @@ private function getInstaller($type) * Escape any user provided arguments, like: 'assets:install '.escapeshellarg($webDir) * @param int $timeout */ - private function executeCommand(OutputInterface $output, $cmd, $timeout = 300) + private function executeCommand(OutputInterface $output, $cmd, $timeout = 300): void { $phpFinder = new PhpExecutableFinder(); if (!$phpPath = $phpFinder->find(false)) { diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php index cf0df72c3e..bb8acf0ebc 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php @@ -6,46 +6,22 @@ */ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; -use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use LogicException; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Reference; /** - * Injects services tagged as "ibexa.installer" into - * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers}. + * @deprecated 4.6.27 Installers are now injected into + * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers} via a + * `!tagged_locator` argument configured in services.yml, so this compiler pass is no longer needed. + * Will be removed in 5.0. */ class InstallerTagPass implements CompilerPassInterface { + /** @deprecated 4.6.27 Will be removed in 6.0. Use the 'ibexa.installer' string directly. */ public const INSTALLER_TAG = 'ibexa.installer'; public function process(ContainerBuilder $container) { - if (!$container->hasDefinition(InstallPlatformCommand::class)) { - return; - } - - $installCommandDef = $container->findDefinition(InstallPlatformCommand::class); - $installers = []; - - foreach ($container->findTaggedServiceIds(self::INSTALLER_TAG) as $id => $tags) { - foreach ($tags as $tag) { - if (!isset($tag['type'])) { - throw new LogicException( - sprintf( - 'Service tag %s needs a "type" attribute to identify the installer. You need to provide a tag for %s.', - self::INSTALLER_TAG, - $id - ) - ); - } - - $installers[$tag['type']] = new Reference($id); - } - } - - $installCommandDef->replaceArgument('$installers', $installers); } } diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index b5934d8080..7ad8d89726 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -7,7 +7,6 @@ namespace Ibexa\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -29,7 +28,6 @@ public function build(ContainerBuilder $container) } parent::build($container); - $container->addCompilerPass(new InstallerTagPass()); } } diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 6b05899ffe..6a10a9ecad 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -11,63 +11,123 @@ use Doctrine\DBAL\Connection; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\Query\Query; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; use Symfony\Component\Console\Helper\ProgressBar; /** - * Installer which uses SchemaBuilder. + * Installer which creates the core database schema. */ class CoreInstaller extends DbBasedInstaller implements Installer { /** @var \Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface */ protected $schemaBuilder; + private bool $schemaBuilderEventEnabled; + + private TaggedMigrationsRunner $taggedMigrationsRunner; + + public function __construct( + Connection $db, + SchemaBuilderInterface $schemaBuilder, + bool $schemaBuilderEventEnabled, + TaggedMigrationsRunner $taggedMigrationsRunner + ) { + parent::__construct($db); + + $this->schemaBuilder = $schemaBuilder; + $this->schemaBuilderEventEnabled = $schemaBuilderEventEnabled; + $this->taggedMigrationsRunner = $taggedMigrationsRunner; + } + /** - * @param \Doctrine\DBAL\Connection $db - * @param \Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface $schemaBuilder + * Imports the core database schema. + * + * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), the schema + * is built by dispatching the legacy event-driven {@see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent}, + * allowing other packages to contribute their own tables via an event subscriber. + * + * Otherwise, the schema is installed by {@see TaggedMigrationsRunner}, which runs every not-yet-executed + * migration tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} + * (core's own {@see \Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration} plus any other + * package's) via the application's Doctrine Migrations DependencyFactory. + * + * @throws \Doctrine\DBAL\DBALException */ - public function __construct(Connection $db, SchemaBuilderInterface $schemaBuilder) + public function importSchema() { - parent::__construct($db); + if ($this->schemaBuilderEventEnabled) { + $this->executeQueries($this->getQueriesFromSchemaBuilderEvent()); - $this->schemaBuilder = $schemaBuilder; + return; + } + + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * Import Schema using event-driven Schema Builder API from Ibexa DoctrineSchema Bundle. + * Builds the schema using the event-driven Schema Builder API from the Ibexa DoctrineSchema bundle. * - * If you wish to extend schema, implement your own EventSubscriber + * If you wish to extend the schema, implement your own EventSubscriber. * * @see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent * @see \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\BuildSchemaSubscriber * - * @throws \Doctrine\DBAL\DBALException + * @return \Doctrine\Migrations\Query\Query[] */ - public function importSchema() + private function getQueriesFromSchemaBuilderEvent(): array { - // note: schema is built using Schema Builder event-driven API $schema = $this->schemaBuilder->buildSchema(); $databasePlatform = $this->db->getDatabasePlatform(); - $queries = array_merge( + + $sqls = array_merge( $this->getDropSqlStatementsForExistingSchema($schema, $databasePlatform), - // generate schema DDL queries $schema->toSql($databasePlatform) ); + return array_map(static function (string $sql): Query { + return new Query($sql); + }, $sqls); + } + + /** + * Reports the queries {@see TaggedMigrationsRunner} already executed (and recorded) via the Doctrine + * Migrations DependencyFactory. + * + * @param \Doctrine\Migrations\Query\Query[] $queries + */ + private function reportExecutedQueries(array $queries): void + { + $this->output->writeln( + sprintf( + '<info>Executed %d queries on database <comment>%s</comment> (<comment>%s</comment>)</info>', + count($queries), + $this->db->getDatabase(), + $this->db->getDatabasePlatform()->getName() + ) + ); + } + + /** + * @param \Doctrine\Migrations\Query\Query[] $queries + */ + private function executeQueries(array $queries): void + { $queriesCount = count($queries); $this->output->writeln( sprintf( '<info>Executing %d queries on database <comment>%s</comment> (<comment>%s</comment>)</info>', $queriesCount, $this->db->getDatabase(), - $databasePlatform->getName() + $this->db->getDatabasePlatform()->getName() ) ); $progressBar = new ProgressBar($this->output); $progressBar->start($queriesCount); foreach ($queries as $query) { - $this->db->exec($query); + $this->db->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); $progressBar->advance(1); } @@ -79,18 +139,31 @@ public function importSchema() } /** + * Imports the core bootstrap data. + * + * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), this imports + * the DBMS-specific "cleandata.sql" file directly. + * + * Otherwise, this also delegates to {@see TaggedMigrationsRunner}, same as {@see importSchema()}. Since + * {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is tagged and run the same way, + * calling the runner here typically executes nothing new (it already ran as part of importSchema()) - + * this call only matters if importData() is invoked on its own. + * * @throws \Doctrine\DBAL\DBALException * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException */ public function importData() { - $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); + if ($this->schemaBuilderEventEnabled) { + $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); + + return; + } + + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * @param \Doctrine\DBAL\Schema\Schema $newSchema - * @param \Doctrine\DBAL\Platforms\AbstractPlatform $databasePlatform - * * @return string[] */ protected function getDropSqlStatementsForExistingSchema( diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php new file mode 100644 index 0000000000..bd312b5608 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -0,0 +1,45 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; + +/** + * Imports the core Ibexa bootstrap data (default languages, sections, roles, ...), used by + * {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} to install a fresh database. + * + * Tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (see services.yml) so + * it is discoverable by the Doctrine Migrations pipeline like any other Ibexa migration. Its target version and + * creation date place it right after {@see InstallSchemaMigration} in {@see \Ibexa\Bundle\DoctrineMigrations\Comparator\IbexaMigrationComparator} + * order, since it inserts data into the tables that migration creates. + */ +final class ImportDataMigration extends AbstractVersion implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Imports the core Ibexa bootstrap data'; + } + + public static function getTargetVersion(): string + { + return '4.6.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-07-16 00:00:01'); + } + + protected function getYamlFilePath(): string + { + return __DIR__ . '/../Resources/migrations/import_data.yaml'; + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php new file mode 100644 index 0000000000..f58e4c8860 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -0,0 +1,45 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; + +/** + * Creates the core Ibexa database schema, used by {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} + * to install a fresh database. + * + * Tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (see services.yml) so + * it is discoverable by the Doctrine Migrations pipeline like any other Ibexa migration. It is also run directly + * by {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller}, which records its execution in the same + * migrations versioning table so it isn't re-applied by a later `doctrine:migrations:migrate` run. + */ +final class InstallSchemaMigration extends AbstractVersion implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Creates the core Ibexa database schema'; + } + + public static function getTargetVersion(): string + { + return '4.6.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-07-16 00:00:00'); + } + + protected function getYamlFilePath(): string + { + return __DIR__ . '/../Resources/migrations/install_schema.yaml'; + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php new file mode 100644 index 0000000000..c77115aa47 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -0,0 +1,113 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Doctrine\DBAL\Connection; +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\DependencyFactory; +use Doctrine\Migrations\Metadata\MigrationPlan; +use Doctrine\Migrations\Metadata\Storage\MetadataStorage; +use Doctrine\Migrations\Version\ExecutionResult; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use RuntimeException; + +/** + * Runs every not-yet-executed migration tagged with + * {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (core's own + * {@see InstallSchemaMigration} plus any other package's), via the + * {@see IbexaOnlyDependencyFactory::SERVICE_ID} service - an independent + * {@see DependencyFactory} that always runs against "ibexa.persistence.connection" and whose + * MigrationsRepository only ever serves Ibexa-tagged migrations, regardless of what the + * application's own "doctrine.migrations.dependency_factory" is configured with. Since installing + * Ibexa DXP itself must never accidentally execute the project's own, user-defined migrations, + * this is safer than using the shared application DependencyFactory directly. + * + * Each migration's execution is recorded in the same versioning table `doctrine:migrations:migrate` + * would use, so migrations already executed in a prior run are skipped rather than re-applied. + * + * Execution is driven manually here (rather than via {@see DependencyFactory::getMigrator()}), since + * Doctrine Migrations' Migrator/Executor/AliasResolver classes are marked `@internal`. Only the + * DependencyFactory's public accessors ({@see DependencyFactory::getMigrationPlanCalculator()}, + * {@see DependencyFactory::getMetadataStorage()}, {@see DependencyFactory::getConnection()}) are used. + */ +final class TaggedMigrationsRunner +{ + private ?DependencyFactory $dependencyFactory; + + public function __construct(?DependencyFactory $dependencyFactory = null) + { + $this->dependencyFactory = $dependencyFactory; + } + + /** + * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run + * + * @throws \RuntimeException if the "{@see IbexaOnlyDependencyFactory::SERVICE_ID}" service isn't available + */ + public function run(): array + { + if ($this->dependencyFactory === null) { + throw new RuntimeException( + 'Running tagged Doctrine migrations requires the "' . IbexaOnlyDependencyFactory::SERVICE_ID . '" ' . + 'service (provided by doctrine/migrations-bundle, with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle ' . + 'registered) to be available.' + ); + } + + $metadataStorage = $this->dependencyFactory->getMetadataStorage(); + // Mirrors what the "doctrine:migrations:migrate" console command does before migrating. + $metadataStorage->ensureInitialized(); + + $planCalculator = $this->dependencyFactory->getMigrationPlanCalculator(); + // getMigrations() returns an already-sorted list; its last item is the "latest" version. + $availableMigrations = $planCalculator->getMigrations()->getItems(); + if ($availableMigrations === []) { + return []; + } + + $latestVersion = end($availableMigrations)->getVersion(); + $plan = $planCalculator->getPlanUntilVersion($latestVersion); + + $connection = $this->dependencyFactory->getConnection(); + + $executedQueries = []; + foreach ($plan->getItems() as $migrationPlan) { + foreach ($this->executeMigration($connection, $metadataStorage, $migrationPlan) as $query) { + $executedQueries[] = $query; + } + } + + return $executedQueries; + } + + /** + * @return \Doctrine\Migrations\Query\Query[] + */ + private function executeMigration( + Connection $connection, + MetadataStorage $metadataStorage, + MigrationPlan $migrationPlan + ): array { + $executedAt = new DateTimeImmutable(); + + $migration = $migrationPlan->getMigration(); + $migration->up(new Schema()); + $queries = $migration->getSql(); + + foreach ($queries as $query) { + $connection->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); + } + + $result = new ExecutionResult($migrationPlan->getVersion(), $migrationPlan->getDirection(), $executedAt); + $metadataStorage->complete($result); + + return $queries; + } +} diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 965404750b..4a96b2cf16 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -5,6 +5,30 @@ services: arguments: - '@=service("kernel").locateResource("@IbexaCoreBundle/Resources/config/storage/legacy/schema.yaml")' + Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: + public: false + arguments: + # Optional: only resolves to a service if doctrine/migrations-bundle is installed and + # configured. Not defined here, since it belongs to that package, not this one. + # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID + $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller: abstract: true arguments: ['@ibexa.persistence.connection'] @@ -13,13 +37,15 @@ services: Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller: autowire: true parent: Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller + arguments: + $schemaBuilderEventEnabled: '%ibexa.installer.schema_builder_event.enabled%' tags: - { name: ibexa.installer, type: ibexa-oss } Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand: arguments: $connection: '@ibexa.persistence.connection' - $installers: [] + $installers: !tagged_locator { tag: 'ibexa.installer', index_by: 'type' } $cachePool: '@ibexa.cache_pool' $environment: "%kernel.environment%" $repositoryConfigurationProvider: '@Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml new file mode 100644 index 0000000000..d7c5b372ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml @@ -0,0 +1,243 @@ +up: + - file: 'sql/mysql/data/0001_insert_ezcobj_state.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0001_insert_ezcobj_state.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0001_insert_ezcobj_state.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0002_insert_ezcobj_state_group.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0002_insert_ezcobj_state_group.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0002_insert_ezcobj_state_group.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0004_insert_ezcobj_state_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0004_insert_ezcobj_state_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0004_insert_ezcobj_state_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0005_insert_ezcobj_state_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0005_insert_ezcobj_state_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0005_insert_ezcobj_state_link.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0006_insert_ezcontent_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0006_insert_ezcontent_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0006_insert_ezcontent_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0007_insert_ezcontentclass.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0007_insert_ezcontentclass.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0007_insert_ezcontentclass.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0010_insert_ezcontentclass_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0010_insert_ezcontentclass_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0010_insert_ezcontentclass_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0012_insert_ezcontentobject.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0012_insert_ezcontentobject.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0012_insert_ezcontentobject.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0014_insert_ezcontentobject_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0014_insert_ezcontentobject_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0014_insert_ezcontentobject_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0016_insert_ezcontentobject_version.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0016_insert_ezcontentobject_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0016_insert_ezcontentobject_version.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0017_insert_eznode_assignment.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0017_insert_eznode_assignment.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0017_insert_eznode_assignment.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0018_insert_ezpolicy.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0018_insert_ezpolicy.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0018_insert_ezpolicy.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0021_insert_ezrole.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0021_insert_ezrole.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0021_insert_ezrole.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0022_insert_ezsection.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0022_insert_ezsection.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0022_insert_ezsection.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0023_insert_ezsite_data.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0023_insert_ezsite_data.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0023_insert_ezsite_data.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0024_insert_ezurlalias.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0024_insert_ezurlalias.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0024_insert_ezurlalias.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0025_insert_ezurlalias_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0025_insert_ezurlalias_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0025_insert_ezurlalias_ml.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0027_insert_ezuser.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0027_insert_ezuser.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0027_insert_ezuser.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0028_insert_ezuser_role.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0028_insert_ezuser_role.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0028_insert_ezuser_role.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0029_insert_ezuser_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0029_insert_ezuser_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0029_insert_ezuser_setting.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0030_insert_ezpreferences.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0030_insert_ezpreferences.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0030_insert_ezpreferences.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0046_setval_eznotification_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0047_setval_ezpackage_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0052_setval_ezrole_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0055_setval_ezsection_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0056_setval_ezurl_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql' + platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml new file mode 100644 index 0000000000..1aca414724 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml @@ -0,0 +1,773 @@ +up: + - file: 'sql/mysql/0001_create_ezbinaryfile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0001_create_ezbinaryfile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0001_create_ezbinaryfile.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0002_create_ezcobj_state.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0002_create_ezcobj_state.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0002_create_ezcobj_state.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0003_create_ezcobj_state_group.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0006_create_ezcobj_state_group.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0006_create_ezcobj_state_group.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0004_create_ezcobj_state_group_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0009_create_ezcobj_state_group_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0009_create_ezcobj_state_group_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0005_create_ezcobj_state_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0010_create_ezcobj_state_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0010_create_ezcobj_state_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0006_create_ezcobj_state_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0011_create_ezcobj_state_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0011_create_ezcobj_state_link.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0007_create_ezcontent_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0012_create_ezcontent_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0012_create_ezcontent_language.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0008_create_ezuser.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0014_create_ezuser.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0014_create_ezuser.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0015_index_ezuser_ezuser_login.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0015_index_ezuser_ezuser_login.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0009_create_ezcontentobject_tree.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0016_create_ezcontentobject_tree.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0016_create_ezcontentobject_tree.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0010_create_ezcontentbrowsebookmark.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0025_create_ezcontentbrowsebookmark.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0025_create_ezcontentbrowsebookmark.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0011_create_ezcontentclass.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0029_create_ezcontentclass.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0029_create_ezcontentclass.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0012_create_ezcontentclass_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0032_create_ezcontentclass_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0032_create_ezcontentclass_attribute.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0013_create_ezcontentclass_attribute_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0014_create_ezcontentclass_classgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0037_create_ezcontentclass_classgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0037_create_ezcontentclass_classgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0015_create_ezcontentclass_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0038_create_ezcontentclass_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0038_create_ezcontentclass_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0016_create_ezcontentclassgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0039_create_ezcontentclassgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0039_create_ezcontentclassgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0017_create_ezcontentobject.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0040_create_ezcontentobject.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0040_create_ezcontentobject.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0018_create_ezcontentobject_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0049_create_ezcontentobject_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0049_create_ezcontentobject_attribute.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0019_create_ezcontentobject_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0056_create_ezcontentobject_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0056_create_ezcontentobject_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0020_create_ezcontentobject_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0060_create_ezcontentobject_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0060_create_ezcontentobject_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0021_create_ezcontentobject_trash.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0064_create_ezcontentobject_trash.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0064_create_ezcontentobject_trash.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0022_create_ezcontentobject_version.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0071_create_ezcontentobject_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0071_create_ezcontentobject_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0023_create_ezdfsfile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0076_create_ezdfsfile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0076_create_ezdfsfile.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0024_create_ezgmaplocation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0081_create_ezgmaplocation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0081_create_ezgmaplocation.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0025_create_ezimagefile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0083_create_ezimagefile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0083_create_ezimagefile.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0026_create_ezkeyword.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0086_create_ezkeyword.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0086_create_ezkeyword.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0027_create_ezkeyword_attribute_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0088_create_ezkeyword_attribute_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0088_create_ezkeyword_attribute_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0028_create_ezmedia.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0092_create_ezmedia.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0092_create_ezmedia.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0029_create_eznode_assignment.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0093_create_eznode_assignment.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0093_create_eznode_assignment.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0030_create_eznotification.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0098_create_eznotification.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0098_create_eznotification.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0100_index_eznotification_eznotification_owner.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0100_index_eznotification_eznotification_owner.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0031_create_ezpackage.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0101_create_ezpackage.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0101_create_ezpackage.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0032_create_ezpolicy.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0102_create_ezpolicy.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0102_create_ezpolicy.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0033_create_ezpolicy_limitation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0105_create_ezpolicy_limitation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0105_create_ezpolicy_limitation.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0034_create_ezpolicy_limitation_value.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0107_create_ezpolicy_limitation_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0107_create_ezpolicy_limitation_value.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0035_create_ezpreferences.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0110_create_ezpreferences.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0110_create_ezpreferences.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0036_create_ezrole.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0113_create_ezrole.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0113_create_ezrole.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0037_create_ezsearch_object_word_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0114_create_ezsearch_object_word_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0114_create_ezsearch_object_word_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0038_create_ezsearch_word.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0120_create_ezsearch_word.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0120_create_ezsearch_word.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0039_create_ezsection.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0123_create_ezsection.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0123_create_ezsection.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0040_create_ezsite_data.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0124_create_ezsite_data.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0124_create_ezsite_data.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0041_create_ezurl.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0125_create_ezurl.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0125_create_ezurl.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0126_index_ezurl_ezurl_url.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0126_index_ezurl_ezurl_url.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0042_create_ezurl_object_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0127_create_ezurl_object_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0127_create_ezurl_object_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0043_create_ezurlalias.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0132_create_ezurlalias.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0132_create_ezurlalias.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0044_create_ezurlalias_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0139_create_ezurlalias_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0139_create_ezurlalias_ml.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0045_create_ezurlalias_ml_incr.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0148_create_ezurlalias_ml_incr.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0148_create_ezurlalias_ml_incr.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0046_create_ezurlwildcard.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0149_create_ezurlwildcard.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0149_create_ezurlwildcard.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0047_create_ezuser_accountkey.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0150_create_ezuser_accountkey.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0150_create_ezuser_accountkey.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0048_create_ezuser_role.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0152_create_ezuser_role.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0152_create_ezuser_role.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0049_create_ezuser_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0155_create_ezuser_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0155_create_ezuser_setting.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0050_create_ibexa_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0156_create_ibexa_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0156_create_ibexa_setting.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0051_create_ibexa_token_type.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0159_create_ibexa_token_type.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0159_create_ibexa_token_type.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0052_create_ibexa_token.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0161_create_ibexa_token.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0161_create_ibexa_token.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql' + platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..4550a8fde8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..b7b2dcff8a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..8db47cc4fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..7d6cb0efc5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..ce7fbc900b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..8905130d9f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql new file mode 100644 index 0000000000..d314ccc990 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql new file mode 100644 index 0000000000..902d1740c8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..ba5486f96c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..f7d7851f12 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql new file mode 100644 index 0000000000..333a9e52f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..b222dde913 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..8e6a1f9070 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..f5a3c2d20a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..c6e7644e14 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..e39f7864f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql new file mode 100644 index 0000000000..0e84bc9642 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..a15e961c0c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..b41b6b97cb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..8031fb6dce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..a6a8e86f13 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..50606c73b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql new file mode 100644 index 0000000000..165177694f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT '0' NOT NULL, status TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql new file mode 100644 index 0000000000..096c46dd2d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql new file mode 100644 index 0000000000..5b9e6d2c2c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql new file mode 100644 index 0000000000..2a586c9192 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..3cd519f470 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql new file mode 100644 index 0000000000..2b9c743704 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql new file mode 100644 index 0000000000..e7765ae00a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql new file mode 100644 index 0000000000..20edb16ebd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql new file mode 100644 index 0000000000..adba6500dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql new file mode 100644 index 0000000000..a8130e913a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..992c1aba35 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..d354086aa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql new file mode 100644 index 0000000000..67795da3c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql new file mode 100644 index 0000000000..ae9d6d1647 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..5bc76956bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql new file mode 100644 index 0000000000..07b9e3eeb0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql new file mode 100644 index 0000000000..9c6a91c30d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql new file mode 100644 index 0000000000..6ed8657e61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql new file mode 100644 index 0000000000..bd531c02d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql new file mode 100644 index 0000000000..a795d1afba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql new file mode 100644 index 0000000000..10be1ded9d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..f60a5debf8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..0e028a410a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql new file mode 100644 index 0000000000..49e6fdb7cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..0bca83a3b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql new file mode 100644 index 0000000000..89f78ae40d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql new file mode 100644 index 0000000000..c3c035a3ea --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql new file mode 100644 index 0000000000..d664bb1bf9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql new file mode 100644 index 0000000000..050286548c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql new file mode 100644 index 0000000000..2cc774c11a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT '0' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql new file mode 100644 index 0000000000..fd2f319c2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql new file mode 100644 index 0000000000..a4fe1c30db --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..9d8fb82dc7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql new file mode 100644 index 0000000000..f8e58ffca0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..64e0eacdd1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..677a43ca5c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..9930341865 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..dc7872d95b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..9a0dd8d0e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..97bfa86644 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..540efcb3ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..30ad516ff8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..ffa17693b0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..1f517c87e3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..61aea82715 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..c18bc54f7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..d2ec35a36f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..fc75852a7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..1cfc2b9049 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..f8ba2fe49d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..b69e8a455f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..7e0d289d2b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..d1dfc57ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..26ef009ea8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..16605e3ee2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..a12ae3cbfb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..82536384d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..dbdfab1b74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..1a3fce42c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..60ee1309ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..151e4f6fa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..5ad1f12f1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..c87f9291dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..5a44f420f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..14531f39f5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..16d6b76be3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql new file mode 100644 index 0000000000..acd97e80ae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql new file mode 100644 index 0000000000..6d6498dfa3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql new file mode 100644 index 0000000000..a622a7319b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..aa60df6bbf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql new file mode 100644 index 0000000000..8693d6bab5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql new file mode 100644 index 0000000000..36481c9271 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..e73ef9404d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..75a6e90f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..f90c53635b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql new file mode 100644 index 0000000000..fc7a9a2fdf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql new file mode 100644 index 0000000000..0a236b1d78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql new file mode 100644 index 0000000000..aaf5f8ae89 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql new file mode 100644 index 0000000000..382bc2fe6f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..ebb309ad93 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql new file mode 100644 index 0000000000..7a3cbafefc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql new file mode 100644 index 0000000000..a0694b8c61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql new file mode 100644 index 0000000000..80dcea65d9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql new file mode 100644 index 0000000000..9f76373cac --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql new file mode 100644 index 0000000000..d7b5136f63 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql new file mode 100644 index 0000000000..f0c7ac9ecc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql new file mode 100644 index 0000000000..87676071e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql new file mode 100644 index 0000000000..22d066cdca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..c9c6672a2d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql new file mode 100644 index 0000000000..659a26c514 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql new file mode 100644 index 0000000000..5b0696a7e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql new file mode 100644 index 0000000000..6c77193029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql new file mode 100644 index 0000000000..d983cc5378 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql new file mode 100644 index 0000000000..7fd0e3cfa1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql new file mode 100644 index 0000000000..24c8111651 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..273341c716 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql new file mode 100644 index 0000000000..7875734dae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql new file mode 100644 index 0000000000..ba2700ac55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..8f5af634b4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..f17be3c68c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..3a8d83fa44 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..ebcc1e629b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..4d31939956 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql new file mode 100644 index 0000000000..06925bdc48 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql new file mode 100644 index 0000000000..5dddc18819 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql new file mode 100644 index 0000000000..6fd63f61d8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql new file mode 100644 index 0000000000..022ffd1c54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql new file mode 100644 index 0000000000..2459702346 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql new file mode 100644 index 0000000000..cb0f62d824 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql new file mode 100644 index 0000000000..17c73894b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql new file mode 100644 index 0000000000..f68fa6262f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql new file mode 100644 index 0000000000..6e86f88cfe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..1d315de98a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql new file mode 100644 index 0000000000..6b23dbfdcb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql new file mode 100644 index 0000000000..c8391d6730 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql new file mode 100644 index 0000000000..320329b4f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql new file mode 100644 index 0000000000..31e10963b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql new file mode 100644 index 0000000000..d89a560a80 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql new file mode 100644 index 0000000000..3a0b46cb82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..26d2b46d1c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql new file mode 100644 index 0000000000..c09dfefbf0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql new file mode 100644 index 0000000000..5553d5dbb9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql new file mode 100644 index 0000000000..576d349337 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..fb0c9cf656 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql new file mode 100644 index 0000000000..a53893b840 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql new file mode 100644 index 0000000000..d47ec6ff06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql new file mode 100644 index 0000000000..066bdd2ddf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..cbc1d75091 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql new file mode 100644 index 0000000000..22a5480ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql new file mode 100644 index 0000000000..1b230d30c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql new file mode 100644 index 0000000000..e97fae979c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql new file mode 100644 index 0000000000..4f2edf4230 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql new file mode 100644 index 0000000000..980553e6cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql new file mode 100644 index 0000000000..41f87ea995 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..0379c24c58 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql new file mode 100644 index 0000000000..eb1712c587 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql new file mode 100644 index 0000000000..d9ade282a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql @@ -0,0 +1 @@ +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql new file mode 100644 index 0000000000..f8b3625958 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql new file mode 100644 index 0000000000..7ad71e9d33 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql new file mode 100644 index 0000000000..9c43e1a6d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql new file mode 100644 index 0000000000..a52478c504 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql new file mode 100644 index 0000000000..b6a67a8141 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql new file mode 100644 index 0000000000..b1093dd031 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql new file mode 100644 index 0000000000..74974918cf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql new file mode 100644 index 0000000000..7783fe956a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql new file mode 100644 index 0000000000..c71ce38856 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql @@ -0,0 +1 @@ +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql new file mode 100644 index 0000000000..10daf6c34e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql new file mode 100644 index 0000000000..9fd53f1f99 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql new file mode 100644 index 0000000000..4aa9687e74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql new file mode 100644 index 0000000000..15f8411056 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql new file mode 100644 index 0000000000..d8e144c201 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..0f542cd006 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql new file mode 100644 index 0000000000..8d8572e8bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql new file mode 100644 index 0000000000..f07b97d9ab --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql new file mode 100644 index 0000000000..0404bc617b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql new file mode 100644 index 0000000000..f2a1f54018 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql new file mode 100644 index 0000000000..9c81b2afb8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql new file mode 100644 index 0000000000..5e5ed94263 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql new file mode 100644 index 0000000000..987539c281 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql new file mode 100644 index 0000000000..7c7225c18d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql new file mode 100644 index 0000000000..6b519ccc54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql new file mode 100644 index 0000000000..4850a0a117 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT 'true' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql new file mode 100644 index 0000000000..862b80ddf5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql new file mode 100644 index 0000000000..b621afd705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql new file mode 100644 index 0000000000..675d8f105c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql new file mode 100644 index 0000000000..2fe0b4c43f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql new file mode 100644 index 0000000000..366c989ec0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql new file mode 100644 index 0000000000..9a3d4f8171 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..5e7abb39e5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql new file mode 100644 index 0000000000..6640c10ce8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql @@ -0,0 +1 @@ +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..a0f290af9d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql new file mode 100644 index 0000000000..446a27fdaa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql new file mode 100644 index 0000000000..8c0458bdde --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql new file mode 100644 index 0000000000..6c23ca2fe5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql new file mode 100644 index 0000000000..e8330b63d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql new file mode 100644 index 0000000000..e33390d2a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql new file mode 100644 index 0000000000..3a828c94f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..3fd4f08a00 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql new file mode 100644 index 0000000000..fb984de9f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql new file mode 100644 index 0000000000..724819087d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql new file mode 100644 index 0000000000..9c46453535 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql new file mode 100644 index 0000000000..058c9b9de2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql new file mode 100644 index 0000000000..6864b9d5b8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql new file mode 100644 index 0000000000..c4ac6e1ae2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql new file mode 100644 index 0000000000..d1f15870a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql new file mode 100644 index 0000000000..ee7a50072c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql new file mode 100644 index 0000000000..6bb9b22705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql new file mode 100644 index 0000000000..51b1319beb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql new file mode 100644 index 0000000000..9f0b264139 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql new file mode 100644 index 0000000000..d49afdc63d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql new file mode 100644 index 0000000000..e9641de5ed --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql new file mode 100644 index 0000000000..67e46a38fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql new file mode 100644 index 0000000000..6b9fa680c3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql new file mode 100644 index 0000000000..0160b9c1a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql new file mode 100644 index 0000000000..e2b3d317a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql new file mode 100644 index 0000000000..3fc9158ca2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql new file mode 100644 index 0000000000..b447996855 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql new file mode 100644 index 0000000000..c884362677 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql new file mode 100644 index 0000000000..2cd160e33f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql new file mode 100644 index 0000000000..062366e854 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql new file mode 100644 index 0000000000..aa37643b1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql new file mode 100644 index 0000000000..07e4107f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..498ed19ceb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql new file mode 100644 index 0000000000..84fd80638b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql new file mode 100644 index 0000000000..b33960fcad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql new file mode 100644 index 0000000000..7ba3dc6750 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql new file mode 100644 index 0000000000..8a9145ac6c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql new file mode 100644 index 0000000000..cbcd9b056a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql new file mode 100644 index 0000000000..139b8c5f68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql new file mode 100644 index 0000000000..5e0c908085 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql new file mode 100644 index 0000000000..91393fd7ee --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..80a0370490 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql new file mode 100644 index 0000000000..7de76a2918 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..8de6d5dc85 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql new file mode 100644 index 0000000000..b6d4c50c07 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql @@ -0,0 +1 @@ +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql new file mode 100644 index 0000000000..f7ce47113b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql new file mode 100644 index 0000000000..2224306ce1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql new file mode 100644 index 0000000000..2f779bf8a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql new file mode 100644 index 0000000000..1c4fed4d8c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql new file mode 100644 index 0000000000..d3ae1af8b3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql new file mode 100644 index 0000000000..d6f3d3b0dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql @@ -0,0 +1 @@ +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql new file mode 100644 index 0000000000..e2a05c6a8d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql new file mode 100644 index 0000000000..34e08782fb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql new file mode 100644 index 0000000000..17f4b2cf68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql new file mode 100644 index 0000000000..a67a678e35 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql new file mode 100644 index 0000000000..8217faeab1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql @@ -0,0 +1 @@ +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql new file mode 100644 index 0000000000..1d13c98da4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql new file mode 100644 index 0000000000..612b0012d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql new file mode 100644 index 0000000000..f9e3a7a770 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..a13558b04b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql new file mode 100644 index 0000000000..973e602987 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..c17884a304 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..cc78821e78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, 'ez_lock', 3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..609826a7c2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, '', 3, 'Lock', 2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..db716c0d84 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..a0d990da69 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..7c748fde7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..792d15f4ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..e00a5afc39 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..83aa440947 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..9ccdaaf91f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..0621f947ba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..8d9a9b0b2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..34b8980372 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..ac4544a1c6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..261cb89e36 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..498e2577b1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..bf8f363666 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..17d9668f7f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..587bb93d15 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..7c0e184943 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..9d65153a4f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..5b4c34ea06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..92ea4ab159 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezsite_data" ("name", "value") +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..60f8aa7a42 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..125c3e3393 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..257e76532c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..dd2c144a37 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..9e5ff0b7d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..ba202749ca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..4b87da9303 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql new file mode 100644 index 0000000000..056312175f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql @@ -0,0 +1,2 @@ +-- Set proper sequence values after inserting data +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql new file mode 100644 index 0000000000..c8e051aa09 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql new file mode 100644 index 0000000000..a488f42672 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql new file mode 100644 index 0000000000..e7945c3bf6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql new file mode 100644 index 0000000000..1c15b1970e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql new file mode 100644 index 0000000000..67c66a320c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql new file mode 100644 index 0000000000..d8f66b1c65 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql new file mode 100644 index 0000000000..b21db5ae2f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql new file mode 100644 index 0000000000..8800566349 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql new file mode 100644 index 0000000000..0308bdc43c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql new file mode 100644 index 0000000000..dfd67783fd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql new file mode 100644 index 0000000000..48b5dc9a8e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql new file mode 100644 index 0000000000..fa8e547c55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql new file mode 100644 index 0000000000..8a3f1a9ae0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql new file mode 100644 index 0000000000..1892a4da3d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql new file mode 100644 index 0000000000..f3e2e4c7a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql new file mode 100644 index 0000000000..a0590cbafe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql new file mode 100644 index 0000000000..bea26a1658 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql new file mode 100644 index 0000000000..32e1a5952c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql new file mode 100644 index 0000000000..809801b081 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql new file mode 100644 index 0000000000..47287e5919 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql new file mode 100644 index 0000000000..994366ebbe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql new file mode 100644 index 0000000000..6f91042d3b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql new file mode 100644 index 0000000000..2a9b0dee98 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql new file mode 100644 index 0000000000..c5078959e5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql new file mode 100644 index 0000000000..f80598be3f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql new file mode 100644 index 0000000000..cd49369f7b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql new file mode 100644 index 0000000000..277a5e62f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql new file mode 100644 index 0000000000..7969e16eea --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql new file mode 100644 index 0000000000..f2557a86a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql new file mode 100644 index 0000000000..e2f0f7229c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..0bf69c19ad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..b1708d93c6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql new file mode 100644 index 0000000000..acd97e80ae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql new file mode 100644 index 0000000000..6d6498dfa3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql new file mode 100644 index 0000000000..a622a7319b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..a312f68826 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql new file mode 100644 index 0000000000..8693d6bab5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql new file mode 100644 index 0000000000..36481c9271 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..bf099e3762 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..e0c93b23f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..ab29b826f2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql new file mode 100644 index 0000000000..3f3f93dd8f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql new file mode 100644 index 0000000000..0a236b1d78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql new file mode 100644 index 0000000000..6f85547ed8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql new file mode 100644 index 0000000000..382bc2fe6f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..cd5fdd8520 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql new file mode 100644 index 0000000000..7a3cbafefc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql new file mode 100644 index 0000000000..a0694b8c61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql new file mode 100644 index 0000000000..80dcea65d9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql new file mode 100644 index 0000000000..9f76373cac --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql new file mode 100644 index 0000000000..d7b5136f63 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql new file mode 100644 index 0000000000..f0c7ac9ecc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql new file mode 100644 index 0000000000..87676071e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql new file mode 100644 index 0000000000..22d066cdca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..5e78454445 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql new file mode 100644 index 0000000000..659a26c514 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql new file mode 100644 index 0000000000..5b0696a7e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql new file mode 100644 index 0000000000..6c77193029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql new file mode 100644 index 0000000000..47fcb50231 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql new file mode 100644 index 0000000000..7fd0e3cfa1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql new file mode 100644 index 0000000000..24c8111651 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..4afcafb110 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql new file mode 100644 index 0000000000..7875734dae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql new file mode 100644 index 0000000000..ba2700ac55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..e94bd6f294 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..f17be3c68c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..25cac4ef2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..776d327767 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..7a7cde12e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql new file mode 100644 index 0000000000..f1364cf079 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql new file mode 100644 index 0000000000..5dddc18819 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql new file mode 100644 index 0000000000..6fd63f61d8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql new file mode 100644 index 0000000000..022ffd1c54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql new file mode 100644 index 0000000000..2459702346 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql new file mode 100644 index 0000000000..cb0f62d824 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql new file mode 100644 index 0000000000..17c73894b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql new file mode 100644 index 0000000000..f68fa6262f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql new file mode 100644 index 0000000000..6e86f88cfe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..13b2780ba6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql new file mode 100644 index 0000000000..6b23dbfdcb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql new file mode 100644 index 0000000000..c8391d6730 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql new file mode 100644 index 0000000000..320329b4f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql new file mode 100644 index 0000000000..31e10963b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql new file mode 100644 index 0000000000..d89a560a80 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql new file mode 100644 index 0000000000..3a0b46cb82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..9c80af1662 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql new file mode 100644 index 0000000000..c09dfefbf0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql new file mode 100644 index 0000000000..5553d5dbb9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql new file mode 100644 index 0000000000..576d349337 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..330a997cdc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql new file mode 100644 index 0000000000..a53893b840 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql new file mode 100644 index 0000000000..d47ec6ff06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql new file mode 100644 index 0000000000..066bdd2ddf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..8cf7a78639 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql new file mode 100644 index 0000000000..22a5480ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql new file mode 100644 index 0000000000..1b230d30c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql new file mode 100644 index 0000000000..e97fae979c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql new file mode 100644 index 0000000000..4f2edf4230 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql new file mode 100644 index 0000000000..980553e6cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql new file mode 100644 index 0000000000..41f87ea995 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..73919870ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql new file mode 100644 index 0000000000..eb1712c587 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql new file mode 100644 index 0000000000..d9ade282a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql @@ -0,0 +1 @@ +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql new file mode 100644 index 0000000000..f8b3625958 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql new file mode 100644 index 0000000000..7ad71e9d33 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql new file mode 100644 index 0000000000..0dc2e4d0ff --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql new file mode 100644 index 0000000000..a52478c504 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql new file mode 100644 index 0000000000..b6a67a8141 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql new file mode 100644 index 0000000000..b1093dd031 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql new file mode 100644 index 0000000000..74974918cf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql new file mode 100644 index 0000000000..a16efa09bf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql new file mode 100644 index 0000000000..c71ce38856 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql @@ -0,0 +1 @@ +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql new file mode 100644 index 0000000000..f22ea4c070 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql new file mode 100644 index 0000000000..9fd53f1f99 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql new file mode 100644 index 0000000000..4aa9687e74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql new file mode 100644 index 0000000000..5cba288e70 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql new file mode 100644 index 0000000000..d8e144c201 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..cd675686ed --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql new file mode 100644 index 0000000000..8d8572e8bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql new file mode 100644 index 0000000000..f07b97d9ab --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql new file mode 100644 index 0000000000..0404bc617b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql new file mode 100644 index 0000000000..5cc240e09b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql new file mode 100644 index 0000000000..5e822ef0c9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql new file mode 100644 index 0000000000..5e5ed94263 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql new file mode 100644 index 0000000000..987539c281 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql new file mode 100644 index 0000000000..7c7225c18d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql new file mode 100644 index 0000000000..6b519ccc54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql new file mode 100644 index 0000000000..3f6a172e7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql new file mode 100644 index 0000000000..862b80ddf5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql new file mode 100644 index 0000000000..b621afd705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql new file mode 100644 index 0000000000..18c04aae4b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql new file mode 100644 index 0000000000..0ea197813d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql new file mode 100644 index 0000000000..366c989ec0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql new file mode 100644 index 0000000000..9a3d4f8171 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..79c443ef85 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql new file mode 100644 index 0000000000..6640c10ce8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql @@ -0,0 +1 @@ +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..08bd1cf9d0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql new file mode 100644 index 0000000000..446a27fdaa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql new file mode 100644 index 0000000000..8c0458bdde --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql new file mode 100644 index 0000000000..3b64a2bfba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql new file mode 100644 index 0000000000..e8330b63d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql new file mode 100644 index 0000000000..e33390d2a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql new file mode 100644 index 0000000000..a712365e6b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..568edef679 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql new file mode 100644 index 0000000000..fb984de9f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql new file mode 100644 index 0000000000..724819087d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql new file mode 100644 index 0000000000..9c46453535 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql new file mode 100644 index 0000000000..058c9b9de2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql new file mode 100644 index 0000000000..6864b9d5b8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql new file mode 100644 index 0000000000..bea025a97c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql new file mode 100644 index 0000000000..d1f15870a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql new file mode 100644 index 0000000000..ee7a50072c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql new file mode 100644 index 0000000000..6e77c80b0a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql new file mode 100644 index 0000000000..0cabe9726b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql new file mode 100644 index 0000000000..40720c87df --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql new file mode 100644 index 0000000000..d49afdc63d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql new file mode 100644 index 0000000000..4457d5a9ca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql new file mode 100644 index 0000000000..67e46a38fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql new file mode 100644 index 0000000000..6b9fa680c3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql new file mode 100644 index 0000000000..0160b9c1a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql new file mode 100644 index 0000000000..e2b3d317a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql new file mode 100644 index 0000000000..46fd22ba70 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql new file mode 100644 index 0000000000..b447996855 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql new file mode 100644 index 0000000000..c884362677 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql new file mode 100644 index 0000000000..2cd160e33f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql new file mode 100644 index 0000000000..062366e854 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql new file mode 100644 index 0000000000..aa37643b1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql new file mode 100644 index 0000000000..07e4107f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..fc7ced0139 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql new file mode 100644 index 0000000000..84fd80638b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql new file mode 100644 index 0000000000..b33960fcad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql new file mode 100644 index 0000000000..c3f47f4bb7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql new file mode 100644 index 0000000000..8a9145ac6c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql new file mode 100644 index 0000000000..2a952aa64e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql new file mode 100644 index 0000000000..139b8c5f68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql new file mode 100644 index 0000000000..5e0c908085 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql new file mode 100644 index 0000000000..91393fd7ee --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..b559dae946 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql new file mode 100644 index 0000000000..4fef3f6bce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..0644e63339 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql new file mode 100644 index 0000000000..b6d4c50c07 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql @@ -0,0 +1 @@ +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql new file mode 100644 index 0000000000..045b996bbd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql new file mode 100644 index 0000000000..2224306ce1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql new file mode 100644 index 0000000000..2f779bf8a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql new file mode 100644 index 0000000000..5d10f19c92 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql new file mode 100644 index 0000000000..8d12ee2b45 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql @@ -0,0 +1,2 @@ +CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) +); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql new file mode 100644 index 0000000000..d6f3d3b0dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql @@ -0,0 +1 @@ +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql new file mode 100644 index 0000000000..e2a05c6a8d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql new file mode 100644 index 0000000000..56545a77df --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql new file mode 100644 index 0000000000..17f4b2cf68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql new file mode 100644 index 0000000000..4ccb1fc31a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql new file mode 100644 index 0000000000..8217faeab1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql @@ -0,0 +1 @@ +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql new file mode 100644 index 0000000000..1d13c98da4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..64e0eacdd1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..677a43ca5c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..9930341865 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..dc7872d95b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..9a0dd8d0e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..97bfa86644 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..540efcb3ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..30ad516ff8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..ffa17693b0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..1f517c87e3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..61aea82715 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..c18bc54f7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..d2ec35a36f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..fc75852a7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..1cfc2b9049 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..f8ba2fe49d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..b69e8a455f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..7e0d289d2b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..d1dfc57ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..26ef009ea8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..16605e3ee2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..a12ae3cbfb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..82536384d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..dbdfab1b74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..1a3fce42c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..60ee1309ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..151e4f6fa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..5ad1f12f1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..c87f9291dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..5a44f420f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php deleted file mode 100644 index 0582363709..0000000000 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php - -/** - * @copyright Copyright (C) Ibexa AS. All rights reserved. - * @license For full copyright and license information view LICENSE file distributed with this source code. - */ -declare(strict_types=1); - -namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection\Compiler; - -use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; -use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase; -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Definition; -use Symfony\Component\DependencyInjection\Reference; - -/** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass - */ -class InstallerTagPassTest extends AbstractCompilerPassTestCase -{ - /** - * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass::process - */ - public function testProcessInjectsInstallersIntoCommand(): void - { - $this->setDefinition( - InstallPlatformCommand::class, - new Definition(InstallPlatformCommand::class, ['$installers' => []]) - ); - $definition = new Definition(); - $definition->addTag( - InstallerTagPass::INSTALLER_TAG, - [ - 'type' => 'installer_type', - ] - ); - - $this->setDefinition('service_id', $definition); - $this->compile(); - - $this->assertContainerBuilderHasServiceDefinitionWithArgument( - InstallPlatformCommand::class, - '$installers', - [ - 'installer_type' => new Reference('service_id'), - ] - ); - } - - protected function registerCompilerPass(ContainerBuilder $container): void - { - $container->addCompilerPass(new InstallerTagPass()); - } -} - -class_alias(InstallerTagPassTest::class, 'EzSystems\PlatformInstallerBundleTests\DependencyInjection\Compiler\InstallerTagPassTest'); diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index 56b4533d56..ae374c9824 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -9,7 +9,6 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection; use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension; use Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller; use Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller; @@ -32,7 +31,7 @@ public function testLoadLoadsTaggedCoreInstaller(): void ); $this->assertContainerBuilderHasServiceDefinitionWithTag( CoreInstaller::class, - InstallerTagPass::INSTALLER_TAG, + 'ibexa.installer', ['type' => 'ibexa-oss'] ); } diff --git a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php index 323370c693..fec8749159 100644 --- a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php +++ b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php @@ -9,10 +9,8 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DependencyInjection\DoctrineSchemaExtension; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\IbexaRepositoryInstallerBundle; use PHPUnit\Framework\TestCase; -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; @@ -33,17 +31,10 @@ public function testBuild(): void { $container = new ContainerBuilder(); $container->registerExtension(new DoctrineSchemaExtension()); + $this->bundle->build($container); - // check if InstallerTagPass was added - self::assertNotEmpty( - array_filter( - $container->getCompilerPassConfig()->getPasses(), - static function (CompilerPassInterface $compilerPass) { - return $compilerPass instanceof InstallerTagPass; - } - ) - ); + $this->expectNotToPerformAssertions(); } /** From e2fb82dd83d7a5799d49e56967a7cb30559e26e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 17 Jul 2026 10:04:41 +0200 Subject: [PATCH 50/88] Fixed PHPStan generics error on ServiceLocator<Installer> Symfony\Component\DependencyInjection\ServiceLocator is not a generic class, so PHPStan rejects the ServiceLocator<Installer> PHPDoc type used for InstallPlatformCommand::$installers. Removed the invalid generic parameter; the type-hint itself (plain ServiceLocator) is unaffected. --- .../RepositoryInstaller/Command/InstallPlatformCommand.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index f9f62de371..567f33680a 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -34,7 +34,6 @@ final class InstallPlatformCommand extends Command implements BackwardCompatible private string $environment; - /** @var \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> */ private ServiceLocator $installers; private RepositoryConfigurationProvider $repositoryConfigurationProvider; @@ -44,9 +43,6 @@ final class InstallPlatformCommand extends Command implements BackwardCompatible public const EXIT_UNKNOWN_INSTALL_TYPE = 6; public const EXIT_MISSING_PERMISSIONS = 7; - /** - * @param \Symfony\Component\DependencyInjection\ServiceLocator<\Ibexa\Bundle\RepositoryInstaller\Installer\Installer> $installers - */ public function __construct( Connection $connection, ServiceLocator $installers, From 71d6e6b97ccebfabceff78c22e566950138ad31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 17 Jul 2026 12:42:50 +0200 Subject: [PATCH 51/88] [Doctrine Migrations] Inlined SQL directly into migration classes Converts InstallSchemaMigration and ImportDataMigration from Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion (which loads its SQL from a YAML manifest + one-statement-per-file pairs at runtime) to Doctrine\Migrations\AbstractMigration directly, with every statement inlined as an addSql() call in up(), branching on $this->platform (MySqlPlatform/PostgreSqlPlatform/SqlitePlatform). Both still implement IbexaMigrationInterface and are tagged with IbexaMigrationTag::TAG in services.yml, so they remain discoverable by TaggedMigrationsRunner/ServiceMigrationsRepository/IbexaOnlyDependencyFactory exactly as before - no other part of the installer changes. Removes the entire Resources/migrations/ YAML+SQL-file tree (509 files), generated from the same schema.yaml/cleandata.sql sources as before. --- .../Migration/ImportDataMigration.php | 883 +++++++++++++++++- .../Migration/InstallSchemaMigration.php | 413 +++++++- .../Resources/migrations/import_data.yaml | 243 ----- .../Resources/migrations/install_schema.yaml | 773 --------------- .../sql/mysql/0001_create_ezbinaryfile.sql | 1 - .../sql/mysql/0002_create_ezcobj_state.sql | 1 - .../mysql/0003_create_ezcobj_state_group.sql | 1 - ...004_create_ezcobj_state_group_language.sql | 1 - .../0005_create_ezcobj_state_language.sql | 1 - .../mysql/0006_create_ezcobj_state_link.sql | 1 - .../mysql/0007_create_ezcontent_language.sql | 1 - .../sql/mysql/0008_create_ezuser.sql | 1 - .../0009_create_ezcontentobject_tree.sql | 1 - .../0010_create_ezcontentbrowsebookmark.sql | 1 - .../sql/mysql/0011_create_ezcontentclass.sql | 1 - .../0012_create_ezcontentclass_attribute.sql | 1 - ...013_create_ezcontentclass_attribute_ml.sql | 1 - .../0014_create_ezcontentclass_classgroup.sql | 1 - .../mysql/0015_create_ezcontentclass_name.sql | 1 - .../mysql/0016_create_ezcontentclassgroup.sql | 1 - .../sql/mysql/0017_create_ezcontentobject.sql | 1 - .../0018_create_ezcontentobject_attribute.sql | 1 - .../0019_create_ezcontentobject_link.sql | 1 - .../0020_create_ezcontentobject_name.sql | 1 - .../0021_create_ezcontentobject_trash.sql | 1 - .../0022_create_ezcontentobject_version.sql | 1 - .../sql/mysql/0023_create_ezdfsfile.sql | 1 - .../sql/mysql/0024_create_ezgmaplocation.sql | 1 - .../sql/mysql/0025_create_ezimagefile.sql | 1 - .../sql/mysql/0026_create_ezkeyword.sql | 1 - .../0027_create_ezkeyword_attribute_link.sql | 1 - .../sql/mysql/0028_create_ezmedia.sql | 1 - .../mysql/0029_create_eznode_assignment.sql | 1 - .../sql/mysql/0030_create_eznotification.sql | 1 - .../sql/mysql/0031_create_ezpackage.sql | 1 - .../sql/mysql/0032_create_ezpolicy.sql | 1 - .../mysql/0033_create_ezpolicy_limitation.sql | 1 - .../0034_create_ezpolicy_limitation_value.sql | 1 - .../sql/mysql/0035_create_ezpreferences.sql | 1 - .../sql/mysql/0036_create_ezrole.sql | 1 - .../0037_create_ezsearch_object_word_link.sql | 1 - .../sql/mysql/0038_create_ezsearch_word.sql | 1 - .../sql/mysql/0039_create_ezsection.sql | 1 - .../sql/mysql/0040_create_ezsite_data.sql | 1 - .../sql/mysql/0041_create_ezurl.sql | 1 - .../mysql/0042_create_ezurl_object_link.sql | 1 - .../sql/mysql/0043_create_ezurlalias.sql | 1 - .../sql/mysql/0044_create_ezurlalias_ml.sql | 1 - .../mysql/0045_create_ezurlalias_ml_incr.sql | 1 - .../sql/mysql/0046_create_ezurlwildcard.sql | 1 - .../mysql/0047_create_ezuser_accountkey.sql | 1 - .../sql/mysql/0048_create_ezuser_role.sql | 1 - .../sql/mysql/0049_create_ezuser_setting.sql | 1 - .../sql/mysql/0050_create_ibexa_setting.sql | 1 - .../mysql/0051_create_ibexa_token_type.sql | 1 - .../sql/mysql/0052_create_ibexa_token.sql | 1 - ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 - ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 - .../mysql/data/0001_insert_ezcobj_state.sql | 3 - .../data/0002_insert_ezcobj_state_group.sql | 2 - ...003_insert_ezcobj_state_group_language.sql | 2 - .../0004_insert_ezcobj_state_language.sql | 3 - .../data/0005_insert_ezcobj_state_link.sql | 13 - .../data/0006_insert_ezcontent_language.sql | 2 - .../mysql/data/0007_insert_ezcontentclass.sql | 7 - .../0008_insert_ezcontentclass_attribute.sql | 25 - .../0009_insert_ezcontentclass_classgroup.sql | 7 - .../data/0010_insert_ezcontentclass_name.sql | 7 - .../data/0011_insert_ezcontentclassgroup.sql | 4 - .../data/0012_insert_ezcontentobject.sql | 13 - .../0013_insert_ezcontentobject_attribute.sql | 41 - .../data/0014_insert_ezcontentobject_name.sql | 13 - .../data/0015_insert_ezcontentobject_tree.sql | 14 - .../0016_insert_ezcontentobject_version.sql | 13 - .../data/0017_insert_eznode_assignment.sql | 13 - .../sql/mysql/data/0018_insert_ezpolicy.sql | 9 - .../data/0019_insert_ezpolicy_limitation.sql | 7 - .../0020_insert_ezpolicy_limitation_value.sql | 8 - .../sql/mysql/data/0021_insert_ezrole.sql | 5 - .../sql/mysql/data/0022_insert_ezsection.sql | 4 - .../mysql/data/0023_insert_ezsite_data.sql | 2 - .../sql/mysql/data/0024_insert_ezurlalias.sql | 13 - .../mysql/data/0025_insert_ezurlalias_ml.sql | 26 - .../data/0026_insert_ezurlalias_ml_incr.sql | 4 - .../sql/mysql/data/0027_insert_ezuser.sql | 3 - .../mysql/data/0028_insert_ezuser_role.sql | 7 - .../mysql/data/0029_insert_ezuser_setting.sql | 3 - .../mysql/data/0030_insert_ezpreferences.sql | 2 - .../postgresql/0001_create_ezbinaryfile.sql | 1 - .../postgresql/0002_create_ezcobj_state.sql | 1 - ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 - ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 - ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 - .../0006_create_ezcobj_state_group.sql | 1 - ...j_state_group_ezcobj_state_group_lmask.sql | 1 - ...te_group_ezcobj_state_group_identifier.sql | 1 - ...009_create_ezcobj_state_group_language.sql | 1 - .../0010_create_ezcobj_state_language.sql | 1 - .../0011_create_ezcobj_state_link.sql | 1 - .../0012_create_ezcontent_language.sql | 1 - ...ntent_language_ezcontent_language_name.sql | 1 - .../sql/postgresql/0014_create_ezuser.sql | 1 - .../0015_index_ezuser_ezuser_login.sql | 1 - .../0016_create_ezcontentobject_tree.sql | 1 - ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 - ...t_tree_ezcontentobject_tree_path_ident.sql | 1 - ...ject_tree_contentobject_id_path_string.sql | 1 - ...object_tree_ezcontentobject_tree_co_id.sql | 1 - ...object_tree_ezcontentobject_tree_depth.sql | 1 - ...tobject_tree_ezcontentobject_tree_path.sql | 1 - ..._ezcontentobject_tree_modified_subnode.sql | 1 - ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 - .../0025_create_ezcontentbrowsebookmark.sql | 1 - ...kmark_ezcontentbrowsebookmark_location.sql | 1 - ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 - ..._ezcontentbrowsebookmark_user_location.sql | 1 - .../postgresql/0029_create_ezcontentclass.sql | 1 - ..._ezcontentclass_ezcontentclass_version.sql | 1 - ...contentclass_ezcontentclass_identifier.sql | 1 - .../0032_create_ezcontentclass_attribute.sql | 1 - ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 - ...lass_attribute_ezcontentclass_attr_dts.sql | 1 - ...035_create_ezcontentclass_attribute_ml.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - .../0037_create_ezcontentclass_classgroup.sql | 1 - .../0038_create_ezcontentclass_name.sql | 1 - .../0039_create_ezcontentclassgroup.sql | 1 - .../0040_create_ezcontentobject.sql | 1 - ...zcontentobject_ezcontentobject_classid.sql | 1 - ..._ezcontentobject_ezcontentobject_lmask.sql | 1 - ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 - ...zcontentobject_ezcontentobject_section.sql | 1 - ...tobject_ezcontentobject_currentversion.sql | 1 - ..._ezcontentobject_ezcontentobject_owner.sql | 1 - ...ezcontentobject_ezcontentobject_status.sql | 1 - ...ontentobject_ezcontentobject_remote_id.sql | 1 - .../0049_create_ezcontentobject_attribute.sql | 1 - ...ntobject_attribute_co_id_ver_lang_code.sql | 1 - ...attribute_ezcontentobject_classattr_id.sql | 1 - ...ontentobject_attribute_sort_key_string.sql | 1 - ...zcontentobject_attribute_language_code.sql | 1 - ...ezcontentobject_attribute_sort_key_int.sql | 1 - ...te_ezcontentobject_attribute_co_id_ver.sql | 1 - .../0056_create_ezcontentobject_link.sql | 1 - ...zcontentobject_link_ezco_link_to_co_id.sql | 1 - ...ex_ezcontentobject_link_ezco_link_from.sql | 1 - ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 - .../0060_create_ezcontentobject_name.sql | 1 - ...ject_name_ezcontentobject_name_lang_id.sql | 1 - ...bject_name_ezcontentobject_name_cov_id.sql | 1 - ...tobject_name_ezcontentobject_name_name.sql | 1 - .../0064_create_ezcontentobject_trash.sql | 1 - ...contentobject_trash_ezcobj_trash_depth.sql | 1 - ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 - ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 - ...contentobject_trash_ezcobj_trash_co_id.sql | 1 - ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 - ...zcontentobject_trash_ezcobj_trash_path.sql | 1 - .../0071_create_ezcontentobject_version.sql | 1 - ...ntobject_version_ezcobj_version_status.sql | 1 - ...ject_version_idx_object_version_objver.sql | 1 - ...t_version_ezcontobj_version_obj_status.sql | 1 - ...ject_version_ezcobj_version_creator_id.sql | 1 - .../sql/postgresql/0076_create_ezdfsfile.sql | 1 - ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 - ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 - .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 - .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 - .../postgresql/0081_create_ezgmaplocation.sql | 1 - ..._ezgmaplocation_latitude_longitude_key.sql | 1 - .../postgresql/0083_create_ezimagefile.sql | 1 - ...084_index_ezimagefile_ezimagefile_file.sql | 1 - ...085_index_ezimagefile_ezimagefile_coid.sql | 1 - .../sql/postgresql/0086_create_ezkeyword.sql | 1 - ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 - .../0088_create_ezkeyword_attribute_link.sql | 1 - ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 - .../sql/postgresql/0092_create_ezmedia.sql | 1 - .../0093_create_eznode_assignment.sql | 1 - ...e_assignment_eznode_assignment_is_main.sql | 1 - ..._assignment_eznode_assignment_coid_cov.sql | 1 - ...signment_eznode_assignment_parent_node.sql | 1 - ...ssignment_eznode_assignment_co_version.sql | 1 - .../postgresql/0098_create_eznotification.sql | 1 - ...cation_eznotification_owner_is_pending.sql | 1 - ...ex_eznotification_eznotification_owner.sql | 1 - .../sql/postgresql/0101_create_ezpackage.sql | 1 - .../sql/postgresql/0102_create_ezpolicy.sql | 1 - .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 - ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 - .../0105_create_ezpolicy_limitation.sql | 1 - ...06_index_ezpolicy_limitation_policy_id.sql | 1 - .../0107_create_ezpolicy_limitation_value.sql | 1 - ...on_value_ezpolicy_limit_value_limit_id.sql | 1 - ...on_value_ezpolicy_limitation_value_val.sql | 1 - .../postgresql/0110_create_ezpreferences.sql | 1 - ...zpreferences_ezpreferences_user_id_idx.sql | 1 - ...index_ezpreferences_ezpreferences_name.sql | 1 - .../sql/postgresql/0113_create_ezrole.sql | 1 - .../0114_create_ezsearch_object_word_link.sql | 1 - ..._link_ezsearch_object_word_link_object.sql | 1 - ...k_ezsearch_object_word_link_identifier.sql | 1 - ...zsearch_object_word_link_integer_value.sql | 1 - ...rd_link_ezsearch_object_word_link_word.sql | 1 - ...nk_ezsearch_object_word_link_frequency.sql | 1 - .../postgresql/0120_create_ezsearch_word.sql | 1 - ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 - ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 - .../sql/postgresql/0123_create_ezsection.sql | 1 - .../postgresql/0124_create_ezsite_data.sql | 1 - .../sql/postgresql/0125_create_ezurl.sql | 1 - .../postgresql/0126_index_ezurl_ezurl_url.sql | 1 - .../0127_create_ezurl_object_link.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 - ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 - ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 - .../sql/postgresql/0132_create_ezurlalias.sql | 1 - ...index_ezurlalias_ezurlalias_source_md5.sql | 1 - ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 - ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 - ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 - ...index_ezurlalias_ezurlalias_source_url.sql | 1 - ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 - .../postgresql/0139_create_ezurlalias_ml.sql | 1 - ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 - ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 - ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 - ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 - ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 - ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 - .../0148_create_ezurlalias_ml_incr.sql | 1 - .../postgresql/0149_create_ezurlwildcard.sql | 1 - .../0150_create_ezuser_accountkey.sql | 1 - .../0151_index_ezuser_accountkey_hash_key.sql | 1 - .../postgresql/0152_create_ezuser_role.sql | 1 - ..._index_ezuser_role_ezuser_role_role_id.sql | 1 - ...user_role_ezuser_role_contentobject_id.sql | 1 - .../postgresql/0155_create_ezuser_setting.sql | 1 - .../postgresql/0156_create_ibexa_setting.sql | 1 - ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 - ...setting_ibexa_setting_group_identifier.sql | 1 - .../0159_create_ibexa_token_type.sql | 1 - ...exa_token_type_ibexa_token_type_unique.sql | 1 - .../postgresql/0161_create_ibexa_token.sql | 1 - ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 - ...3_index_ibexa_token_ibexa_token_unique.sql | 1 - ...rk_ezcontentbrowsebookmark_location_fk.sql | 1 - ...okmark_ezcontentbrowsebookmark_user_fk.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - ..._fk_ibexa_token_ibexa_token_type_id_fk.sql | 1 - .../data/0001_insert_ezcobj_state.sql | 3 - .../data/0002_insert_ezcobj_state_group.sql | 2 - ...003_insert_ezcobj_state_group_language.sql | 2 - .../0004_insert_ezcobj_state_language.sql | 3 - .../data/0005_insert_ezcobj_state_link.sql | 13 - .../data/0006_insert_ezcontent_language.sql | 2 - .../data/0007_insert_ezcontentclass.sql | 7 - .../0008_insert_ezcontentclass_attribute.sql | 25 - .../0009_insert_ezcontentclass_classgroup.sql | 7 - .../data/0010_insert_ezcontentclass_name.sql | 7 - .../data/0011_insert_ezcontentclassgroup.sql | 4 - .../data/0012_insert_ezcontentobject.sql | 13 - .../0013_insert_ezcontentobject_attribute.sql | 41 - .../data/0014_insert_ezcontentobject_name.sql | 13 - .../data/0015_insert_ezcontentobject_tree.sql | 14 - .../0016_insert_ezcontentobject_version.sql | 13 - .../data/0017_insert_eznode_assignment.sql | 13 - .../postgresql/data/0018_insert_ezpolicy.sql | 9 - .../data/0019_insert_ezpolicy_limitation.sql | 7 - .../0020_insert_ezpolicy_limitation_value.sql | 8 - .../postgresql/data/0021_insert_ezrole.sql | 5 - .../postgresql/data/0022_insert_ezsection.sql | 4 - .../data/0023_insert_ezsite_data.sql | 2 - .../data/0024_insert_ezurlalias.sql | 13 - .../data/0025_insert_ezurlalias_ml.sql | 26 - .../data/0026_insert_ezurlalias_ml_incr.sql | 4 - .../postgresql/data/0027_insert_ezuser.sql | 3 - .../data/0028_insert_ezuser_role.sql | 7 - .../data/0029_insert_ezuser_setting.sql | 3 - .../data/0030_insert_ezpreferences.sql | 2 - .../0031_setval_ezcobj_state_group_id_seq.sql | 2 - .../data/0032_setval_ezcobj_state_id_seq.sql | 1 - ..._setval_ezcontentbrowsebookmark_id_seq.sql | 1 - ...setval_ezcontentclass_attribute_id_seq.sql | 1 - .../0035_setval_ezcontentclass_id_seq.sql | 1 - ...0036_setval_ezcontentclassgroup_id_seq.sql | 1 - ...etval_ezcontentobject_attribute_id_seq.sql | 1 - .../0038_setval_ezcontentobject_id_seq.sql | 1 - ...039_setval_ezcontentobject_link_id_seq.sql | 1 - ...etval_ezcontentobject_tree_node_id_seq.sql | 1 - ..._setval_ezcontentobject_version_id_seq.sql | 1 - .../data/0042_setval_ezimagefile_id_seq.sql | 1 - ...setval_ezkeyword_attribute_link_id_seq.sql | 1 - .../data/0044_setval_ezkeyword_id_seq.sql | 1 - .../0045_setval_eznode_assignment_id_seq.sql | 1 - .../0046_setval_eznotification_id_seq.sql | 1 - .../data/0047_setval_ezpackage_id_seq.sql | 1 - .../data/0048_setval_ezpolicy_id_seq.sql | 1 - ...0049_setval_ezpolicy_limitation_id_seq.sql | 1 - ...etval_ezpolicy_limitation_value_id_seq.sql | 1 - .../data/0051_setval_ezpreferences_id_seq.sql | 1 - .../data/0052_setval_ezrole_id_seq.sql | 1 - ...etval_ezsearch_object_word_link_id_seq.sql | 1 - .../data/0054_setval_ezsearch_word_id_seq.sql | 1 - .../data/0055_setval_ezsection_id_seq.sql | 1 - .../data/0056_setval_ezurl_id_seq.sql | 1 - .../data/0057_setval_ezurlalias_id_seq.sql | 1 - .../0058_setval_ezurlalias_ml_incr_id_seq.sql | 1 - .../data/0059_setval_ezurlwildcard_id_seq.sql | 1 - .../0060_setval_ezuser_accountkey_id_seq.sql | 1 - .../data/0061_setval_ezuser_role_id_seq.sql | 1 - .../sql/sqlite/0001_create_ezbinaryfile.sql | 1 - .../sql/sqlite/0002_create_ezcobj_state.sql | 1 - ...dex_ezcobj_state_ezcobj_state_priority.sql | 1 - ..._index_ezcobj_state_ezcobj_state_lmask.sql | 1 - ...x_ezcobj_state_ezcobj_state_identifier.sql | 1 - .../sqlite/0006_create_ezcobj_state_group.sql | 1 - ...j_state_group_ezcobj_state_group_lmask.sql | 1 - ...te_group_ezcobj_state_group_identifier.sql | 1 - ...009_create_ezcobj_state_group_language.sql | 1 - .../0010_create_ezcobj_state_language.sql | 1 - .../sqlite/0011_create_ezcobj_state_link.sql | 1 - .../sqlite/0012_create_ezcontent_language.sql | 1 - ...ntent_language_ezcontent_language_name.sql | 1 - .../sql/sqlite/0014_create_ezuser.sql | 1 - .../sqlite/0015_index_ezuser_ezuser_login.sql | 1 - .../0016_create_ezcontentobject_tree.sql | 1 - ...ct_tree_ezcontentobject_tree_p_node_id.sql | 1 - ...t_tree_ezcontentobject_tree_path_ident.sql | 1 - ...ject_tree_contentobject_id_path_string.sql | 1 - ...object_tree_ezcontentobject_tree_co_id.sql | 1 - ...object_tree_ezcontentobject_tree_depth.sql | 1 - ...tobject_tree_ezcontentobject_tree_path.sql | 1 - ..._ezcontentobject_tree_modified_subnode.sql | 1 - ...ct_tree_ezcontentobject_tree_remote_id.sql | 1 - .../0025_create_ezcontentbrowsebookmark.sql | 1 - ...kmark_ezcontentbrowsebookmark_location.sql | 1 - ...ebookmark_ezcontentbrowsebookmark_user.sql | 1 - ..._ezcontentbrowsebookmark_user_location.sql | 1 - .../sql/sqlite/0029_create_ezcontentclass.sql | 1 - ..._ezcontentclass_ezcontentclass_version.sql | 1 - ...contentclass_ezcontentclass_identifier.sql | 1 - .../0032_create_ezcontentclass_attribute.sql | 1 - ...ass_attribute_ezcontentclass_attr_ccid.sql | 1 - ...lass_attribute_ezcontentclass_attr_dts.sql | 1 - ...035_create_ezcontentclass_attribute_ml.sql | 1 - ...ml_ezcontentclass_attribute_ml_lang_fk.sql | 1 - .../0037_create_ezcontentclass_classgroup.sql | 1 - .../0038_create_ezcontentclass_name.sql | 1 - .../0039_create_ezcontentclassgroup.sql | 1 - .../sqlite/0040_create_ezcontentobject.sql | 1 - ...zcontentobject_ezcontentobject_classid.sql | 1 - ..._ezcontentobject_ezcontentobject_lmask.sql | 1 - ...ex_ezcontentobject_ezcontentobject_pub.sql | 1 - ...zcontentobject_ezcontentobject_section.sql | 1 - ...tobject_ezcontentobject_currentversion.sql | 1 - ..._ezcontentobject_ezcontentobject_owner.sql | 1 - ...ezcontentobject_ezcontentobject_status.sql | 1 - ...ontentobject_ezcontentobject_remote_id.sql | 1 - .../0049_create_ezcontentobject_attribute.sql | 1 - ...ntobject_attribute_co_id_ver_lang_code.sql | 1 - ...attribute_ezcontentobject_classattr_id.sql | 1 - ...ontentobject_attribute_sort_key_string.sql | 1 - ...zcontentobject_attribute_language_code.sql | 1 - ...ezcontentobject_attribute_sort_key_int.sql | 1 - ...te_ezcontentobject_attribute_co_id_ver.sql | 1 - .../0056_create_ezcontentobject_link.sql | 1 - ...zcontentobject_link_ezco_link_to_co_id.sql | 1 - ...ex_ezcontentobject_link_ezco_link_from.sql | 1 - ..._ezcontentobject_link_ezco_link_cca_id.sql | 1 - .../0060_create_ezcontentobject_name.sql | 1 - ...ject_name_ezcontentobject_name_lang_id.sql | 1 - ...bject_name_ezcontentobject_name_cov_id.sql | 1 - ...tobject_name_ezcontentobject_name_name.sql | 1 - .../0064_create_ezcontentobject_trash.sql | 1 - ...contentobject_trash_ezcobj_trash_depth.sql | 1 - ...entobject_trash_ezcobj_trash_p_node_id.sql | 1 - ...ntobject_trash_ezcobj_trash_path_ident.sql | 1 - ...contentobject_trash_ezcobj_trash_co_id.sql | 1 - ...ct_trash_ezcobj_trash_modified_subnode.sql | 1 - ...zcontentobject_trash_ezcobj_trash_path.sql | 1 - .../0071_create_ezcontentobject_version.sql | 1 - ...ntobject_version_ezcobj_version_status.sql | 1 - ...ject_version_idx_object_version_objver.sql | 1 - ...t_version_ezcontobj_version_obj_status.sql | 1 - ...ject_version_ezcobj_version_creator_id.sql | 1 - .../sql/sqlite/0076_create_ezdfsfile.sql | 1 - ...7_index_ezdfsfile_ezdfsfile_name_trunk.sql | 1 - ...index_ezdfsfile_ezdfsfile_expired_name.sql | 1 - .../0079_index_ezdfsfile_ezdfsfile_name.sql | 1 - .../0080_index_ezdfsfile_ezdfsfile_mtime.sql | 1 - .../sql/sqlite/0081_create_ezgmaplocation.sql | 1 - ..._ezgmaplocation_latitude_longitude_key.sql | 1 - .../sql/sqlite/0083_create_ezimagefile.sql | 1 - ...084_index_ezimagefile_ezimagefile_file.sql | 1 - ...085_index_ezimagefile_ezimagefile_coid.sql | 1 - .../sql/sqlite/0086_create_ezkeyword.sql | 1 - ...0087_index_ezkeyword_ezkeyword_keyword.sql | 1 - .../0088_create_ezkeyword_attribute_link.sql | 1 - ...ttribute_link_ezkeyword_attr_link_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_kid_oaid.sql | 1 - ...bute_link_ezkeyword_attr_link_oaid_ver.sql | 1 - .../sql/sqlite/0092_create_ezmedia.sql | 1 - .../sqlite/0093_create_eznode_assignment.sql | 1 - ...e_assignment_eznode_assignment_is_main.sql | 1 - ..._assignment_eznode_assignment_coid_cov.sql | 1 - ...signment_eznode_assignment_parent_node.sql | 1 - ...ssignment_eznode_assignment_co_version.sql | 1 - .../sql/sqlite/0098_create_eznotification.sql | 1 - ...cation_eznotification_owner_is_pending.sql | 1 - ...ex_eznotification_eznotification_owner.sql | 1 - .../sql/sqlite/0101_create_ezpackage.sql | 1 - .../sql/sqlite/0102_create_ezpolicy.sql | 1 - .../0103_index_ezpolicy_ezpolicy_role_id.sql | 1 - ...04_index_ezpolicy_ezpolicy_original_id.sql | 1 - .../0105_create_ezpolicy_limitation.sql | 1 - ...06_index_ezpolicy_limitation_policy_id.sql | 1 - .../0107_create_ezpolicy_limitation_value.sql | 1 - ...on_value_ezpolicy_limit_value_limit_id.sql | 1 - ...on_value_ezpolicy_limitation_value_val.sql | 1 - .../sql/sqlite/0110_create_ezpreferences.sql | 1 - ...zpreferences_ezpreferences_user_id_idx.sql | 1 - ...index_ezpreferences_ezpreferences_name.sql | 1 - .../sql/sqlite/0113_create_ezrole.sql | 1 - .../0114_create_ezsearch_object_word_link.sql | 1 - ..._link_ezsearch_object_word_link_object.sql | 1 - ...k_ezsearch_object_word_link_identifier.sql | 1 - ...zsearch_object_word_link_integer_value.sql | 1 - ...rd_link_ezsearch_object_word_link_word.sql | 1 - ...nk_ezsearch_object_word_link_frequency.sql | 1 - .../sql/sqlite/0120_create_ezsearch_word.sql | 1 - ...dex_ezsearch_word_ezsearch_word_word_i.sql | 1 - ..._ezsearch_word_ezsearch_word_obj_count.sql | 1 - .../sql/sqlite/0123_create_ezsection.sql | 1 - .../sql/sqlite/0124_create_ezsite_data.sql | 1 - .../sql/sqlite/0125_create_ezurl.sql | 1 - .../sql/sqlite/0126_index_ezurl_ezurl_url.sql | 1 - .../sqlite/0127_create_ezurl_object_link.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_coa_id.sql | 1 - ...ndex_ezurl_object_link_ezurl_ol_url_id.sql | 1 - ...ezurl_object_link_ezurl_ol_coa_version.sql | 1 - ..._ezurl_object_link_ezurl_ol_coa_id_cav.sql | 1 - .../sql/sqlite/0132_create_ezurlalias.sql | 1 - ...index_ezurlalias_ezurlalias_source_md5.sql | 1 - ..._index_ezurlalias_ezurlalias_wcard_fwd.sql | 1 - ...ex_ezurlalias_ezurlalias_forward_to_id.sql | 1 - ...ex_ezurlalias_ezurlalias_imp_wcard_fwd.sql | 1 - ...index_ezurlalias_ezurlalias_source_url.sql | 1 - ...38_index_ezurlalias_ezurlalias_desturl.sql | 1 - .../sql/sqlite/0139_create_ezurlalias_ml.sql | 1 - ...zurlalias_ml_ezurlalias_ml_actt_org_al.sql | 1 - ..._ezurlalias_ml_ezurlalias_ml_text_lang.sql | 1 - ...lalias_ml_ezurlalias_ml_par_act_id_lnk.sql | 1 - ...zurlalias_ml_ezurlalias_ml_par_lnk_txt.sql | 1 - ...ex_ezurlalias_ml_ezurlalias_ml_act_org.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_text.sql | 1 - ...index_ezurlalias_ml_ezurlalias_ml_link.sql | 1 - ...7_index_ezurlalias_ml_ezurlalias_ml_id.sql | 1 - .../sqlite/0148_create_ezurlalias_ml_incr.sql | 1 - .../sql/sqlite/0149_create_ezurlwildcard.sql | 1 - .../sqlite/0150_create_ezuser_accountkey.sql | 1 - .../0151_index_ezuser_accountkey_hash_key.sql | 1 - .../sql/sqlite/0152_create_ezuser_role.sql | 1 - ..._index_ezuser_role_ezuser_role_role_id.sql | 1 - ...user_role_ezuser_role_contentobject_id.sql | 1 - .../sql/sqlite/0155_create_ezuser_setting.sql | 1 - .../sql/sqlite/0156_create_ibexa_setting.sql | 2 - ...7_index_ibexa_setting_ibexa_setting_id.sql | 1 - ...setting_ibexa_setting_group_identifier.sql | 1 - .../sqlite/0159_create_ibexa_token_type.sql | 1 - ...exa_token_type_ibexa_token_type_unique.sql | 1 - .../sql/sqlite/0161_create_ibexa_token.sql | 1 - ...index_ibexa_token_IDX_B5412887C54C8C93.sql | 1 - ...3_index_ibexa_token_ibexa_token_unique.sql | 1 - .../sqlite/data/0001_insert_ezcobj_state.sql | 3 - .../data/0002_insert_ezcobj_state_group.sql | 2 - ...003_insert_ezcobj_state_group_language.sql | 2 - .../0004_insert_ezcobj_state_language.sql | 3 - .../data/0005_insert_ezcobj_state_link.sql | 13 - .../data/0006_insert_ezcontent_language.sql | 2 - .../data/0007_insert_ezcontentclass.sql | 7 - .../0008_insert_ezcontentclass_attribute.sql | 25 - .../0009_insert_ezcontentclass_classgroup.sql | 7 - .../data/0010_insert_ezcontentclass_name.sql | 7 - .../data/0011_insert_ezcontentclassgroup.sql | 4 - .../data/0012_insert_ezcontentobject.sql | 13 - .../0013_insert_ezcontentobject_attribute.sql | 41 - .../data/0014_insert_ezcontentobject_name.sql | 13 - .../data/0015_insert_ezcontentobject_tree.sql | 14 - .../0016_insert_ezcontentobject_version.sql | 13 - .../data/0017_insert_eznode_assignment.sql | 13 - .../sql/sqlite/data/0018_insert_ezpolicy.sql | 9 - .../data/0019_insert_ezpolicy_limitation.sql | 7 - .../0020_insert_ezpolicy_limitation_value.sql | 8 - .../sql/sqlite/data/0021_insert_ezrole.sql | 5 - .../sql/sqlite/data/0022_insert_ezsection.sql | 4 - .../sqlite/data/0023_insert_ezsite_data.sql | 2 - .../sqlite/data/0024_insert_ezurlalias.sql | 13 - .../sqlite/data/0025_insert_ezurlalias_ml.sql | 26 - .../data/0026_insert_ezurlalias_ml_incr.sql | 4 - .../sql/sqlite/data/0027_insert_ezuser.sql | 3 - .../sqlite/data/0028_insert_ezuser_role.sql | 7 - .../data/0029_insert_ezuser_setting.sql | 3 - .../sqlite/data/0030_insert_ezpreferences.sql | 2 - 511 files changed, 1270 insertions(+), 2286 deletions(-) delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql delete mode 100644 src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index bd312b5608..f3ebfa20a9 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -9,19 +9,14 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion; +use Doctrine\DBAL\Platforms\MySqlPlatform; +use Doctrine\DBAL\Platforms\PostgreSqlPlatform; +use Doctrine\DBAL\Platforms\SqlitePlatform; +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -/** - * Imports the core Ibexa bootstrap data (default languages, sections, roles, ...), used by - * {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} to install a fresh database. - * - * Tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (see services.yml) so - * it is discoverable by the Doctrine Migrations pipeline like any other Ibexa migration. Its target version and - * creation date place it right after {@see InstallSchemaMigration} in {@see \Ibexa\Bundle\DoctrineMigrations\Comparator\IbexaMigrationComparator} - * order, since it inserts data into the tables that migration creates. - */ -final class ImportDataMigration extends AbstractVersion implements IbexaMigrationInterface +final class ImportDataMigration extends AbstractMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -38,8 +33,870 @@ public static function getCreationDate(): DateTimeImmutable return new DateTimeImmutable('2026-07-16 00:00:01'); } - protected function getYamlFilePath(): string + public function up(Schema $schema): void { - return __DIR__ . '/../Resources/migrations/import_data.yaml'; + if ($this->platform instanceof MySqlPlatform) { + $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, \'not_locked\', 3, 0), + (2, 2, 2, \'locked\', 3, 1)'); + $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,\'ez_lock\',3)'); + $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,\'\',3,\'Lock\',2)'); + $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,\'\',3,\'Not locked\'), + (2,\'\',3,\'Locked\')'); + $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1)'); + $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); + $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,\'<short_name|name>\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), + (0,\'<short_title|title>\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<name>\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<first_name> <last_name>\',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<name>\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<name>\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); + $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), + (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), + (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); + $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, \'Content\'), + (2, 0, 1, \'Content\'), + (3, 0, 2, \'Users\'), + (4, 0, 2, \'Users\'), + (5, 0, 3, \'Media\'), + (12, 0, 3, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), + (2, 0, 3, \'eng-GB\', \'Article\'), + (3, 0, 3, \'eng-GB\', \'User group\'), + (4, 0, 3, \'eng-GB\', \'User\'), + (5, 0, 3, \'eng-GB\', \'Image\'), + (12, 0, 3, \'eng-GB\', \'File\')'); + $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), + (1031216941, 14, 2, 1033922113, 14, \'Users\'), + (1032009743, 14, 3, 1033922120, 14, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), + (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), + (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), + (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), + (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), + (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), + (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), + (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), + (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), + (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), + (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), + (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); + $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,119,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), + (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), + (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), + (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), + (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), + (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), + (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), + (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), + (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), + (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), + (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), + (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), + (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), + (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), + (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), + (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), + (0,119,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), + (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), + (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), + (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), + (0,156,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), + (0,156,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), + (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), + (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), + (0,119,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), + (0,156,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), + (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), + (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), + (0,119,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), + (0,156,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), + (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), + (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), + (0,119,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), + (0,156,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), + (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), + (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), + (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), + (0,180,14,0,0,\'<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\\n<ezimage serial_number=\\"1\\" is_valid=\\"\\" filename=\\"\\" suffix=\\"\\" basename=\\"\\" dirpath=\\"\\" url=\\"\\" original_filename=\\"\\" mime_type=\\"\\" width=\\"\\" height=\\"\\" alternative_text=\\"\\" alias_key=\\"1293033771\\" timestamp=\\"1301057722\\"><original attribute_id=\\"180\\" attribute_version=\\"3\\" attribute_language=\\"eng-GB\\"/></ezimage>\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); + $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), + (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), + (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), + (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), + (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), + (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), + (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), + (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), + (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), + (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), + (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), + (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); + $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); + $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); + $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), + (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), + (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), + (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), + (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), + (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), + (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), + (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), + (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), + (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), + (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), + (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); + $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES (\'*\',317,\'content\',0,3), + (\'login\',319,\'user\',0,3), + (\'read\',328,\'content\',0,1), + (\'login\',331,\'user\',0,1), + (\'*\',332,\'*\',0,2), + (\'read\',333,\'content\',0,4), + (\'view_embed\',334,\'content\',0,1), + (\'*\',340,\'url\',0,3)'); + $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,\'Section\',328), + (252,\'Section\',329), + (253,\'SiteAccess\',331), + (254,\'Class\',333), + (255,\'Owner\',333), + (256,\'Class\',334)'); + $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,\'1\'), + (478,252,\'1\'), + (479,253,\'1766001124\'), + (480,254,\'4\'), + (481,255,\'1\'), + (482,256,\'5\'), + (483,256,\'12\')'); + $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,\'Anonymous\',\'\',0), + (2,0,\'Administrator\',\'0\',0), + (3,0,\'Editor\',\'\',0), + (4,0,\'Member\',\'\',0)'); + $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), + (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), + (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); + $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) +VALUES (\'ibexa-release\',\'4.6\')'); + $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), + (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), + (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), + (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), + (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), + (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), + (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), + (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), + (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), + (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), + (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), + (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); + $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), + (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), + (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), + (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), + (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), + (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), + (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), + (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), + (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), + (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), + (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), + (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), + (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), + (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), + (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), + (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), + (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), + (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), + (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); + $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37)'); + $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), + (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); + $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,\'\',\'\',1), + (42,31,\'\',\'\',1), + (13,32,\'Subtree\',\'/1/2/\',3), + (13,33,\'Subtree\',\'/1/43/\',3), + (12,34,\'\',\'\',2), + (13,35,\'\',\'\',4)'); + $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14)'); + $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + } elseif ($this->platform instanceof PostgreSqlPlatform) { + $this->addSql('INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, \'not_locked\', 3, 0), + (2, 2, 2, \'locked\', 3, 1)'); + $this->addSql('INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, \'ez_lock\', 3)'); + $this->addSql('INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, \'\', 3, \'Lock\', 2)'); + $this->addSql('INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,\'\',3,\'Not locked\'), + (2,\'\',3,\'Locked\')'); + $this->addSql('INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1)'); + $this->addSql('INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); + $this->addSql('INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,\'<short_name|name>\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:6:"Folder";}\',1,1,NULL,0), + (0,\'<short_title|title>\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'<name>\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'<first_name> <last_name>\',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'<name>\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), + (1,\'<name>\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0)'); + $this->addSql('INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,FALSE,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:4:"Name";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}\',0), + (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,TRUE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,FALSE,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:17:"Short description";}\',0), + (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,FALSE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}\',0), + (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,FALSE,6,NULL,NULL,\'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,FALSE,7,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,FALSE,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:10:"Short name";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,FALSE,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:11:"Description";}\',0), + (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}\',0), + (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,TRUE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0)'); + $this->addSql('INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,\'Content\'), + (2,0,1,\'Content\'), + (3,0,2,\'Users\'), + (4,0,2,\'Users\'), + (5,0,3,\'Media\'), + (12,0,3,\'Media\')'); + $this->addSql('INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,\'eng-GB\',\'Folder\'), + (2,0,3,\'eng-GB\',\'Article\'), + (3,0,3,\'eng-GB\',\'User group\'), + (4,0,3,\'eng-GB\',\'User\'), + (5,0,3,\'eng-GB\',\'Image\'), + (12,0,3,\'eng-GB\',\'File\')'); + $this->addSql('INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), + (1031216941, 14, 2, 1033922113, 14, \'Users\'), + (1032009743, 14, 3, 1033922120, 14, \'Media\')'); + $this->addSql('INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), + (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), + (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), + (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), + (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), + (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), + (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), + (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), + (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), + (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), + (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), + (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); + $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,119,1,NULL,NULL,E\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), + (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), + (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), + (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), + (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), + (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), + (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), + (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), + (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), + (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), + (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), + (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), + (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), + (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), + (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), + (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), + (0,119,41,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), + (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), + (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), + (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), + (0,156,1,NULL,NULL,E\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), + (0,156,41,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), + (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), + (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), + (0,119,49,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), + (0,156,49,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), + (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), + (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), + (0,119,50,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), + (0,156,50,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), + (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), + (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), + (0,119,51,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), + (0,156,51,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), + (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), + (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), + (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), + (0,180,14,0,0,E\'<?xml version="1.0" encoding="utf-8"?>\\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); + $this->addSql('INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), + (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), + (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), + (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), + (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), + (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), + (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), + (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), + (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), + (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), + (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), + (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); + $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); + $this->addSql('INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); + $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), + (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), + (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), + (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), + (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), + (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), + (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), + (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), + (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), + (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), + (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), + (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); + $this->addSql('INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES (\'*\',317,\'content\',0,3), + (\'login\',319,\'user\',0,3), + (\'read\',328,\'content\',0,1), + (\'login\',331,\'user\',0,1), + (\'*\',332,\'*\',0,2), + (\'read\',333,\'content\',0,4), + (\'view_embed\',334,\'content\',0,1), + (\'*\',340,\'url\',0,3)'); + $this->addSql('INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,\'Section\',328), + (252,\'Section\',329), + (253,\'SiteAccess\',331), + (254,\'Class\',333), + (255,\'Owner\',333), + (256,\'Class\',334)'); + $this->addSql('INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,\'1\'), + (478,252,\'1\'), + (479,253,\'1766001124\'), + (480,254,\'4\'), + (481,255,\'1\'), + (482,256,\'5\'), + (483,256,\'12\')'); + $this->addSql('INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,\'Anonymous\',\'\',0), + (2,0,\'Administrator\',\'0\',0), + (3,0,\'Editor\',\'\',0), + (4,0,\'Member\',\'\',0)'); + $this->addSql('INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), + (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), + (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); + $this->addSql('INSERT INTO "ezsite_data" ("name", "value") +VALUES (\'ibexa-release\',\'4.6\')'); + $this->addSql('INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), + (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), + (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), + (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), + (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), + (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), + (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), + (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), + (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), + (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), + (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), + (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); + $this->addSql('INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), + (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), + (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), + (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), + (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), + (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), + (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), + (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), + (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), + (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), + (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), + (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), + (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), + (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), + (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), + (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), + (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), + (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), + (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); + $this->addSql('INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37)'); + $this->addSql('INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), + (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); + $this->addSql('INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,\'\',\'\',1), + (42,31,\'\',\'\',1), + (13,32,\'Subtree\',\'/1/2/\',3), + (13,33,\'Subtree\',\'/1/43/\',3), + (12,34,\'\',\'\',2), + (13,35,\'\',\'\',4)'); + $this->addSql('INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14)'); + $this->addSql('INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM "ezuser" u WHERE u.login = \'admin\''); + $this->addSql('-- Set proper sequence values after inserting data +SELECT SETVAL(\'ezcobj_state_group_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group'); + $this->addSql('SELECT SETVAL(\'ezcobj_state_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state'); + $this->addSql('SELECT SETVAL(\'ezcontentbrowsebookmark_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark'); + $this->addSql('SELECT SETVAL(\'ezcontentclass_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute'); + $this->addSql('SELECT SETVAL(\'ezcontentclass_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass'); + $this->addSql('SELECT SETVAL(\'ezcontentclassgroup_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_tree_node_id_seq\', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree'); + $this->addSql('SELECT SETVAL(\'ezcontentobject_version_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version'); + $this->addSql('SELECT SETVAL(\'ezimagefile_id_seq\', COALESCE(MAX(id), 1) ) FROM ezimagefile'); + $this->addSql('SELECT SETVAL(\'ezkeyword_attribute_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link'); + $this->addSql('SELECT SETVAL(\'ezkeyword_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword'); + $this->addSql('SELECT SETVAL(\'eznode_assignment_id_seq\', COALESCE(MAX(id), 1) ) FROM eznode_assignment'); + $this->addSql('SELECT SETVAL(\'eznotification_id_seq\', COALESCE(MAX(id), 1) ) FROM eznotification'); + $this->addSql('SELECT SETVAL(\'ezpackage_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpackage'); + $this->addSql('SELECT SETVAL(\'ezpolicy_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy'); + $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation'); + $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_value_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value'); + $this->addSql('SELECT SETVAL(\'ezpreferences_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpreferences'); + $this->addSql('SELECT SETVAL(\'ezrole_id_seq\', COALESCE(MAX(id), 1) ) FROM ezrole'); + $this->addSql('SELECT SETVAL(\'ezsearch_object_word_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link'); + $this->addSql('SELECT SETVAL(\'ezsearch_word_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_word'); + $this->addSql('SELECT SETVAL(\'ezsection_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsection'); + $this->addSql('SELECT SETVAL(\'ezurl_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurl'); + $this->addSql('SELECT SETVAL(\'ezurlalias_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias'); + $this->addSql('SELECT SETVAL(\'ezurlalias_ml_incr_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr'); + $this->addSql('SELECT SETVAL(\'ezurlwildcard_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlwildcard'); + $this->addSql('SELECT SETVAL(\'ezuser_accountkey_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey'); + $this->addSql('SELECT SETVAL(\'ezuser_role_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_role'); + } elseif ($this->platform instanceof SqlitePlatform) { + $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, \'not_locked\', 3, 0), + (2, 2, 2, \'locked\', 3, 1)'); + $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,\'ez_lock\',3)'); + $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,\'\',3,\'Lock\',2)'); + $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,\'\',3,\'Not locked\'), + (2,\'\',3,\'Locked\')'); + $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1)'); + $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); + $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,\'<short_name|name>\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), + (0,\'<short_title|title>\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<name>\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<first_name> <last_name>\',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<name>\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), + (1,\'<name>\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); + $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), + (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), + (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), + (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), + (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); + $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, \'Content\'), + (2, 0, 1, \'Content\'), + (3, 0, 2, \'Users\'), + (4, 0, 2, \'Users\'), + (5, 0, 3, \'Media\'), + (12, 0, 3, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), + (2, 0, 3, \'eng-GB\', \'Article\'), + (3, 0, 3, \'eng-GB\', \'User group\'), + (4, 0, 3, \'eng-GB\', \'User\'), + (5, 0, 3, \'eng-GB\', \'Image\'), + (12, 0, 3, \'eng-GB\', \'File\')'); + $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), + (1031216941, 14, 2, 1033922113, 14, \'Users\'), + (1032009743, 14, 3, 1033922120, 14, \'Media\')'); + $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), + (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), + (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), + (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), + (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), + (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), + (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), + (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), + (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), + (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), + (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), + (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); + $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,119,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), + (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), + (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), + (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), + (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), + (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), + (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), + (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), + (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), + (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), + (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), + (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), + (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), + (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), + (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), + (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), + (0,119,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), + (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), + (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), + (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), + (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), + (0,156,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), + (0,156,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), + (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), + (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), + (0,119,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), + (0,156,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), + (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), + (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), + (0,119,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), + (0,156,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), + (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), + (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), + (0,119,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), + (0,156,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), + (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), + (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), + (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), + (0,180,14,0,0,\'<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\\n<ezimage serial_number=\\"1\\" is_valid=\\"\\" filename=\\"\\" suffix=\\"\\" basename=\\"\\" dirpath=\\"\\" url=\\"\\" original_filename=\\"\\" mime_type=\\"\\" width=\\"\\" height=\\"\\" alternative_text=\\"\\" alias_key=\\"1293033771\\" timestamp=\\"1301057722\\"><original attribute_id=\\"180\\" attribute_version=\\"3\\" attribute_language=\\"eng-GB\\"/></ezimage>\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); + $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), + (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), + (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), + (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), + (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), + (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), + (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), + (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), + (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), + (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), + (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), + (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); + $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); + $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); + $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), + (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), + (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), + (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), + (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), + (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), + (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), + (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), + (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), + (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), + (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), + (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); + $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES (\'*\',317,\'content\',0,3), + (\'login\',319,\'user\',0,3), + (\'read\',328,\'content\',0,1), + (\'login\',331,\'user\',0,1), + (\'*\',332,\'*\',0,2), + (\'read\',333,\'content\',0,4), + (\'view_embed\',334,\'content\',0,1), + (\'*\',340,\'url\',0,3)'); + $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,\'Section\',328), + (252,\'Section\',329), + (253,\'SiteAccess\',331), + (254,\'Class\',333), + (255,\'Owner\',333), + (256,\'Class\',334)'); + $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,\'1\'), + (478,252,\'1\'), + (479,253,\'1766001124\'), + (480,254,\'4\'), + (481,255,\'1\'), + (482,256,\'5\'), + (483,256,\'12\')'); + $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,\'Anonymous\',\'\',0), + (2,0,\'Administrator\',\'0\',0), + (3,0,\'Editor\',\'\',0), + (4,0,\'Member\',\'\',0)'); + $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), + (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), + (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); + $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) +VALUES (\'ibexa-release\',\'4.6\')'); + $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), + (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), + (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), + (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), + (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), + (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), + (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), + (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), + (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), + (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), + (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), + (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); + $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), + (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), + (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), + (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), + (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), + (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), + (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), + (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), + (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), + (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), + (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), + (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), + (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), + (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), + (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), + (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), + (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), + (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), + (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), + (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), + (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), + (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); + $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37)'); + $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), + (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); + $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,\'\',\'\',1), + (42,31,\'\',\'\',1), + (13,32,\'Subtree\',\'/1/2/\',3), + (13,33,\'Subtree\',\'/1/43/\',3), + (12,34,\'\',\'\',2), + (13,35,\'\',\'\',4)'); + $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14)'); + $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + } else { + $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + } } } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index f58e4c8860..f10165ccc5 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -9,19 +9,14 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractVersion; +use Doctrine\DBAL\Platforms\MySqlPlatform; +use Doctrine\DBAL\Platforms\PostgreSqlPlatform; +use Doctrine\DBAL\Platforms\SqlitePlatform; +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -/** - * Creates the core Ibexa database schema, used by {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} - * to install a fresh database. - * - * Tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} (see services.yml) so - * it is discoverable by the Doctrine Migrations pipeline like any other Ibexa migration. It is also run directly - * by {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller}, which records its execution in the same - * migrations versioning table so it isn't re-applied by a later `doctrine:migrations:migrate` run. - */ -final class InstallSchemaMigration extends AbstractVersion implements IbexaMigrationInterface +final class InstallSchemaMigration extends AbstractMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -38,8 +33,400 @@ public static function getCreationDate(): DateTimeImmutable return new DateTimeImmutable('2026-07-16 00:00:00'); } - protected function getYamlFilePath(): string + public function up(Schema $schema): void { - return __DIR__ . '/../Resources/migrations/install_schema.yaml'; + if ($this->platform instanceof MySqlPlatform) { + $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT \'0\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT \'0\' NOT NULL, status TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE'); + $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE'); + $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE'); + } elseif ($this->platform instanceof PostgreSqlPlatform) { + $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); + $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); + $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); + $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); + $this->addSql('CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id))'); + $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); + $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); + $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); + $this->addSql('CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version))'); + $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); + $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'false\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id))'); + $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); + $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); + $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); + $this->addSql('CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); + $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); + $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); + $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); + $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); + $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); + $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); + $this->addSql('CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); + $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); + $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); + $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); + $this->addSql('CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); + $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); + $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); + $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); + $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); + $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); + $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); + $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); + $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); + $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); + $this->addSql('CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); + $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); + $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); + $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); + $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'false\' NOT NULL, status BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); + $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); + $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); + $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); + $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); + $this->addSql('CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); + $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); + $this->addSql('CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); + $this->addSql('CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); + $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); + $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); + $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); + $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); + $this->addSql('CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'true\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); + $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); + $this->addSql('CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); + $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); + $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); + $this->addSql('CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); + $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); + $this->addSql('CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); + $this->addSql('CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); + $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); + $this->addSql('CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name))'); + $this->addSql('CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); + $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); + $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); + $this->addSql('CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); + $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); + $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); + $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); + $this->addSql('CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); + $this->addSql('CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); + $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); + $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id))'); + $this->addSql('CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); + $this->addSql('CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); + $this->addSql('CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + } elseif ($this->platform instanceof SqlitePlatform) { + $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); + $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); + $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); + $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); + $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); + $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); + $this->addSql('CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); + $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); + $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); + $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); + $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); + $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); + $this->addSql('CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); + $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'0\' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL)'); + $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); + $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); + $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); + $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); + $this->addSql('CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'0\' NOT NULL)'); + $this->addSql('CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT \'0\' NOT NULL)'); + $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); + $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); + $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); + $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); + $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); + $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); + $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); + $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); + $this->addSql('CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); + $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); + $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); + $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); + $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); + $this->addSql('CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); + $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); + $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); + $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); + $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); + $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); + $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); + $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); + $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); + $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); + $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); + $this->addSql('CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0)'); + $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); + $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); + $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); + $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); + $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'0\' NOT NULL, status BOOLEAN DEFAULT \'0\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); + $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); + $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); + $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); + $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); + $this->addSql('CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL)'); + $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); + $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); + $this->addSql('CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); + $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); + $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); + $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); + $this->addSql('CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); + $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); + $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); + $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); + $this->addSql('CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL)'); + $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); + $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); + $this->addSql('CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL)'); + $this->addSql('CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); + $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INTEGER DEFAULT NULL)'); + $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); + $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); + $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); + $this->addSql('CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); + $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); + $this->addSql('CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0)'); + $this->addSql('CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); + $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); + $this->addSql('CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); + $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); + $this->addSql('CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\')'); + $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name))'); + $this->addSql('CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url CLOB DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); + $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); + $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); + $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); + $this->addSql('CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL)'); + $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); + $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); + $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); + $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); + $this->addSql('CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent)'); + $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original)'); + $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); + $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); + $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)'); + $this->addSql('CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); + $this->addSql('CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INTEGER DEFAULT NULL)'); + $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); + $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); + $this->addSql('CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id))'); + $this->addSql('CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) +)'); + $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); + $this->addSql('CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); + $this->addSql('CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'0\' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); + $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); + } else { + $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + } } } diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml deleted file mode 100644 index d7c5b372ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml +++ /dev/null @@ -1,243 +0,0 @@ -up: - - file: 'sql/mysql/data/0001_insert_ezcobj_state.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0001_insert_ezcobj_state.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0001_insert_ezcobj_state.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0002_insert_ezcobj_state_group.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0002_insert_ezcobj_state_group.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0002_insert_ezcobj_state_group.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0003_insert_ezcobj_state_group_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0004_insert_ezcobj_state_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0004_insert_ezcobj_state_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0004_insert_ezcobj_state_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0005_insert_ezcobj_state_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0005_insert_ezcobj_state_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0005_insert_ezcobj_state_link.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0006_insert_ezcontent_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0006_insert_ezcontent_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0006_insert_ezcontent_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0007_insert_ezcontentclass.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0007_insert_ezcontentclass.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0007_insert_ezcontentclass.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0008_insert_ezcontentclass_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0010_insert_ezcontentclass_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0010_insert_ezcontentclass_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0010_insert_ezcontentclass_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0011_insert_ezcontentclassgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0011_insert_ezcontentclassgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0011_insert_ezcontentclassgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0012_insert_ezcontentobject.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0012_insert_ezcontentobject.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0012_insert_ezcontentobject.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0013_insert_ezcontentobject_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0014_insert_ezcontentobject_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0014_insert_ezcontentobject_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0014_insert_ezcontentobject_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0015_insert_ezcontentobject_tree.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0015_insert_ezcontentobject_tree.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0015_insert_ezcontentobject_tree.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0016_insert_ezcontentobject_version.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0016_insert_ezcontentobject_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0016_insert_ezcontentobject_version.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0017_insert_eznode_assignment.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0017_insert_eznode_assignment.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0017_insert_eznode_assignment.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0018_insert_ezpolicy.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0018_insert_ezpolicy.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0018_insert_ezpolicy.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0019_insert_ezpolicy_limitation.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0019_insert_ezpolicy_limitation.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0019_insert_ezpolicy_limitation.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0021_insert_ezrole.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0021_insert_ezrole.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0021_insert_ezrole.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0022_insert_ezsection.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0022_insert_ezsection.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0022_insert_ezsection.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0023_insert_ezsite_data.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0023_insert_ezsite_data.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0023_insert_ezsite_data.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0024_insert_ezurlalias.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0024_insert_ezurlalias.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0024_insert_ezurlalias.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0025_insert_ezurlalias_ml.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0025_insert_ezurlalias_ml.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0025_insert_ezurlalias_ml.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0027_insert_ezuser.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0027_insert_ezuser.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0027_insert_ezuser.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0028_insert_ezuser_role.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0028_insert_ezuser_role.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0028_insert_ezuser_role.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0029_insert_ezuser_setting.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0029_insert_ezuser_setting.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0029_insert_ezuser_setting.sql' - platforms: 'sqlite' - - file: 'sql/mysql/data/0030_insert_ezpreferences.sql' - platforms: 'mysql' - - file: 'sql/postgresql/data/0030_insert_ezpreferences.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/data/0030_insert_ezpreferences.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0046_setval_eznotification_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0047_setval_ezpackage_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0052_setval_ezrole_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0055_setval_ezsection_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0056_setval_ezurl_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql' - platforms: 'postgresql' - - file: 'sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql' - platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml deleted file mode 100644 index 1aca414724..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml +++ /dev/null @@ -1,773 +0,0 @@ -up: - - file: 'sql/mysql/0001_create_ezbinaryfile.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0001_create_ezbinaryfile.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0001_create_ezbinaryfile.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0002_create_ezcobj_state.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0002_create_ezcobj_state.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0002_create_ezcobj_state.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0003_create_ezcobj_state_group.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0006_create_ezcobj_state_group.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0006_create_ezcobj_state_group.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0004_create_ezcobj_state_group_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0009_create_ezcobj_state_group_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0009_create_ezcobj_state_group_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0005_create_ezcobj_state_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0010_create_ezcobj_state_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0010_create_ezcobj_state_language.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0006_create_ezcobj_state_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0011_create_ezcobj_state_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0011_create_ezcobj_state_link.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0007_create_ezcontent_language.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0012_create_ezcontent_language.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0012_create_ezcontent_language.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0008_create_ezuser.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0014_create_ezuser.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0014_create_ezuser.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0015_index_ezuser_ezuser_login.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0015_index_ezuser_ezuser_login.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0009_create_ezcontentobject_tree.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0016_create_ezcontentobject_tree.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0016_create_ezcontentobject_tree.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0010_create_ezcontentbrowsebookmark.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0025_create_ezcontentbrowsebookmark.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0025_create_ezcontentbrowsebookmark.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0011_create_ezcontentclass.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0029_create_ezcontentclass.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0029_create_ezcontentclass.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0012_create_ezcontentclass_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0032_create_ezcontentclass_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0032_create_ezcontentclass_attribute.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0013_create_ezcontentclass_attribute_ml.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0014_create_ezcontentclass_classgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0037_create_ezcontentclass_classgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0037_create_ezcontentclass_classgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0015_create_ezcontentclass_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0038_create_ezcontentclass_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0038_create_ezcontentclass_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0016_create_ezcontentclassgroup.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0039_create_ezcontentclassgroup.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0039_create_ezcontentclassgroup.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0017_create_ezcontentobject.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0040_create_ezcontentobject.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0040_create_ezcontentobject.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0018_create_ezcontentobject_attribute.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0049_create_ezcontentobject_attribute.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0049_create_ezcontentobject_attribute.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0019_create_ezcontentobject_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0056_create_ezcontentobject_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0056_create_ezcontentobject_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0020_create_ezcontentobject_name.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0060_create_ezcontentobject_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0060_create_ezcontentobject_name.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0021_create_ezcontentobject_trash.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0064_create_ezcontentobject_trash.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0064_create_ezcontentobject_trash.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0022_create_ezcontentobject_version.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0071_create_ezcontentobject_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0071_create_ezcontentobject_version.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0023_create_ezdfsfile.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0076_create_ezdfsfile.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0076_create_ezdfsfile.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0024_create_ezgmaplocation.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0081_create_ezgmaplocation.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0081_create_ezgmaplocation.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0025_create_ezimagefile.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0083_create_ezimagefile.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0083_create_ezimagefile.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0026_create_ezkeyword.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0086_create_ezkeyword.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0086_create_ezkeyword.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0027_create_ezkeyword_attribute_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0088_create_ezkeyword_attribute_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0088_create_ezkeyword_attribute_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0028_create_ezmedia.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0092_create_ezmedia.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0092_create_ezmedia.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0029_create_eznode_assignment.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0093_create_eznode_assignment.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0093_create_eznode_assignment.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0030_create_eznotification.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0098_create_eznotification.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0098_create_eznotification.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0100_index_eznotification_eznotification_owner.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0100_index_eznotification_eznotification_owner.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0031_create_ezpackage.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0101_create_ezpackage.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0101_create_ezpackage.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0032_create_ezpolicy.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0102_create_ezpolicy.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0102_create_ezpolicy.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0033_create_ezpolicy_limitation.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0105_create_ezpolicy_limitation.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0105_create_ezpolicy_limitation.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0034_create_ezpolicy_limitation_value.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0107_create_ezpolicy_limitation_value.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0107_create_ezpolicy_limitation_value.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0035_create_ezpreferences.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0110_create_ezpreferences.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0110_create_ezpreferences.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0036_create_ezrole.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0113_create_ezrole.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0113_create_ezrole.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0037_create_ezsearch_object_word_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0114_create_ezsearch_object_word_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0114_create_ezsearch_object_word_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0038_create_ezsearch_word.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0120_create_ezsearch_word.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0120_create_ezsearch_word.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0039_create_ezsection.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0123_create_ezsection.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0123_create_ezsection.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0040_create_ezsite_data.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0124_create_ezsite_data.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0124_create_ezsite_data.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0041_create_ezurl.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0125_create_ezurl.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0125_create_ezurl.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0126_index_ezurl_ezurl_url.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0126_index_ezurl_ezurl_url.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0042_create_ezurl_object_link.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0127_create_ezurl_object_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0127_create_ezurl_object_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0043_create_ezurlalias.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0132_create_ezurlalias.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0132_create_ezurlalias.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0044_create_ezurlalias_ml.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0139_create_ezurlalias_ml.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0139_create_ezurlalias_ml.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0045_create_ezurlalias_ml_incr.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0148_create_ezurlalias_ml_incr.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0148_create_ezurlalias_ml_incr.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0046_create_ezurlwildcard.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0149_create_ezurlwildcard.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0149_create_ezurlwildcard.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0047_create_ezuser_accountkey.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0150_create_ezuser_accountkey.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0150_create_ezuser_accountkey.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0048_create_ezuser_role.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0152_create_ezuser_role.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0152_create_ezuser_role.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0049_create_ezuser_setting.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0155_create_ezuser_setting.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0155_create_ezuser_setting.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0050_create_ibexa_setting.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0156_create_ibexa_setting.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0156_create_ibexa_setting.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0051_create_ibexa_token_type.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0159_create_ibexa_token_type.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0159_create_ibexa_token_type.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0052_create_ibexa_token.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0161_create_ibexa_token.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0161_create_ibexa_token.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' - platforms: 'sqlite' - - file: 'sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql' - platforms: 'postgresql' - - file: 'sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql' - platforms: 'sqlite' - - file: 'sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' - platforms: 'postgresql' - - file: 'sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' - platforms: 'postgresql' - - file: 'sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' - platforms: 'postgresql' - - file: 'sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql' - platforms: 'mysql' - - file: 'sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql' - platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql deleted file mode 100644 index 4550a8fde8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql deleted file mode 100644 index b7b2dcff8a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql deleted file mode 100644 index 8db47cc4fe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql deleted file mode 100644 index 7d6cb0efc5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql deleted file mode 100644 index ce7fbc900b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql deleted file mode 100644 index 8905130d9f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql deleted file mode 100644 index d314ccc990..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql deleted file mode 100644 index 902d1740c8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql deleted file mode 100644 index ba5486f96c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql deleted file mode 100644 index f7d7851f12..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql deleted file mode 100644 index 333a9e52f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql deleted file mode 100644 index b222dde913..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql deleted file mode 100644 index 8e6a1f9070..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql deleted file mode 100644 index f5a3c2d20a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql deleted file mode 100644 index c6e7644e14..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql deleted file mode 100644 index e39f7864f8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql deleted file mode 100644 index 0e84bc9642..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql deleted file mode 100644 index a15e961c0c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql deleted file mode 100644 index b41b6b97cb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql deleted file mode 100644 index 8031fb6dce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql deleted file mode 100644 index a6a8e86f13..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql deleted file mode 100644 index 50606c73b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql deleted file mode 100644 index 165177694f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT '0' NOT NULL, status TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql deleted file mode 100644 index 096c46dd2d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql deleted file mode 100644 index 5b9e6d2c2c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql deleted file mode 100644 index 2a586c9192..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql deleted file mode 100644 index 3cd519f470..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql deleted file mode 100644 index 2b9c743704..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql deleted file mode 100644 index e7765ae00a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql deleted file mode 100644 index 20edb16ebd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql deleted file mode 100644 index adba6500dd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql deleted file mode 100644 index a8130e913a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql deleted file mode 100644 index 992c1aba35..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql deleted file mode 100644 index d354086aa4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql deleted file mode 100644 index 67795da3c0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql deleted file mode 100644 index ae9d6d1647..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql deleted file mode 100644 index 5bc76956bd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql deleted file mode 100644 index 07b9e3eeb0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql deleted file mode 100644 index 9c6a91c30d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql deleted file mode 100644 index 6ed8657e61..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql deleted file mode 100644 index bd531c02d4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql deleted file mode 100644 index a795d1afba..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql deleted file mode 100644 index 10be1ded9d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql deleted file mode 100644 index f60a5debf8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql deleted file mode 100644 index 0e028a410a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql deleted file mode 100644 index 49e6fdb7cc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql deleted file mode 100644 index 0bca83a3b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql deleted file mode 100644 index 89f78ae40d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql deleted file mode 100644 index c3c035a3ea..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql deleted file mode 100644 index d664bb1bf9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql deleted file mode 100644 index 050286548c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql deleted file mode 100644 index 2cc774c11a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT '0' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql deleted file mode 100644 index fd2f319c2a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql deleted file mode 100644 index a4fe1c30db..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index 9d8fb82dc7..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql deleted file mode 100644 index f8e58ffca0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql deleted file mode 100644 index 64e0eacdd1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql deleted file mode 100644 index 677a43ca5c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql deleted file mode 100644 index 9930341865..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql deleted file mode 100644 index dc7872d95b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql deleted file mode 100644 index 9a0dd8d0e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql deleted file mode 100644 index 97bfa86644..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql deleted file mode 100644 index 540efcb3ef..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql deleted file mode 100644 index 30ad516ff8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql +++ /dev/null @@ -1,25 +0,0 @@ -INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql deleted file mode 100644 index ffa17693b0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql deleted file mode 100644 index 1f517c87e3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql deleted file mode 100644 index 61aea82715..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql deleted file mode 100644 index c18bc54f7d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql deleted file mode 100644 index d2ec35a36f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql +++ /dev/null @@ -1,41 +0,0 @@ -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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql deleted file mode 100644 index fc75852a7c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql deleted file mode 100644 index 1cfc2b9049..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql +++ /dev/null @@ -1,14 +0,0 @@ -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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql deleted file mode 100644 index f8ba2fe49d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql +++ /dev/null @@ -1,13 +0,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 (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql deleted file mode 100644 index b69e8a455f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql +++ /dev/null @@ -1,13 +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql deleted file mode 100644 index 7e0d289d2b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql deleted file mode 100644 index d1dfc57ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql deleted file mode 100644 index 26ef009ea8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql deleted file mode 100644 index 16605e3ee2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql deleted file mode 100644 index a12ae3cbfb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql deleted file mode 100644 index 82536384d3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql deleted file mode 100644 index dbdfab1b74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql deleted file mode 100644 index 1a3fce42c5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql +++ /dev/null @@ -1,26 +0,0 @@ -INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql deleted file mode 100644 index 60ee1309ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql deleted file mode 100644 index 151e4f6fa4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql deleted file mode 100644 index 5ad1f12f1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql deleted file mode 100644 index c87f9291dd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql deleted file mode 100644 index 5a44f420f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql deleted file mode 100644 index 14531f39f5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql deleted file mode 100644 index 16d6b76be3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql deleted file mode 100644 index acd97e80ae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql deleted file mode 100644 index 6d6498dfa3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql deleted file mode 100644 index a622a7319b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql deleted file mode 100644 index aa60df6bbf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql deleted file mode 100644 index 8693d6bab5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql deleted file mode 100644 index 36481c9271..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql deleted file mode 100644 index e73ef9404d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql deleted file mode 100644 index 75a6e90f82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql deleted file mode 100644 index f90c53635b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql deleted file mode 100644 index fc7a9a2fdf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql deleted file mode 100644 index 0a236b1d78..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql deleted file mode 100644 index aaf5f8ae89..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql deleted file mode 100644 index 382bc2fe6f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql deleted file mode 100644 index ebb309ad93..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql deleted file mode 100644 index 7a3cbafefc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql deleted file mode 100644 index a0694b8c61..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql deleted file mode 100644 index 80dcea65d9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql deleted file mode 100644 index 9f76373cac..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql deleted file mode 100644 index d7b5136f63..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql deleted file mode 100644 index f0c7ac9ecc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql deleted file mode 100644 index 87676071e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql deleted file mode 100644 index 22d066cdca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql deleted file mode 100644 index c9c6672a2d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql deleted file mode 100644 index 659a26c514..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql deleted file mode 100644 index 5b0696a7e8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql deleted file mode 100644 index 6c77193029..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql deleted file mode 100644 index d983cc5378..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql deleted file mode 100644 index 7fd0e3cfa1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql deleted file mode 100644 index 24c8111651..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql deleted file mode 100644 index 273341c716..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql deleted file mode 100644 index 7875734dae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql deleted file mode 100644 index ba2700ac55..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql deleted file mode 100644 index 8f5af634b4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index f17be3c68c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql deleted file mode 100644 index 3a8d83fa44..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql deleted file mode 100644 index ebcc1e629b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql deleted file mode 100644 index 4d31939956..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql deleted file mode 100644 index 06925bdc48..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql deleted file mode 100644 index 5dddc18819..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql deleted file mode 100644 index 6fd63f61d8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql deleted file mode 100644 index 022ffd1c54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql deleted file mode 100644 index 2459702346..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql deleted file mode 100644 index cb0f62d824..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql deleted file mode 100644 index 17c73894b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql deleted file mode 100644 index f68fa6262f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql deleted file mode 100644 index 6e86f88cfe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql deleted file mode 100644 index 1d315de98a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql deleted file mode 100644 index 6b23dbfdcb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql deleted file mode 100644 index c8391d6730..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql deleted file mode 100644 index 320329b4f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql deleted file mode 100644 index 31e10963b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql deleted file mode 100644 index d89a560a80..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql deleted file mode 100644 index 3a0b46cb82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql deleted file mode 100644 index 26d2b46d1c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql deleted file mode 100644 index c09dfefbf0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql deleted file mode 100644 index 5553d5dbb9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql deleted file mode 100644 index 576d349337..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql deleted file mode 100644 index fb0c9cf656..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql deleted file mode 100644 index a53893b840..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql deleted file mode 100644 index d47ec6ff06..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql deleted file mode 100644 index 066bdd2ddf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql deleted file mode 100644 index cbc1d75091..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql deleted file mode 100644 index 22a5480ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql deleted file mode 100644 index 1b230d30c0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql deleted file mode 100644 index e97fae979c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql deleted file mode 100644 index 4f2edf4230..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql deleted file mode 100644 index 980553e6cc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql deleted file mode 100644 index 41f87ea995..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql deleted file mode 100644 index 0379c24c58..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql deleted file mode 100644 index eb1712c587..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql deleted file mode 100644 index d9ade282a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql deleted file mode 100644 index f8b3625958..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql deleted file mode 100644 index 7ad71e9d33..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql deleted file mode 100644 index 9c43e1a6d2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql deleted file mode 100644 index a52478c504..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql deleted file mode 100644 index b6a67a8141..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql deleted file mode 100644 index b1093dd031..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql deleted file mode 100644 index 74974918cf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql deleted file mode 100644 index 7783fe956a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql deleted file mode 100644 index c71ce38856..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql deleted file mode 100644 index 10daf6c34e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql deleted file mode 100644 index 9fd53f1f99..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql deleted file mode 100644 index 4aa9687e74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql deleted file mode 100644 index 15f8411056..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql deleted file mode 100644 index d8e144c201..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql deleted file mode 100644 index 0f542cd006..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql deleted file mode 100644 index 8d8572e8bd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql deleted file mode 100644 index f07b97d9ab..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql deleted file mode 100644 index 0404bc617b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql deleted file mode 100644 index f2a1f54018..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql deleted file mode 100644 index 9c81b2afb8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql deleted file mode 100644 index 5e5ed94263..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql deleted file mode 100644 index 987539c281..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql deleted file mode 100644 index 7c7225c18d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql deleted file mode 100644 index 6b519ccc54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql deleted file mode 100644 index 4850a0a117..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT 'true' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql deleted file mode 100644 index 862b80ddf5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql deleted file mode 100644 index b621afd705..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql deleted file mode 100644 index 675d8f105c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql deleted file mode 100644 index 2fe0b4c43f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql deleted file mode 100644 index 366c989ec0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql deleted file mode 100644 index 9a3d4f8171..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql deleted file mode 100644 index 5e7abb39e5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql deleted file mode 100644 index 6640c10ce8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql deleted file mode 100644 index a0f290af9d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql deleted file mode 100644 index 446a27fdaa..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql deleted file mode 100644 index 8c0458bdde..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql deleted file mode 100644 index 6c23ca2fe5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql deleted file mode 100644 index e8330b63d4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql deleted file mode 100644 index e33390d2a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql deleted file mode 100644 index 3a828c94f8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql deleted file mode 100644 index 3fd4f08a00..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql deleted file mode 100644 index fb984de9f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql deleted file mode 100644 index 724819087d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql deleted file mode 100644 index 9c46453535..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql deleted file mode 100644 index 058c9b9de2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql deleted file mode 100644 index 6864b9d5b8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql deleted file mode 100644 index c4ac6e1ae2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql deleted file mode 100644 index d1f15870a4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql deleted file mode 100644 index ee7a50072c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql deleted file mode 100644 index 6bb9b22705..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql deleted file mode 100644 index 51b1319beb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql deleted file mode 100644 index 9f0b264139..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql deleted file mode 100644 index d49afdc63d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql deleted file mode 100644 index e9641de5ed..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql deleted file mode 100644 index 67e46a38fe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql deleted file mode 100644 index 6b9fa680c3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql deleted file mode 100644 index 0160b9c1a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql deleted file mode 100644 index e2b3d317a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql deleted file mode 100644 index 3fc9158ca2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql deleted file mode 100644 index b447996855..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql deleted file mode 100644 index c884362677..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql deleted file mode 100644 index 2cd160e33f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql deleted file mode 100644 index 062366e854..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql deleted file mode 100644 index aa37643b1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql deleted file mode 100644 index 07e4107f82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql deleted file mode 100644 index 498ed19ceb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql deleted file mode 100644 index 84fd80638b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql deleted file mode 100644 index b33960fcad..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql deleted file mode 100644 index 7ba3dc6750..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql deleted file mode 100644 index 8a9145ac6c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql deleted file mode 100644 index cbcd9b056a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql deleted file mode 100644 index 139b8c5f68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql deleted file mode 100644 index 5e0c908085..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql deleted file mode 100644 index 91393fd7ee..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql deleted file mode 100644 index 80a0370490..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql deleted file mode 100644 index 7de76a2918..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql deleted file mode 100644 index 8de6d5dc85..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql deleted file mode 100644 index b6d4c50c07..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql deleted file mode 100644 index f7ce47113b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql deleted file mode 100644 index 2224306ce1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql deleted file mode 100644 index 2f779bf8a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql deleted file mode 100644 index 1c4fed4d8c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql deleted file mode 100644 index d3ae1af8b3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql deleted file mode 100644 index d6f3d3b0dc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql deleted file mode 100644 index e2a05c6a8d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql deleted file mode 100644 index 34e08782fb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql deleted file mode 100644 index 17f4b2cf68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql deleted file mode 100644 index a67a678e35..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql deleted file mode 100644 index 8217faeab1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql deleted file mode 100644 index 1d13c98da4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql deleted file mode 100644 index 612b0012d2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql deleted file mode 100644 index f9e3a7a770..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index a13558b04b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql deleted file mode 100644 index 973e602987..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql deleted file mode 100644 index c17884a304..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") -VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql deleted file mode 100644 index cc78821e78..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, 'ez_lock', 3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql deleted file mode 100644 index 609826a7c2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") -VALUES (2, '', 3, 'Lock', 2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql deleted file mode 100644 index db716c0d84..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") -VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql deleted file mode 100644 index a0d990da69..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") -VALUES ( 1, 1), - ( 4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql deleted file mode 100644 index 7c748fde7d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql deleted file mode 100644 index 792d15f4ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") -VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql deleted file mode 100644 index e00a5afc39..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql +++ /dev/null @@ -1,25 +0,0 @@ -INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql deleted file mode 100644 index 83aa440947..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") -VALUES (1,0,1,'Content'), - (2,0,1,'Content'), - (3,0,2,'Users'), - (4,0,2,'Users'), - (5,0,3,'Media'), - (12,0,3,'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql deleted file mode 100644 index 9ccdaaf91f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") -VALUES (1,0,2,'eng-GB','Folder'), - (2,0,3,'eng-GB','Article'), - (3,0,3,'eng-GB','User group'), - (4,0,3,'eng-GB','User'), - (5,0,3,'eng-GB','Image'), - (12,0,3,'eng-GB','File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql deleted file mode 100644 index 0621f947ba..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") -VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql deleted file mode 100644 index 8d9a9b0b2a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") -VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql deleted file mode 100644 index 34b8980372..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql +++ /dev/null @@ -1,41 +0,0 @@ -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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql deleted file mode 100644 index ac4544a1c6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") -VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql deleted file mode 100644 index 261cb89e36..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql +++ /dev/null @@ -1,14 +0,0 @@ -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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql deleted file mode 100644 index 498e2577b1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql +++ /dev/null @@ -1,13 +0,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 (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql deleted file mode 100644 index bf8f363666..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql +++ /dev/null @@ -1,13 +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql deleted file mode 100644 index 17d9668f7f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") -VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql deleted file mode 100644 index 587bb93d15..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") -VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql deleted file mode 100644 index 7c0e184943..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") -VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql deleted file mode 100644 index 9d65153a4f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") -VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql deleted file mode 100644 index 5b4c34ea06..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") -VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql deleted file mode 100644 index 92ea4ab159..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezsite_data" ("name", "value") -VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql deleted file mode 100644 index 60f8aa7a42..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") -VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql deleted file mode 100644 index 125c3e3393..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql +++ /dev/null @@ -1,26 +0,0 @@ -INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") -VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql deleted file mode 100644 index 257e76532c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO "ezurlalias_ml_incr" ("id") -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql deleted file mode 100644 index dd2c144a37..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") -VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql deleted file mode 100644 index 9e5ff0b7d2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") -VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql deleted file mode 100644 index ba202749ca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") -VALUES (1, 1000, 10), - (1, 10, 14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql deleted file mode 100644 index 4b87da9303..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO "ezpreferences" ("name", "user_id", "value") -SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql deleted file mode 100644 index 056312175f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql +++ /dev/null @@ -1,2 +0,0 @@ --- Set proper sequence values after inserting data -SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql deleted file mode 100644 index c8e051aa09..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql deleted file mode 100644 index a488f42672..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql deleted file mode 100644 index e7945c3bf6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql deleted file mode 100644 index 1c15b1970e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql deleted file mode 100644 index 67c66a320c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql deleted file mode 100644 index d8f66b1c65..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql deleted file mode 100644 index b21db5ae2f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql deleted file mode 100644 index 8800566349..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql deleted file mode 100644 index 0308bdc43c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql deleted file mode 100644 index dfd67783fd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql deleted file mode 100644 index 48b5dc9a8e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql deleted file mode 100644 index fa8e547c55..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql deleted file mode 100644 index 8a3f1a9ae0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql deleted file mode 100644 index 1892a4da3d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql deleted file mode 100644 index f3e2e4c7a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql deleted file mode 100644 index a0590cbafe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql deleted file mode 100644 index bea26a1658..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql deleted file mode 100644 index 32e1a5952c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql deleted file mode 100644 index 809801b081..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql deleted file mode 100644 index 47287e5919..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql deleted file mode 100644 index 994366ebbe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql deleted file mode 100644 index 6f91042d3b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql deleted file mode 100644 index 2a9b0dee98..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql deleted file mode 100644 index c5078959e5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql deleted file mode 100644 index f80598be3f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql deleted file mode 100644 index cd49369f7b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql deleted file mode 100644 index 277a5e62f8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql deleted file mode 100644 index 7969e16eea..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql deleted file mode 100644 index f2557a86a4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql deleted file mode 100644 index e2f0f7229c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql +++ /dev/null @@ -1 +0,0 @@ -SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql deleted file mode 100644 index 0bf69c19ad..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql deleted file mode 100644 index b1708d93c6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql deleted file mode 100644 index acd97e80ae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql deleted file mode 100644 index 6d6498dfa3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql deleted file mode 100644 index a622a7319b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql deleted file mode 100644 index a312f68826..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql deleted file mode 100644 index 8693d6bab5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql deleted file mode 100644 index 36481c9271..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql deleted file mode 100644 index bf099e3762..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql deleted file mode 100644 index e0c93b23f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql deleted file mode 100644 index ab29b826f2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql deleted file mode 100644 index 3f3f93dd8f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql deleted file mode 100644 index 0a236b1d78..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql deleted file mode 100644 index 6f85547ed8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql deleted file mode 100644 index 382bc2fe6f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql deleted file mode 100644 index cd5fdd8520..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql deleted file mode 100644 index 7a3cbafefc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql deleted file mode 100644 index a0694b8c61..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql deleted file mode 100644 index 80dcea65d9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql deleted file mode 100644 index 9f76373cac..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql deleted file mode 100644 index d7b5136f63..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql deleted file mode 100644 index f0c7ac9ecc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql deleted file mode 100644 index 87676071e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql deleted file mode 100644 index 22d066cdca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql deleted file mode 100644 index 5e78454445..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql deleted file mode 100644 index 659a26c514..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql deleted file mode 100644 index 5b0696a7e8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql deleted file mode 100644 index 6c77193029..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql deleted file mode 100644 index 47fcb50231..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql deleted file mode 100644 index 7fd0e3cfa1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql deleted file mode 100644 index 24c8111651..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql deleted file mode 100644 index 4afcafb110..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql deleted file mode 100644 index 7875734dae..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql deleted file mode 100644 index ba2700ac55..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql deleted file mode 100644 index e94bd6f294..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql deleted file mode 100644 index f17be3c68c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql deleted file mode 100644 index 25cac4ef2a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql deleted file mode 100644 index 776d327767..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql deleted file mode 100644 index 7a7cde12e8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql deleted file mode 100644 index f1364cf079..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql deleted file mode 100644 index 5dddc18819..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql deleted file mode 100644 index 6fd63f61d8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql deleted file mode 100644 index 022ffd1c54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql deleted file mode 100644 index 2459702346..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql deleted file mode 100644 index cb0f62d824..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql deleted file mode 100644 index 17c73894b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql deleted file mode 100644 index f68fa6262f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql deleted file mode 100644 index 6e86f88cfe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql deleted file mode 100644 index 13b2780ba6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql deleted file mode 100644 index 6b23dbfdcb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql deleted file mode 100644 index c8391d6730..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql deleted file mode 100644 index 320329b4f4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql deleted file mode 100644 index 31e10963b6..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql deleted file mode 100644 index d89a560a80..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql deleted file mode 100644 index 3a0b46cb82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql deleted file mode 100644 index 9c80af1662..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql deleted file mode 100644 index c09dfefbf0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql deleted file mode 100644 index 5553d5dbb9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql deleted file mode 100644 index 576d349337..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql deleted file mode 100644 index 330a997cdc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql deleted file mode 100644 index a53893b840..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql deleted file mode 100644 index d47ec6ff06..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql deleted file mode 100644 index 066bdd2ddf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql deleted file mode 100644 index 8cf7a78639..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql deleted file mode 100644 index 22a5480ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql deleted file mode 100644 index 1b230d30c0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql deleted file mode 100644 index e97fae979c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql deleted file mode 100644 index 4f2edf4230..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql deleted file mode 100644 index 980553e6cc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql deleted file mode 100644 index 41f87ea995..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql deleted file mode 100644 index 73919870ef..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql deleted file mode 100644 index eb1712c587..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql deleted file mode 100644 index d9ade282a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql deleted file mode 100644 index f8b3625958..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql deleted file mode 100644 index 7ad71e9d33..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql deleted file mode 100644 index 0dc2e4d0ff..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql deleted file mode 100644 index a52478c504..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql deleted file mode 100644 index b6a67a8141..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql deleted file mode 100644 index b1093dd031..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql deleted file mode 100644 index 74974918cf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql deleted file mode 100644 index a16efa09bf..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql deleted file mode 100644 index c71ce38856..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql deleted file mode 100644 index f22ea4c070..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql deleted file mode 100644 index 9fd53f1f99..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql deleted file mode 100644 index 4aa9687e74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql deleted file mode 100644 index 5cba288e70..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql deleted file mode 100644 index d8e144c201..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql deleted file mode 100644 index cd675686ed..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql deleted file mode 100644 index 8d8572e8bd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql deleted file mode 100644 index f07b97d9ab..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql deleted file mode 100644 index 0404bc617b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql deleted file mode 100644 index 5cc240e09b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql deleted file mode 100644 index 5e822ef0c9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql deleted file mode 100644 index 5e5ed94263..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql deleted file mode 100644 index 987539c281..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql deleted file mode 100644 index 7c7225c18d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql deleted file mode 100644 index 6b519ccc54..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql deleted file mode 100644 index 3f6a172e7c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql deleted file mode 100644 index 862b80ddf5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql deleted file mode 100644 index b621afd705..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql deleted file mode 100644 index 18c04aae4b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql deleted file mode 100644 index 0ea197813d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql deleted file mode 100644 index 366c989ec0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql deleted file mode 100644 index 9a3d4f8171..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql deleted file mode 100644 index 79c443ef85..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql deleted file mode 100644 index 6640c10ce8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql deleted file mode 100644 index 08bd1cf9d0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql deleted file mode 100644 index 446a27fdaa..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql deleted file mode 100644 index 8c0458bdde..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql deleted file mode 100644 index 3b64a2bfba..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql deleted file mode 100644 index e8330b63d4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql deleted file mode 100644 index e33390d2a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql deleted file mode 100644 index a712365e6b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql deleted file mode 100644 index 568edef679..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql deleted file mode 100644 index fb984de9f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql deleted file mode 100644 index 724819087d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql deleted file mode 100644 index 9c46453535..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql deleted file mode 100644 index 058c9b9de2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql deleted file mode 100644 index 6864b9d5b8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql deleted file mode 100644 index bea025a97c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql deleted file mode 100644 index d1f15870a4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql deleted file mode 100644 index ee7a50072c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql deleted file mode 100644 index 6e77c80b0a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql deleted file mode 100644 index 0cabe9726b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql deleted file mode 100644 index 40720c87df..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql deleted file mode 100644 index d49afdc63d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql deleted file mode 100644 index 4457d5a9ca..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql deleted file mode 100644 index 67e46a38fe..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql deleted file mode 100644 index 6b9fa680c3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql deleted file mode 100644 index 0160b9c1a3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql deleted file mode 100644 index e2b3d317a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql deleted file mode 100644 index 46fd22ba70..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql deleted file mode 100644 index b447996855..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql deleted file mode 100644 index c884362677..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql deleted file mode 100644 index 2cd160e33f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql deleted file mode 100644 index 062366e854..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql deleted file mode 100644 index aa37643b1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql deleted file mode 100644 index 07e4107f82..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql deleted file mode 100644 index fc7ced0139..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql deleted file mode 100644 index 84fd80638b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql deleted file mode 100644 index b33960fcad..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql deleted file mode 100644 index c3f47f4bb7..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql deleted file mode 100644 index 8a9145ac6c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql deleted file mode 100644 index 2a952aa64e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql deleted file mode 100644 index 139b8c5f68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql deleted file mode 100644 index 5e0c908085..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql deleted file mode 100644 index 91393fd7ee..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql deleted file mode 100644 index b559dae946..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql deleted file mode 100644 index 4fef3f6bce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql deleted file mode 100644 index 0644e63339..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql deleted file mode 100644 index b6d4c50c07..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql deleted file mode 100644 index 045b996bbd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql deleted file mode 100644 index 2224306ce1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql deleted file mode 100644 index 2f779bf8a1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql deleted file mode 100644 index 5d10f19c92..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql deleted file mode 100644 index 8d12ee2b45..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql +++ /dev/null @@ -1,2 +0,0 @@ -CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) -); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql deleted file mode 100644 index d6f3d3b0dc..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql deleted file mode 100644 index e2a05c6a8d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql deleted file mode 100644 index 56545a77df..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql deleted file mode 100644 index 17f4b2cf68..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql deleted file mode 100644 index 4ccb1fc31a..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql deleted file mode 100644 index 8217faeab1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql deleted file mode 100644 index 1d13c98da4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql +++ /dev/null @@ -1 +0,0 @@ -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql deleted file mode 100644 index 64e0eacdd1..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql deleted file mode 100644 index 677a43ca5c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql deleted file mode 100644 index 9930341865..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql deleted file mode 100644 index dc7872d95b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql deleted file mode 100644 index 9a0dd8d0e9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql deleted file mode 100644 index 97bfa86644..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql deleted file mode 100644 index 540efcb3ef..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql deleted file mode 100644 index 30ad516ff8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql +++ /dev/null @@ -1,25 +0,0 @@ -INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql deleted file mode 100644 index ffa17693b0..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql deleted file mode 100644 index 1f517c87e3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql deleted file mode 100644 index 61aea82715..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql deleted file mode 100644 index c18bc54f7d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql deleted file mode 100644 index d2ec35a36f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql +++ /dev/null @@ -1,41 +0,0 @@ -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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql deleted file mode 100644 index fc75852a7c..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql deleted file mode 100644 index 1cfc2b9049..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql +++ /dev/null @@ -1,14 +0,0 @@ -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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql deleted file mode 100644 index f8ba2fe49d..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql +++ /dev/null @@ -1,13 +0,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 (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql deleted file mode 100644 index b69e8a455f..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql +++ /dev/null @@ -1,13 +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql deleted file mode 100644 index 7e0d289d2b..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql deleted file mode 100644 index d1dfc57ee9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql deleted file mode 100644 index 26ef009ea8..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql deleted file mode 100644 index 16605e3ee2..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql deleted file mode 100644 index a12ae3cbfb..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql deleted file mode 100644 index 82536384d3..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql deleted file mode 100644 index dbdfab1b74..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql +++ /dev/null @@ -1,13 +0,0 @@ -INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql deleted file mode 100644 index 1a3fce42c5..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql +++ /dev/null @@ -1,26 +0,0 @@ -INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql deleted file mode 100644 index 60ee1309ce..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql +++ /dev/null @@ -1,4 +0,0 @@ -INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql deleted file mode 100644 index 151e4f6fa4..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql deleted file mode 100644 index 5ad1f12f1e..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql +++ /dev/null @@ -1,7 +0,0 @@ -INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql deleted file mode 100644 index c87f9291dd..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql +++ /dev/null @@ -1,3 +0,0 @@ -INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql deleted file mode 100644 index 5a44f420f9..0000000000 --- a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql +++ /dev/null @@ -1,2 +0,0 @@ -INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; From 19bcfb85492a45bf4eacc9c9170d6e659bd85596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 17 Jul 2026 12:53:44 +0200 Subject: [PATCH 52/88] [Doctrine Migrations] Reformatted long/multiline SQL using NOWDOC CREATE TABLE statements are now pretty-printed one column per line, and other long or naturally multi-line statements (multi-row INSERT, long ALTER TABLE ... ADD CONSTRAINT) use NOWDOC instead of a single escaped string literal, for readability. SQL content is unchanged. --- .../Migration/ImportDataMigration.php | 1836 +++++++------- .../Migration/InstallSchemaMigration.php | 2105 +++++++++++++++-- 2 files changed, 2950 insertions(+), 991 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index f3ebfa20a9..47b68b5ddd 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -36,559 +36,681 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { if ($this->platform instanceof MySqlPlatform) { - $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, \'not_locked\', 3, 0), - (2, 2, 2, \'locked\', 3, 1)'); - $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,\'ez_lock\',3)'); - $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,\'\',3,\'Lock\',2)'); - $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,\'\',3,\'Not locked\'), - (2,\'\',3,\'Locked\')'); - $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1)'); - $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); - $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,\'<short_name|name>\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), - (0,\'<short_title|title>\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<name>\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<first_name> <last_name>\',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<name>\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<name>\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); - $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), - (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), - (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); - $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, \'Content\'), - (2, 0, 1, \'Content\'), - (3, 0, 2, \'Users\'), - (4, 0, 2, \'Users\'), - (5, 0, 3, \'Media\'), - (12, 0, 3, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), - (2, 0, 3, \'eng-GB\', \'Article\'), - (3, 0, 3, \'eng-GB\', \'User group\'), - (4, 0, 3, \'eng-GB\', \'User\'), - (5, 0, 3, \'eng-GB\', \'Image\'), - (12, 0, 3, \'eng-GB\', \'File\')'); - $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), - (1031216941, 14, 2, 1033922113, 14, \'Users\'), - (1032009743, 14, 3, 1033922120, 14, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), - (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), - (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), - (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), - (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), - (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), - (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), - (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), - (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), - (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), - (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), - (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); - $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,119,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), - (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), - (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), - (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), - (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), - (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), - (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), - (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), - (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), - (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), - (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), - (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), - (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), - (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), - (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), - (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), - (0,119,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), - (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), - (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), - (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), - (0,156,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), - (0,156,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), - (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), - (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), - (0,119,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), - (0,156,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), - (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), - (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), - (0,119,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), - (0,156,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), - (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), - (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), - (0,119,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), - (0,156,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), - (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), - (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), - (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), - (0,180,14,0,0,\'<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\\n<ezimage serial_number=\\"1\\" is_valid=\\"\\" filename=\\"\\" suffix=\\"\\" basename=\\"\\" dirpath=\\"\\" url=\\"\\" original_filename=\\"\\" mime_type=\\"\\" width=\\"\\" height=\\"\\" alternative_text=\\"\\" alias_key=\\"1293033771\\" timestamp=\\"1301057722\\"><original attribute_id=\\"180\\" attribute_version=\\"3\\" attribute_language=\\"eng-GB\\"/></ezimage>\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); - $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), - (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), - (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), - (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), - (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), - (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), - (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), - (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), - (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), - (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), - (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), - (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); - $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); - $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) -VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); - $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), - (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), - (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), - (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), - (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), - (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), - (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), - (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), - (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), - (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), - (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), - (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); - $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES (\'*\',317,\'content\',0,3), - (\'login\',319,\'user\',0,3), - (\'read\',328,\'content\',0,1), - (\'login\',331,\'user\',0,1), - (\'*\',332,\'*\',0,2), - (\'read\',333,\'content\',0,4), - (\'view_embed\',334,\'content\',0,1), - (\'*\',340,\'url\',0,3)'); - $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,\'Section\',328), - (252,\'Section\',329), - (253,\'SiteAccess\',331), - (254,\'Class\',333), - (255,\'Owner\',333), - (256,\'Class\',334)'); - $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,\'1\'), - (478,252,\'1\'), - (479,253,\'1766001124\'), - (480,254,\'4\'), - (481,255,\'1\'), - (482,256,\'5\'), - (483,256,\'12\')'); - $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,\'Anonymous\',\'\',0), - (2,0,\'Administrator\',\'0\',0), - (3,0,\'Editor\',\'\',0), - (4,0,\'Member\',\'\',0)'); - $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), - (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), - (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); - $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) -VALUES (\'ibexa-release\',\'4.6\')'); - $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), - (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), - (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), - (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), - (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), - (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), - (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), - (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), - (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), - (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), - (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), - (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); - $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), - (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), - (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), - (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), - (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), - (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), - (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), - (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), - (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), - (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), - (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), - (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), - (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), - (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), - (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), - (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), - (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), - (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), - (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); - $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37)'); - $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), - (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); - $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,\'\',\'\',1), - (42,31,\'\',\'\',1), - (13,32,\'Subtree\',\'/1/2/\',3), - (13,33,\'Subtree\',\'/1/43/\',3), - (12,34,\'\',\'\',2), - (13,35,\'\',\'\',4)'); - $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14)'); - $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) + VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) + VALUES (2,2,'ez_lock',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) + VALUES (2,'',3,'Lock',2) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) + VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) + VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) + VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) + VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) + VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) + VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) + VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) + VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) + VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + SQL); + $this->addSql(<<<'SQL' + 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) + VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') + SQL); + $this->addSql(<<<'SQL' + 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) + VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + SQL); + $this->addSql(<<<'SQL' + 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) + VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) + VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) + VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) + VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) + VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsite_data` (`name`, `value`) + VALUES ('ibexa-release','4.6') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) + VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) + VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml_incr` (`id`) + VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) + VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) + VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) + VALUES (1,1000,10), + (1,10,14) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) + SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' + SQL); } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql('INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") -VALUES (2, 2, 1, \'not_locked\', 3, 0), - (2, 2, 2, \'locked\', 3, 1)'); - $this->addSql('INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, \'ez_lock\', 3)'); - $this->addSql('INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") -VALUES (2, \'\', 3, \'Lock\', 2)'); - $this->addSql('INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") -VALUES (1,\'\',3,\'Not locked\'), - (2,\'\',3,\'Locked\')'); - $this->addSql('INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") -VALUES ( 1, 1), - ( 4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1)'); - $this->addSql('INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") -VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); - $this->addSql('INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") -VALUES (1,\'<short_name|name>\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:6:"Folder";}\',1,1,NULL,0), - (0,\'<short_title|title>\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'<name>\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'<first_name> <last_name>\',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'<name>\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0), - (1,\'<name>\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',1,1,NULL,0)'); - $this->addSql('INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") -VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,FALSE,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:4:"Name";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}\',0), - (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,TRUE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,FALSE,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:17:"Short description";}\',0), - (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,FALSE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}\',0), - (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,FALSE,6,NULL,NULL,\'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,FALSE,1,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,FALSE,2,NULL,NULL,\'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,FALSE,3,NULL,NULL,\'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,FALSE,7,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,FALSE,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:10:"Short name";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,FALSE,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:"eng-GB";s:11:"Description";}\',0), - (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,FALSE,4,NULL,NULL,\'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}\',0), - (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,TRUE,5,NULL,NULL,\'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}\',0)'); - $this->addSql('INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") -VALUES (1,0,1,\'Content\'), - (2,0,1,\'Content\'), - (3,0,2,\'Users\'), - (4,0,2,\'Users\'), - (5,0,3,\'Media\'), - (12,0,3,\'Media\')'); - $this->addSql('INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") -VALUES (1,0,2,\'eng-GB\',\'Folder\'), - (2,0,3,\'eng-GB\',\'Article\'), - (3,0,3,\'eng-GB\',\'User group\'), - (4,0,3,\'eng-GB\',\'User\'), - (5,0,3,\'eng-GB\',\'Image\'), - (12,0,3,\'eng-GB\',\'File\')'); - $this->addSql('INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") -VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), - (1031216941, 14, 2, 1033922113, 14, \'Users\'), - (1032009743, 14, 3, 1033922120, 14, \'Media\')'); - $this->addSql('INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") -VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), - (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), - (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), - (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), - (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), - (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), - (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), - (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), - (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), - (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), - (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), - (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); - $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,119,1,NULL,NULL,E\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), - (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), - (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), - (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), - (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), - (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), - (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), - (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), - (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), - (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), - (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), - (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), - (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), - (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), - (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), - (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), - (0,119,41,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), - (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), - (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), - (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), - (0,156,1,NULL,NULL,E\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), - (0,156,41,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), - (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), - (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), - (0,119,49,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), - (0,156,49,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), - (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), - (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), - (0,119,50,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), - (0,156,50,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), - (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), - (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), - (0,119,51,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), - (0,156,51,0,1045487555,E\'<?xml version="1.0" encoding="UTF-8"?>\\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), - (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), - (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), - (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), - (0,180,14,0,0,E\'<?xml version="1.0" encoding="utf-8"?>\\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); - $this->addSql('INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") -VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), - (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), - (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), - (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), - (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), - (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), - (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), - (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), - (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), - (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), - (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), - (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); - $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); - $this->addSql('INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") -VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); - $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), - (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), - (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), - (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), - (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), - (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), - (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), - (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), - (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), - (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), - (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), - (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); - $this->addSql('INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") -VALUES (\'*\',317,\'content\',0,3), - (\'login\',319,\'user\',0,3), - (\'read\',328,\'content\',0,1), - (\'login\',331,\'user\',0,1), - (\'*\',332,\'*\',0,2), - (\'read\',333,\'content\',0,4), - (\'view_embed\',334,\'content\',0,1), - (\'*\',340,\'url\',0,3)'); - $this->addSql('INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") -VALUES (251,\'Section\',328), - (252,\'Section\',329), - (253,\'SiteAccess\',331), - (254,\'Class\',333), - (255,\'Owner\',333), - (256,\'Class\',334)'); - $this->addSql('INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") -VALUES (477,251,\'1\'), - (478,252,\'1\'), - (479,253,\'1766001124\'), - (480,254,\'4\'), - (481,255,\'1\'), - (482,256,\'5\'), - (483,256,\'12\')'); - $this->addSql('INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") -VALUES (1,0,\'Anonymous\',\'\',0), - (2,0,\'Administrator\',\'0\',0), - (3,0,\'Editor\',\'\',0), - (4,0,\'Member\',\'\',0)'); - $this->addSql('INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") -VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), - (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), - (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); - $this->addSql('INSERT INTO "ezsite_data" ("name", "value") -VALUES (\'ibexa-release\',\'4.6\')'); - $this->addSql('INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") -VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), - (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), - (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), - (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), - (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), - (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), - (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), - (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), - (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), - (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), - (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), - (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); - $this->addSql('INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") -VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), - (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), - (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), - (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), - (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), - (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), - (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), - (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), - (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), - (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), - (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), - (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), - (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), - (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), - (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), - (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), - (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), - (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), - (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); - $this->addSql('INSERT INTO "ezurlalias_ml_incr" ("id") -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37)'); - $this->addSql('INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") -VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), - (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); - $this->addSql('INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") -VALUES (11,28,\'\',\'\',1), - (42,31,\'\',\'\',1), - (13,32,\'Subtree\',\'/1/2/\',3), - (13,33,\'Subtree\',\'/1/43/\',3), - (12,34,\'\',\'\',2), - (13,35,\'\',\'\',4)'); - $this->addSql('INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") -VALUES (1, 1000, 10), - (1, 10, 14)'); - $this->addSql('INSERT INTO "ezpreferences" ("name", "user_id", "value") -SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM "ezuser" u WHERE u.login = \'admin\''); - $this->addSql('-- Set proper sequence values after inserting data -SELECT SETVAL(\'ezcobj_state_group_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group'); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") + VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") + VALUES (2, 2, 'ez_lock', 3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") + VALUES (2, '', 3, 'Lock', 2) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") + VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") + VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") + VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") + VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") + VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") + VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") + VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") + VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") + VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + SQL); + $this->addSql(<<<'SQL' + 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") + VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') + SQL); + $this->addSql(<<<'SQL' + 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") + VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + SQL); + $this->addSql(<<<'SQL' + 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") + VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") + VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") + VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") + VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") + VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezsite_data" ("name", "value") + VALUES ('ibexa-release','4.6') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") + VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") + VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezurlalias_ml_incr" ("id") + VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") + VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") + VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") + VALUES (1, 1000, 10), + (1, 10, 14) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO "ezpreferences" ("name", "user_id", "value") + SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' + SQL); + $this->addSql(<<<'SQL' + -- Set proper sequence values after inserting data + SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group + SQL); $this->addSql('SELECT SETVAL(\'ezcobj_state_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state'); $this->addSql('SELECT SETVAL(\'ezcontentbrowsebookmark_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark'); $this->addSql('SELECT SETVAL(\'ezcontentclass_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute'); @@ -620,281 +742,341 @@ public function up(Schema $schema): void $this->addSql('SELECT SETVAL(\'ezuser_accountkey_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey'); $this->addSql('SELECT SETVAL(\'ezuser_role_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_role'); } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql('INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) -VALUES (2, 2, 1, \'not_locked\', 3, 0), - (2, 2, 2, \'locked\', 3, 1)'); - $this->addSql('INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,\'ez_lock\',3)'); - $this->addSql('INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,\'\',3,\'Lock\',2)'); - $this->addSql('INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) -VALUES (1,\'\',3,\'Not locked\'), - (2,\'\',3,\'Locked\')'); - $this->addSql('INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) -VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1)'); - $this->addSql('INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, \'eng-GB\', \'English (United Kingdom)\')'); - $this->addSql('INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,\'<short_name|name>\',1024392098,14,1,\'folder\',2,1,2,1448831672,14,\'a3d405b81be900468eb153d774f4f0d2\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:6:\\"Folder\\";}\',1,1,NULL,0), - (0,\'<short_title|title>\',1024392098,14,2,\'article\',2,1,3,1082454989,14,\'c15b600eb9198b1924063b5a68758232\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Article\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<name>\',1024392098,14,3,\'user_group\',2,1,3,1048494743,14,\'25b4268cdcd01921b808a0d854b877ef\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"User group\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<first_name> <last_name>\',1024392098,14,4,\'user\',2,0,3,1082018364,14,\'40faa822edc579b02c25f6bb7beec3ad\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"User\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<name>\',1031484992,14,5,\'image\',2,0,3,1048494784,14,\'f6df12aa74e36230eb675f364fccd25a\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0), - (1,\'<name>\',1052385472,14,12,\'file\',2,0,3,1052385669,14,\'637d58bfddf164627bdfd265733280a0\',NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',1,1,NULL,0)'); - $this->addSql('INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,\'\',2,0,0,0,0,255,0,0,0,\'New article\',\'\',\'\',\'\',\'\',\'ezstring\',1,\'title\',0,1,1,1,0,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,\'Folder\',NULL,NULL,NULL,NULL,\'ezstring\',4,\'name\',0,1,1,0,1,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:4:\\"Name\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',6,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',3,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',7,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',8,\'first_name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:10:\\"First name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',9,\'last_name\',0,1,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Last name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',4,0,0,0,0,7,10,0,0,\'\',\'^[^@]+$\',\'\',\'\',\'\',\'ezuser\',12,\'user_account\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:12:\\"User account\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,150,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezstring\',116,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',117,\'caption\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:7:\\"Caption\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',5,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',NULL,\'ezimage\',118,\'image\',0,0,1,1,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',119,\'short_description\',0,0,1,0,3,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:17:\\"Short description\\";}\',0), - (1,\'\',2,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',120,\'intro\',0,1,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Intro\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,20,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezrichtext\',121,\'body\',0,0,1,0,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Body\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (0,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezboolean\',123,\'enable_comments\',0,0,0,0,6,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:15:\\"Enable comments\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'New file\',\'\',\'\',\'\',NULL,\'ezstring\',146,\'name\',0,1,1,0,1,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"Name\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezrichtext\',147,\'description\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Description\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',12,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',NULL,\'ezbinaryfile\',148,\'file\',0,1,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:4:\\"File\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,255,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezstring\',152,\'short_title\',0,0,1,0,2,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:11:\\"Short title\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,1,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezauthor\',153,\'author\',0,0,0,0,3,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:6:\\"Author\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',2,0,0,0,0,0,0,0,0,\'\',\'\',\'\',\'\',\'\',\'ezobjectrelation\',154,\'image\',0,0,1,0,7,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezstring\',155,\'short_name\',0,0,1,0,2,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:10:\\"Short name\\";}\',0), - (1,\'\',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,\'ezrichtext\',156,\'description\',0,0,1,0,4,\'N;\',\'a:0:{}\',\'a:1:{s:6:\\"eng-GB\\";s:11:\\"Description\\";}\',0), - (1,\'\',4,0,0,0,0,10,0,0,0,\'\',\'\',\'\',\'\',\'\',\'eztext\',179,\'signature\',0,0,1,0,4,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:9:\\"Signature\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0), - (1,\'\',4,10.0,0,0,0,0,0,0,0,\'MB\',\'\',\'\',\'\',\'\',\'ezimage\',180,\'image\',0,0,0,1,5,NULL,NULL,\'a:2:{s:6:\\"eng-GB\\";s:5:\\"Image\\";s:16:\\"always-available\\";s:6:\\"eng-GB\\";}\',0)'); - $this->addSql('INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) -VALUES (1, 0, 1, \'Content\'), - (2, 0, 1, \'Content\'), - (3, 0, 2, \'Users\'), - (4, 0, 2, \'Users\'), - (5, 0, 3, \'Media\'), - (12, 0, 3, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) -VALUES (1, 0, 2, \'eng-GB\', \'Folder\'), - (2, 0, 3, \'eng-GB\', \'Article\'), - (3, 0, 3, \'eng-GB\', \'User group\'), - (4, 0, 3, \'eng-GB\', \'User\'), - (5, 0, 3, \'eng-GB\', \'Image\'), - (12, 0, 3, \'eng-GB\', \'File\')'); - $this->addSql('INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) -VALUES (1031216928, 14, 1, 1033922106, 14, \'Content\'), - (1031216941, 14, 2, 1033922113, 14, \'Users\'), - (1032009743, 14, 3, 1033922120, 14, \'Media\')'); - $this->addSql('INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) -VALUES (1,9,1,2,3,1448889046,\'Ibexa Platform\',14,1448889046,\'9459d3c29e15006e45197295722c7ade\',1,1), - (3,1,4,2,3,1033917596,\'Users\',14,1033917596,\'f5c88a2209584891056f987fd965b0ba\',2,1), - (4,2,10,2,3,1072180405,\'Anonymous User\',14,1033920665,\'faaeb9be3bd98ed09f606fc16d144eca\',2,1), - (3,1,11,2,3,1033920746,\'Guest accounts\',14,1033920746,\'5f7f0bdb3381d6a461d8c29ff53d908f\',2,1), - (3,1,12,2,3,1033920775,\'Administrator users\',14,1033920775,\'9b47a45624b023b1a76c73b74d704acf\',2,1), - (3,1,13,2,3,1033920794,\'Editors\',14,1033920794,\'3c160cca19fb135f83bd02d911f04db2\',2,1), - (4,3,14,2,3,1301062024,\'Administrator User\',14,1033920830,\'1bb4fe25487f05527efa8bfd394cecc7\',2,1), - (1,1,41,2,3,1060695457,\'Media\',14,1060695457,\'a6e35cbcb7cd6ae4b691f3eee30cd262\',3,1), - (3,1,42,2,3,1072180330,\'Anonymous users\',14,1072180330,\'15b256dbea2ae72418ff5facc999e8f9\',2,1), - (1,1,49,2,3,1080220197,\'Images\',14,1080220197,\'e7ff633c6b8e0fd3531e74c6e712bead\',3,1), - (1,1,50,2,3,1080220220,\'Files\',14,1080220220,\'732a5acd01b51a6fe6eab448ad4138a9\',3,1), - (1,1,51,2,3,1080220233,\'Multimedia\',14,1080220233,\'09082deb98662a104f325aaa8c4933d3\',3,1)'); - $this->addSql('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,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',1,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,119,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>\',\'ezrichtext\',2,\'eng-GB\',3,0,\'\',9), - (0,7,4,NULL,NULL,\'Main group\',\'ezstring\',7,\'eng-GB\',3,0,\'\',1), - (0,6,4,NULL,NULL,\'Users\',\'ezstring\',8,\'eng-GB\',3,0,\'\',1), - (0,8,10,0,0,\'Anonymous\',\'ezstring\',19,\'eng-GB\',3,0,\'anonymous\',2), - (0,9,10,0,0,\'User\',\'ezstring\',20,\'eng-GB\',3,0,\'user\',2), - (0,12,10,0,0,\'\',\'ezuser\',21,\'eng-GB\',3,0,\'\',2), - (0,6,11,0,0,\'Guest accounts\',\'ezstring\',22,\'eng-GB\',3,0,\'\',1), - (0,7,11,0,0,\'\',\'ezstring\',23,\'eng-GB\',3,0,\'\',1), - (0,6,12,0,0,\'Administrator users\',\'ezstring\',24,\'eng-GB\',3,0,\'\',1), - (0,7,12,0,0,\'\',\'ezstring\',25,\'eng-GB\',3,0,\'\',1), - (0,6,13,0,0,\'Editors\',\'ezstring\',26,\'eng-GB\',3,0,\'\',1), - (0,7,13,0,0,\'\',\'ezstring\',27,\'eng-GB\',3,0,\'\',1), - (0,8,14,0,0,\'Administrator\',\'ezstring\',28,\'eng-GB\',3,0,\'administrator\',3), - (0,9,14,0,0,\'User\',\'ezstring\',29,\'eng-GB\',3,0,\'user\',3), - (30,12,14,0,0,\'\',\'ezuser\',30,\'eng-GB\',3,0,\'\',3), - (0,4,41,0,0,\'Media\',\'ezstring\',98,\'eng-GB\',3,0,\'\',1), - (0,119,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',99,\'eng-GB\',3,0,\'\',1), - (0,6,42,0,0,\'Anonymous users\',\'ezstring\',100,\'eng-GB\',3,0,\'anonymous users\',1), - (0,7,42,0,0,\'User group for the anonymous user\',\'ezstring\',101,\'eng-GB\',3,0,\'user group for the anonymous user\',1), - (0,155,1,NULL,NULL,\'Ibexa Platform\',\'ezstring\',102,\'eng-GB\',3,0,\'ibexa platform\',9), - (0,155,41,0,0,\'\',\'ezstring\',103,\'eng-GB\',3,0,\'\',1), - (0,156,1,NULL,NULL,\'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It\'\'s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>\',\'ezrichtext\',104,\'eng-GB\',3,0,\'\',9), - (0,156,41,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',105,\'eng-GB\',3,0,\'\',1), - (0,4,49,0,0,\'Images\',\'ezstring\',142,\'eng-GB\',3,0,\'images\',1), - (0,155,49,0,0,\'\',\'ezstring\',143,\'eng-GB\',3,0,\'\',1), - (0,119,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',144,\'eng-GB\',3,0,\'\',1), - (0,156,49,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',145,\'eng-GB\',3,0,\'\',1), - (0,4,50,0,0,\'Files\',\'ezstring\',147,\'eng-GB\',3,0,\'files\',1), - (0,155,50,0,0,\'\',\'ezstring\',148,\'eng-GB\',3,0,\'\',1), - (0,119,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',149,\'eng-GB\',3,0,\'\',1), - (0,156,50,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',150,\'eng-GB\',3,0,\'\',1), - (0,4,51,0,0,\'Multimedia\',\'ezstring\',152,\'eng-GB\',3,0,\'multimedia\',1), - (0,155,51,0,0,\'\',\'ezstring\',153,\'eng-GB\',3,0,\'\',1), - (0,119,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',154,\'eng-GB\',3,0,\'\',1), - (0,156,51,0,1045487555,\'<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?>\\n<section xmlns=\\"http://docbook.org/ns/docbook\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xmlns:ezxhtml=\\"http://ibexa.co/xmlns/dxp/docbook/xhtml\\" xmlns:ezcustom=\\"http://ibexa.co/xmlns/dxp/docbook/custom\\" version=\\"5.0-variant ezpublish-1.0\\"/>\\n\',\'ezrichtext\',155,\'eng-GB\',3,0,\'\',1), - (0,179,10,0,0,\'\',\'eztext\',177,\'eng-GB\',3,0,\'\',2), - (0,179,14,0,0,\'\',\'eztext\',178,\'eng-GB\',3,0,\'\',3), - (0,180,10,0,0,\'\',\'ezimage\',179,\'eng-GB\',3,0,\'\',2), - (0,180,14,0,0,\'<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\\n<ezimage serial_number=\\"1\\" is_valid=\\"\\" filename=\\"\\" suffix=\\"\\" basename=\\"\\" dirpath=\\"\\" url=\\"\\" original_filename=\\"\\" mime_type=\\"\\" width=\\"\\" height=\\"\\" alternative_text=\\"\\" alias_key=\\"1293033771\\" timestamp=\\"1301057722\\"><original attribute_id=\\"180\\" attribute_version=\\"3\\" attribute_language=\\"eng-GB\\"/></ezimage>\\n\',\'ezimage\',180,\'eng-GB\',3,0,\'\',3)'); - $this->addSql('INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) -VALUES (\'eng-GB\',9,1,2,\'Ibexa Platform\',\'eng-GB\'), - (\'eng-GB\',1,4,3,\'Users\',\'eng-GB\'), - (\'eng-GB\',2,10,3,\'Anonymous User\',\'eng-GB\'), - (\'eng-GB\',1,11,3,\'Guest accounts\',\'eng-GB\'), - (\'eng-GB\',1,12,3,\'Administrator users\',\'eng-GB\'), - (\'eng-GB\',1,13,3,\'Editors\',\'eng-GB\'), - (\'eng-GB\',3,14,3,\'Administrator User\',\'eng-GB\'), - (\'eng-GB\',1,41,3,\'Media\',\'eng-GB\'), - (\'eng-GB\',1,42,3,\'Anonymous users\',\'eng-GB\'), - (\'eng-GB\',1,49,3,\'Images\',\'eng-GB\'), - (\'eng-GB\',1,50,3,\'Files\',\'eng-GB\'), - (\'eng-GB\',1,51,3,\'Multimedia\',\'eng-GB\')'); - $this->addSql('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 (0,1,1,0,0,0,1,1448999778,1,1,\'\',\'/1/\',0,\'629709ba256fe317c3ddcee35453a96a\',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,\'node_2\',\'/1/2/\',0,\'f3e90596361e31d496d4026eb624c983\',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,\'users\',\'/1/5/\',0,\'3f6d92f8044aed134f32153517850f5a\',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,\'users/guest_accounts\',\'/1/5/12/\',0,\'602dcf84765e56b7f999eaafd3821dd3\',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,\'users/administrator_users\',\'/1/5/13/\',0,\'769380b7aa94541679167eab817ca893\',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,\'users/editors\',\'/1/5/14/\',0,\'f7dda2854fc68f7c8455d9cb14bd04a9\',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,\'users/administrator_users/administrator_user\',\'/1/5/13/15/\',0,\'e5161a99f733200b9ed4e80f9c16187b\',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,\'media\',\'/1/43/\',0,\'75c715a51699d2d309a924eca6a95145\',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,\'users/anonymous_users\',\'/1/5/44/\',0,\'4fdf0072da953bb276c0c7e0141c5c9b\',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,\'users/anonymous_users/anonymous_user\',\'/1/5/44/45/\',0,\'2cf8343bee7b482bab82b269d8fecd76\',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,\'media/images\',\'/1/43/51/\',0,\'1b26c0454b09bb49dfb1b9190ffd67cb\',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,\'media/files\',\'/1/43/52/\',0,\'0b113a208f7890f9ad3c24444ff5988c\',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,\'media/multimedia\',\'/1/43/53/\',0,\'4f18b82c75f10aad476cae5adf98c11f\',9,1)'); - $this->addSql('INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) -VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0)'); - $this->addSql('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 (8,2,0,4,1,2,5,\'\',\'0\',1,1,0,0), - (42,1,0,5,1,2,5,\'\',\'0\',9,1,0,0), - (10,2,-1,6,1,2,44,\'\',\'0\',9,1,0,0), - (4,1,0,7,1,2,1,\'\',\'0\',1,1,0,0), - (12,1,0,8,1,2,5,\'\',\'0\',1,1,0,0), - (13,1,0,9,1,2,5,\'\',\'0\',1,1,0,0), - (41,1,0,11,1,2,1,\'\',\'0\',1,1,0,0), - (11,1,0,12,1,2,5,\'\',\'0\',1,1,0,0), - (49,1,0,27,1,2,43,\'\',\'0\',9,1,0,0), - (50,1,0,28,1,2,43,\'\',\'0\',9,1,0,0), - (51,1,0,29,1,2,43,\'\',\'0\',9,1,0,0), - (14,3,-1,38,1,2,13,\'\',\'0\',1,1,0,0)'); - $this->addSql('INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) -VALUES (\'*\',317,\'content\',0,3), - (\'login\',319,\'user\',0,3), - (\'read\',328,\'content\',0,1), - (\'login\',331,\'user\',0,1), - (\'*\',332,\'*\',0,2), - (\'read\',333,\'content\',0,4), - (\'view_embed\',334,\'content\',0,1), - (\'*\',340,\'url\',0,3)'); - $this->addSql('INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) -VALUES (251,\'Section\',328), - (252,\'Section\',329), - (253,\'SiteAccess\',331), - (254,\'Class\',333), - (255,\'Owner\',333), - (256,\'Class\',334)'); - $this->addSql('INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) -VALUES (477,251,\'1\'), - (478,252,\'1\'), - (479,253,\'1766001124\'), - (480,254,\'4\'), - (481,255,\'1\'), - (482,256,\'5\'), - (483,256,\'12\')'); - $this->addSql('INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) -VALUES (1,0,\'Anonymous\',\'\',0), - (2,0,\'Administrator\',\'0\',0), - (3,0,\'Editor\',\'\',0), - (4,0,\'Member\',\'\',0)'); - $this->addSql('INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) -VALUES (1,\'standard\',\'\',\'Standard\',\'ezcontentnavigationpart\'), - (2,\'users\',\'\',\'Users\',\'ezusernavigationpart\'), - (3,\'media\',\'\',\'Media\',\'ezmedianavigationpart\')'); - $this->addSql('INSERT INTO `ezsite_data` (`name`, `value`) -VALUES (\'ibexa-release\',\'4.6\')'); - $this->addSql('INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) -VALUES (\'content/view/full/2\',0,12,1,1,0,\'d41d8cd98f00b204e9800998ecf8427e\',\'\'), - (\'content/view/full/5\',0,13,1,1,0,\'9bc65c2abec141778ffaa729489f3e87\',\'users\'), - (\'content/view/full/12\',0,15,1,1,0,\'02d4e844e3a660857a3f81585995ffe1\',\'users/guest_accounts\'), - (\'content/view/full/13\',0,16,1,1,0,\'1b1d79c16700fd6003ea7be233e754ba\',\'users/administrator_users\'), - (\'content/view/full/14\',0,17,1,1,0,\'0bb9dd665c96bbc1cf36b79180786dea\',\'users/editors\'), - (\'content/view/full/15\',0,18,1,1,0,\'f1305ac5f327a19b451d82719e0c3f5d\',\'users/administrator_users/administrator_user\'), - (\'content/view/full/43\',0,20,1,1,0,\'62933a2951ef01f4eafd9bdf4d3cd2f0\',\'media\'), - (\'content/view/full/44\',0,21,1,1,0,\'3ae1aac958e1c82013689d917d34967a\',\'users/anonymous_users\'), - (\'content/view/full/45\',0,22,1,1,0,\'aad93975f09371695ba08292fd9698db\',\'users/anonymous_users/anonymous_user\'), - (\'content/view/full/51\',0,28,1,1,0,\'38985339d4a5aadfc41ab292b4527046\',\'media/images\'), - (\'content/view/full/52\',0,29,1,1,0,\'ad5a8c6f6aac3b1b9df267fe22e7aef6\',\'media/files\'), - (\'content/view/full/53\',0,30,1,1,0,\'562a0ac498571c6c3529173184a2657c\',\'media/multimedia\')'); - $this->addSql('INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) -VALUES (\'nop:\',\'nop\',1,17,0,0,1,17,0,\'media2\',\'50e2736330de124f6edea9b008556fe6\'), - (\'eznode:43\',\'eznode\',1,9,0,1,3,9,0,\'Media\',\'62933a2951ef01f4eafd9bdf4d3cd2f0\'), - (\'nop:\',\'nop\',1,3,0,0,1,3,0,\'users2\',\'86425c35a33507d479f71ade53a669aa\'), - (\'eznode:5\',\'eznode\',1,2,0,1,3,2,0,\'Users\',\'9bc65c2abec141778ffaa729489f3e87\'), - (\'eznode:2\',\'eznode\',1,1,0,1,3,1,0,\'\',\'d41d8cd98f00b204e9800998ecf8427e\'), - (\'eznode:14\',\'eznode\',1,6,0,1,3,6,2,\'Editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'eznode:44\',\'eznode\',1,10,0,1,3,10,2,\'Anonymous-Users\',\'c2803c3fa1b0b5423237b4e018cae755\'), - (\'eznode:12\',\'eznode\',1,4,0,1,3,4,2,\'Guest-accounts\',\'e57843d836e3af8ab611fde9e2139b3a\'), - (\'eznode:13\',\'eznode\',1,5,0,1,3,5,2,\'Administrator-users\',\'f89fad7f8a3abc8c09e1deb46a420007\'), - (\'nop:\',\'nop\',1,11,0,0,1,11,3,\'anonymous_users2\',\'505e93077a6dde9034ad97a14ab022b1\'), - (\'eznode:12\',\'eznode\',1,26,0,0,1,4,3,\'guest_accounts\',\'70bb992820e73638731aa8de79b3329e\'), - (\'eznode:14\',\'eznode\',1,29,0,0,1,6,3,\'editors\',\'a147e136bfa717592f2bd70bd4b53b17\'), - (\'nop:\',\'nop\',1,7,0,0,1,7,3,\'administrator_users2\',\'a7da338c20bf65f9f789c87296379c2a\'), - (\'eznode:13\',\'eznode\',1,27,0,0,1,5,3,\'administrator_users\',\'aeb8609aa933b0899aa012c71139c58c\'), - (\'eznode:44\',\'eznode\',1,30,0,0,1,10,3,\'anonymous_users\',\'e9e5ad0c05ee1a43715572e5cc545926\'), - (\'eznode:15\',\'eznode\',1,8,0,1,3,8,5,\'Administrator-User\',\'5a9d7b0ec93173ef4fedee023209cb61\'), - (\'eznode:15\',\'eznode\',1,28,0,0,0,8,7,\'administrator_user\',\'a3cca2de936df1e2f805710399989971\'), - (\'eznode:53\',\'eznode\',1,20,0,1,3,20,9,\'Multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,19,0,1,3,19,9,\'Files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,18,0,1,3,18,9,\'Images\',\'59b514174bffe4ae402b3d63aad79fe0\'), - (\'eznode:45\',\'eznode\',1,12,0,1,3,12,10,\'Anonymous-User\',\'ccb62ebca03a31272430bc414bd5cd5b\'), - (\'eznode:45\',\'eznode\',1,31,0,0,1,12,11,\'anonymous_user\',\'c593ec85293ecb0e02d50d4c5c6c20eb\'), - (\'eznode:53\',\'eznode\',1,34,0,0,1,20,17,\'multimedia\',\'2e5bc8831f7ae6a29530e7f1bbf2de9c\'), - (\'eznode:52\',\'eznode\',1,33,0,0,1,19,17,\'files\',\'45b963397aa40d4a0063e0d85e4fe7a1\'), - (\'eznode:51\',\'eznode\',1,32,0,0,1,18,17,\'images\',\'59b514174bffe4ae402b3d63aad79fe0\')'); - $this->addSql('INSERT INTO `ezurlalias_ml_incr` (`id`) -VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37)'); - $this->addSql('INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) -VALUES (10,\'anonymous@link.invalid\',\'anonymous\',\'$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC\',7), - (14,\'admin@link.invalid\',\'admin\',\'$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy\',7)'); - $this->addSql('INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) -VALUES (11,28,\'\',\'\',1), - (42,31,\'\',\'\',1), - (13,32,\'Subtree\',\'/1/2/\',3), - (13,33,\'Subtree\',\'/1/43/\',3), - (12,34,\'\',\'\',2), - (13,35,\'\',\'\',4)'); - $this->addSql('INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) -VALUES (1,1000,10), - (1,10,14)'); - $this->addSql('INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT \'focus_mode\', u.contentobject_id, \'0\' FROM `ezuser` u WHERE u.login = \'admin\''); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) + VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) + VALUES (2,2,'ez_lock',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) + VALUES (2,'',3,'Lock',2) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) + VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) + VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) + VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) + VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) + VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) + VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) + VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) + VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) + VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + SQL); + $this->addSql(<<<'SQL' + 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) + VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') + SQL); + $this->addSql(<<<'SQL' + 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) + VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + SQL); + $this->addSql(<<<'SQL' + 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) + VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) + VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) + VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) + VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) + VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezsite_data` (`name`, `value`) + VALUES ('ibexa-release','4.6') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) + VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) + VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezurlalias_ml_incr` (`id`) + VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) + VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) + VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) + VALUES (1,1000,10), + (1,10,14) + SQL); + $this->addSql(<<<'SQL' + INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) + SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' + SQL); } else { $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index f10165ccc5..4ea895845e 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -36,79 +36,846 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { if ($this->platform instanceof MySqlPlatform) { - $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT \'0\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT \'0\' NOT NULL, status TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT \'0\' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE'); - $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE'); + $this->addSql(<<<'SQL' + CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_priority (priority), + INDEX ezcobj_state_lmask (language_mask), + UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_group_lmask (language_mask), + UNIQUE INDEX ezcobj_state_group_identifier (identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontent_language_name (name(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + UNIQUE INDEX ezuser_login (login), + PRIMARY KEY(contentobject_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_tree ( + node_id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + INDEX ezcontentobject_tree_p_node_id (parent_node_id), + INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), + INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), + INDEX ezcontentobject_tree_co_id (contentobject_id), + INDEX ezcontentobject_tree_depth (depth), + INDEX ezcontentobject_tree_path (path_string(191)), + INDEX modified_subnode (modified_subnode), + INDEX ezcontentobject_tree_remote_id (remote_id), + PRIMARY KEY(node_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentbrowsebookmark ( + id INT AUTO_INCREMENT NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentbrowsebookmark_location (node_id), + INDEX ezcontentbrowsebookmark_user (user_id), + INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + INDEX ezcontentclass_version (version), + INDEX ezcontentclass_identifier (identifier, version), + PRIMARY KEY(id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text LONGTEXT DEFAULT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT NOT NULL, + INDEX ezcontentclass_attr_ccid (contentclass_id), + INDEX ezcontentclass_attr_dts (data_type_string), + PRIMARY KEY(id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + INDEX ezcontentclass_attribute_ml_lang_fk (language_id), + PRIMARY KEY(contentclass_attribute_id, version, language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclassgroup ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system TINYINT(1) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezcontentobject_classid (contentclass_id), + INDEX ezcontentobject_lmask (language_mask), + INDEX ezcontentobject_pub (published), + INDEX ezcontentobject_section (section_id), + INDEX ezcontentobject_currentversion (current_version), + INDEX ezcontentobject_owner (owner_id), + INDEX ezcontentobject_status (status), + UNIQUE INDEX ezcontentobject_remote_id (remote_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), + INDEX ezcontentobject_classattr_id (contentclassattribute_id), + INDEX sort_key_string (sort_key_string(191)), + INDEX ezcontentobject_attribute_language_code (language_code), + INDEX sort_key_int (sort_key_int), + INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), + PRIMARY KEY(id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + INDEX ezco_link_to_co_id (to_contentobject_id), + INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), + INDEX ezco_link_cca_id (contentclassattribute_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + INDEX ezcontentobject_name_lang_id (language_id), + INDEX ezcontentobject_name_cov_id (content_version), + INDEX ezcontentobject_name_name (name(191)), + PRIMARY KEY(contentobject_id, content_version, content_translation) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + INDEX ezcobj_trash_depth (depth), + INDEX ezcobj_trash_p_node_id (parent_node_id), + INDEX ezcobj_trash_path_ident (path_identification_string(50)), + INDEX ezcobj_trash_co_id (contentobject_id), + INDEX ezcobj_trash_modified_subnode (modified_subnode), + INDEX ezcobj_trash_path (path_string(191)), + PRIMARY KEY(node_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_version ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + INDEX ezcobj_version_status (status), + INDEX idx_object_version_objver (contentobject_id, version), + INDEX ezcontobj_version_obj_status (contentobject_id, status), + INDEX ezcobj_version_creator_id (creator_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired TINYINT(1) DEFAULT '0' NOT NULL, + status TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezdfsfile_name_trunk (name_trunk(191)), + INDEX ezdfsfile_expired_name (expired, name(191)), + INDEX ezdfsfile_name (name(191)), + INDEX ezdfsfile_mtime (mtime), + PRIMARY KEY(name_hash) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + INDEX latitude_longitude_key (latitude, longitude), + PRIMARY KEY(contentobject_attribute_id, contentobject_version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezimagefile ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath LONGTEXT NOT NULL, + INDEX ezimagefile_file (filepath(191)), + INDEX ezimagefile_coid (contentobject_attribute_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword ( + id INT AUTO_INCREMENT NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + INDEX ezkeyword_keyword (keyword(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword_attribute_link ( + id INT AUTO_INCREMENT NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + INDEX ezkeyword_attr_link_oaid (objectattribute_id), + INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), + INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznode_assignment ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + INDEX eznode_assignment_is_main (is_main), + INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), + INDEX eznode_assignment_parent_node (parent_node), + INDEX eznode_assignment_co_version (contentobject_version), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznotification ( + id INT AUTO_INCREMENT NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending TINYINT(1) DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data LONGTEXT DEFAULT NULL, + INDEX eznotification_owner_is_pending (owner_id, is_pending), + INDEX eznotification_owner (owner_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpackage ( + id INT AUTO_INCREMENT NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy ( + id INT AUTO_INCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + INDEX ezpolicy_role_id (role_id), + INDEX ezpolicy_original_id (original_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + INDEX policy_id (policy_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation_value ( + id INT AUTO_INCREMENT NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + INDEX ezpolicy_limit_value_limit_id (limitation_id), + INDEX ezpolicy_limitation_value_val (value(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpreferences ( + id INT AUTO_INCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value LONGTEXT DEFAULT NULL, + INDEX ezpreferences_user_id_idx (user_id, name), + INDEX ezpreferences_name (name), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezrole ( + id INT AUTO_INCREMENT NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_object_word_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezsearch_object_word_link_object (contentobject_id), + INDEX ezsearch_object_word_link_identifier (identifier(191)), + INDEX ezsearch_object_word_link_integer_value (integer_value), + INDEX ezsearch_object_word_link_word (word_id), + INDEX ezsearch_object_word_link_frequency (frequency), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_word ( + id INT AUTO_INCREMENT NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + INDEX ezsearch_word_word_i (word), + INDEX ezsearch_word_obj_count (object_count), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsection ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value LONGTEXT NOT NULL, + PRIMARY KEY(name) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url LONGTEXT DEFAULT NULL, + INDEX ezurl_url (url(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL, + INDEX ezurl_ol_coa_id (contentobject_attribute_id), + INDEX ezurl_ol_url_id (url_id), + INDEX ezurl_ol_coa_version (contentobject_attribute_version), + INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url LONGTEXT NOT NULL, + INDEX ezurlalias_source_md5 (source_md5), + INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), + INDEX ezurlalias_forward_to_id (forward_to_id), + INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), + INDEX ezurlalias_source_url (source_url(191)), + INDEX ezurlalias_desturl (destination_url(191)), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action LONGTEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text LONGTEXT NOT NULL, + INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), + INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), + INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), + INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), + INDEX ezurlalias_ml_act_org (action(32), is_original), + INDEX ezurlalias_ml_text (text(32), id, link), + INDEX ezurlalias_ml_link (link), + INDEX ezurlalias_ml_id (id), + PRIMARY KEY(parent, text_md5) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml_incr ( + id INT AUTO_INCREMENT NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlwildcard ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + source_url LONGTEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_accountkey ( + id INT AUTO_INCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + INDEX hash_key (hash_key), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_role ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + INDEX ezuser_role_role_id (role_id), + INDEX ezuser_role_contentobject_id (contentobject_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_setting ( + id INT AUTO_INCREMENT NOT NULL, + `group` VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + INDEX ibexa_setting_id (id), + UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token_type ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL, + UNIQUE INDEX ibexa_token_type_unique (identifier), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token ( + id INT AUTO_INCREMENT NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked TINYINT(1) DEFAULT '0' NOT NULL, + INDEX IDX_B5412887C54C8C93 (type_id), + UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), + PRIMARY KEY(id) + ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE + SQL); $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE'); } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); - $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql('CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + PRIMARY KEY(contentobject_id) + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql('CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_tree ( + node_id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + PRIMARY KEY(node_id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); @@ -117,22 +884,140 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentbrowsebookmark ( + id SERIAL NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql('CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id, version) + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'false\' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text TEXT DEFAULT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT NOT NULL, + PRIMARY KEY(id, version) + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); - $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); - $this->addSql('CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclassgroup ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject ( + id SERIAL NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); @@ -141,97 +1026,389 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql('CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id, version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id, version) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql('CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_link ( + id SERIAL NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql('CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_version ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'false\' NOT NULL, status BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT 'false' NOT NULL, + status BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(name_hash) + ) + SQL); $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) + ) + SQL); $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql('CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezimagefile ( + id SERIAL NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath TEXT NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql('CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword ( + id SERIAL NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql('CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword_attribute_link ( + id SERIAL NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznode_assignment ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql('CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'true\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE eznotification ( + id SERIAL NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT 'true' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data TEXT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql('CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpackage ( + id SERIAL NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy ( + id SERIAL NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation_value ( + id SERIAL NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql('CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpreferences ( + id SERIAL NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value TEXT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql('CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezrole ( + id SERIAL NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_object_word_link ( + id SERIAL NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql('CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_word ( + id SERIAL NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql('CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\', PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name))'); - $this->addSql('CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsection ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value TEXT NOT NULL, + PRIMARY KEY(name) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url TEXT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql('CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url TEXT NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql('CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action TEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text TEXT NOT NULL, + PRIMARY KEY(parent, text_md5) + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent)'); @@ -240,43 +1417,199 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql('CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); - $this->addSql('CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml_incr ( + id SERIAL NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlwildcard ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + source_url TEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_accountkey ( + id SERIAL NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql('CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INT DEFAULT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_role ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql('CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id))'); - $this->addSql('CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_setting ( + id SERIAL NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql('CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token_type ( + id SERIAL NOT NULL, + identifier VARCHAR(64) NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql('CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'false\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token ( + id SERIAL NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); - $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE'); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); + $this->addSql(<<<'SQL' + ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + SQL); } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql('CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, mime_type VARCHAR(255) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + download_count INTEGER DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT \'\' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql('CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id))'); - $this->addSql('CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id))'); - $this->addSql('CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_language ( + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcobj_state_link ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INTEGER DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) + ) + SQL); $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql('CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT \'\' NOT NULL, login VARCHAR(150) DEFAULT \'\' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INTEGER DEFAULT 1 NOT NULL, + password_updated_at INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_id) + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql('CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_tree ( + node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_is_published INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1 + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); @@ -285,22 +1618,138 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql('CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentbrowsebookmark ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + node_id INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, + CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + ) + SQL); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql('CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + always_available INTEGER DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB DEFAULT NULL, + sort_field INTEGER DEFAULT 1 NOT NULL, + sort_order INTEGER DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT \'\' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\' NOT NULL, identifier VARCHAR(50) DEFAULT \'\' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT \'0\' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + can_translate INTEGER DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INTEGER DEFAULT NULL, + data_int2 INTEGER DEFAULT NULL, + data_int3 INTEGER DEFAULT NULL, + data_int4 INTEGER DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INTEGER DEFAULT 0 NOT NULL, + is_required INTEGER DEFAULT 0 NOT NULL, + is_searchable INTEGER DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + serialized_data_text CLOB DEFAULT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql('CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INTEGER NOT NULL, + version INTEGER NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description CLOB DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_json CLOB DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id), + CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + ) + SQL); $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql('CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id))'); - $this->addSql('CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT \'\' NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id))'); - $this->addSql('CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT \'0\' NOT NULL)'); - $this->addSql('CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT \'0\' NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclass_name ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentclassgroup ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT '0' NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + current_version INTEGER DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0, + is_hidden BOOLEAN DEFAULT '0' NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); @@ -309,97 +1758,370 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql('CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT \'\', language_code VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT \'\' NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + attribute_original_id INTEGER DEFAULT 0, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INTEGER DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INTEGER DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql('CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_version INTEGER DEFAULT 0 NOT NULL, + relation_type INTEGER DEFAULT 1 NOT NULL, + to_contentobject_id INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql('CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT \'\' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_name ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + content_version INTEGER DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) + ) + SQL); $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql('CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT \'\' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_trash ( + node_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + trashed INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) + ) + SQL); $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql('CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezcontentobject_version ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + workflow_event_pos INTEGER DEFAULT 0 + ) + SQL); $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql('CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT \'\' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT \'application/octet-stream\' NOT NULL, scope VARCHAR(25) DEFAULT \'\' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT \'0\' NOT NULL, status BOOLEAN DEFAULT \'0\' NOT NULL, PRIMARY KEY(name_hash))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name CLOB NOT NULL, + name_trunk CLOB NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INTEGER DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT '0' NOT NULL, + status BOOLEAN DEFAULT '0' NOT NULL, + PRIMARY KEY(name_hash) + ) + SQL); $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql('CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, longitude DOUBLE PRECISION DEFAULT \'0\' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_version INTEGER DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) + ) + SQL); $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql('CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezimagefile ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + filepath CLOB NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql('CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + class_id INTEGER DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql('CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezkeyword_attribute_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + keyword_id INTEGER DEFAULT 0 NOT NULL, + objectattribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql('CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT \'\' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT \'\' NOT NULL, original_filename VARCHAR(255) DEFAULT \'\' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version))'); - $this->addSql('CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT \'\' NOT NULL, remote_id VARCHAR(100) DEFAULT \'0\' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezmedia ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INTEGER DEFAULT 0, + height INTEGER DEFAULT NULL, + is_autoplay INTEGER DEFAULT 0, + is_loop INTEGER DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE eznode_assignment ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + from_node_id INTEGER DEFAULT 0, + is_main INTEGER DEFAULT 0 NOT NULL, + op_code INTEGER DEFAULT 0 NOT NULL, + parent_node INTEGER DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + priority INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql('CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT \'1\' NOT NULL, type VARCHAR(128) DEFAULT \'\' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE eznotification ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + data CLOB DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql('CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT \'\' NOT NULL, version VARCHAR(30) DEFAULT \'0\' NOT NULL)'); - $this->addSql('CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpackage ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + install_date INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INTEGER DEFAULT 0 NOT NULL, + role_id INTEGER DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, policy_id INTEGER DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INTEGER DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql('CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpolicy_limitation_value ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + limitation_id INTEGER DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql('CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezpreferences ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + value CLOB DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql('CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT \'\' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0)'); - $this->addSql('CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT \'0\' NOT NULL, identifier VARCHAR(255) DEFAULT \'\' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezrole ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + is_new INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INTEGER DEFAULT 0 + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_object_word_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INTEGER DEFAULT 0 NOT NULL, + next_word_id INTEGER DEFAULT 0 NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + prev_word_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + word_id INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql('CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsearch_word ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + object_count INTEGER DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql('CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT \'ezcontentnavigationpart\')'); - $this->addSql('CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT \'\' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name))'); - $this->addSql('CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, url CLOB DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezsection ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value CLOB NOT NULL, + PRIMARY KEY(name) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + is_valid INTEGER DEFAULT 1 NOT NULL, + last_checked INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url CLOB DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql('CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, + url_id INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql('CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + forward_to_id INTEGER DEFAULT 0 NOT NULL, + is_imported INTEGER DEFAULT 0 NOT NULL, + is_internal INTEGER DEFAULT 1 NOT NULL, + is_wildcard INTEGER DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url CLOB NOT NULL + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql('CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT \'\' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT \'\' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5))'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml ( + parent INTEGER DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + "action" CLOB NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INTEGER DEFAULT 1 NOT NULL, + id INTEGER DEFAULT 0 NOT NULL, + is_alias INTEGER DEFAULT 0 NOT NULL, + is_original INTEGER DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INTEGER DEFAULT 0 NOT NULL, + text CLOB NOT NULL, + PRIMARY KEY(parent, text_md5) + ) + SQL); $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent)'); @@ -408,21 +2130,76 @@ public function up(Schema $schema): void $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql('CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)'); - $this->addSql('CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL)'); - $this->addSql('CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT \'\' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlalias_ml_incr ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezurlwildcard ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + source_url CLOB NOT NULL, + type INTEGER DEFAULT 0 NOT NULL + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_accountkey ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL + ) + SQL); $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql('CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT \'\', limit_value VARCHAR(255) DEFAULT \'\', role_id INTEGER DEFAULT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_role ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INTEGER DEFAULT NULL + ) + SQL); $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql('CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id))'); - $this->addSql('CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) -)'); + $this->addSql(<<<'SQL' + CREATE TABLE ezuser_setting ( + user_id INTEGER DEFAULT 0 NOT NULL, + is_enabled INTEGER DEFAULT 0 NOT NULL, + max_login INTEGER DEFAULT NULL, + PRIMARY KEY(user_id) + ) + SQL); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_setting ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value CLOB NOT NULL --(DC2Type:json) + ) + SQL); $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql('CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL)'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token_type ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL + ) + SQL); $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql('CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT \'0\' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE)'); + $this->addSql(<<<'SQL' + CREATE TABLE ibexa_token ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + type_id INTEGER NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + expires INTEGER DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT '0' NOT NULL, + CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + ) + SQL); $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); } else { From 4bcfa9fae79602efc48deb9607c0e7aa6a81c028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Tue, 21 Jul 2026 17:12:34 +0200 Subject: [PATCH 53/88] IBX-11939: Adopted AbstractSqlMigration for platform-separated SQL Extends AbstractSqlMigration (added in ibexa/doctrine-migrations) instead of the plain Doctrine AbstractMigration, replacing `$this->platform instanceof ...` checks with isMySQL()/isPostgreSQL()/isSqlite(), and moving each platform Statement block out of the PHP file into its own sql/*.sql file loaded via addSqlFile(). Mechanical, content-preserving change: every migration was run before and after against all three platforms and the resulting SQL statement lists are byte-for-byte identical. --- .../Migration/ImportDataMigration.php | 1057 +------- .../Migration/InstallSchemaMigration.php | 2182 +---------------- .../Migration/sql/import-data-mysql.sql | 304 +++ .../Migration/sql/import-data-postgresql.sql | 367 +++ .../Migration/sql/import-data-sqlite.sql | 304 +++ .../Migration/sql/install-schema-mysql.sql | 679 +++++ .../sql/install-schema-postgresql.sql | 790 ++++++ .../Migration/sql/install-schema-sqlite.sql | 752 ++++++ 8 files changed, 3212 insertions(+), 3223 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 47b68b5ddd..5394841dca 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -9,14 +9,11 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Doctrine\DBAL\Platforms\MySqlPlatform; -use Doctrine\DBAL\Platforms\PostgreSqlPlatform; -use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; -use Doctrine\Migrations\AbstractMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -final class ImportDataMigration extends AbstractMigration implements IbexaMigrationInterface +final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -35,1050 +32,12 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - if ($this->platform instanceof MySqlPlatform) { - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) - VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) - VALUES (2,2,'ez_lock',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) - VALUES (2,'',3,'Lock',2) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) - VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) - VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) - VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) - VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) - VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) - VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) - VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) - VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) - VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) - SQL); - $this->addSql(<<<'SQL' - 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) - VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') - SQL); - $this->addSql(<<<'SQL' - 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) - VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) - SQL); - $this->addSql(<<<'SQL' - 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) - VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) - VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) - VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) - VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) - VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsite_data` (`name`, `value`) - VALUES ('ibexa-release','4.6') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) - VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) - VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml_incr` (`id`) - VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) - VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) - VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) - VALUES (1,1000,10), - (1,10,14) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) - SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' - SQL); - } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") - VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") - VALUES (2, 2, 'ez_lock', 3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") - VALUES (2, '', 3, 'Lock', 2) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") - VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") - VALUES ( 1, 1), - ( 4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") - VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") - VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") - VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") - VALUES (1,0,1,'Content'), - (2,0,1,'Content'), - (3,0,2,'Users'), - (4,0,2,'Users'), - (5,0,3,'Media'), - (12,0,3,'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") - VALUES (1,0,2,'eng-GB','Folder'), - (2,0,3,'eng-GB','Article'), - (3,0,3,'eng-GB','User group'), - (4,0,3,'eng-GB','User'), - (5,0,3,'eng-GB','Image'), - (12,0,3,'eng-GB','File') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") - VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") - VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) - SQL); - $this->addSql(<<<'SQL' - 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") - VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') - SQL); - $this->addSql(<<<'SQL' - 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") - VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) - SQL); - $this->addSql(<<<'SQL' - 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") - VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") - VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") - VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") - VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") - VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezsite_data" ("name", "value") - VALUES ('ibexa-release','4.6') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") - VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") - VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezurlalias_ml_incr" ("id") - VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") - VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") - VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") - VALUES (1, 1000, 10), - (1, 10, 14) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO "ezpreferences" ("name", "user_id", "value") - SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' - SQL); - $this->addSql(<<<'SQL' - -- Set proper sequence values after inserting data - SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group - SQL); - $this->addSql('SELECT SETVAL(\'ezcobj_state_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcobj_state'); - $this->addSql('SELECT SETVAL(\'ezcontentbrowsebookmark_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark'); - $this->addSql('SELECT SETVAL(\'ezcontentclass_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute'); - $this->addSql('SELECT SETVAL(\'ezcontentclass_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclass'); - $this->addSql('SELECT SETVAL(\'ezcontentclassgroup_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_attribute_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_tree_node_id_seq\', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree'); - $this->addSql('SELECT SETVAL(\'ezcontentobject_version_id_seq\', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version'); - $this->addSql('SELECT SETVAL(\'ezimagefile_id_seq\', COALESCE(MAX(id), 1) ) FROM ezimagefile'); - $this->addSql('SELECT SETVAL(\'ezkeyword_attribute_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link'); - $this->addSql('SELECT SETVAL(\'ezkeyword_id_seq\', COALESCE(MAX(id), 1) ) FROM ezkeyword'); - $this->addSql('SELECT SETVAL(\'eznode_assignment_id_seq\', COALESCE(MAX(id), 1) ) FROM eznode_assignment'); - $this->addSql('SELECT SETVAL(\'eznotification_id_seq\', COALESCE(MAX(id), 1) ) FROM eznotification'); - $this->addSql('SELECT SETVAL(\'ezpackage_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpackage'); - $this->addSql('SELECT SETVAL(\'ezpolicy_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy'); - $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation'); - $this->addSql('SELECT SETVAL(\'ezpolicy_limitation_value_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value'); - $this->addSql('SELECT SETVAL(\'ezpreferences_id_seq\', COALESCE(MAX(id), 1) ) FROM ezpreferences'); - $this->addSql('SELECT SETVAL(\'ezrole_id_seq\', COALESCE(MAX(id), 1) ) FROM ezrole'); - $this->addSql('SELECT SETVAL(\'ezsearch_object_word_link_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link'); - $this->addSql('SELECT SETVAL(\'ezsearch_word_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsearch_word'); - $this->addSql('SELECT SETVAL(\'ezsection_id_seq\', COALESCE(MAX(id), 1) ) FROM ezsection'); - $this->addSql('SELECT SETVAL(\'ezurl_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurl'); - $this->addSql('SELECT SETVAL(\'ezurlalias_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias'); - $this->addSql('SELECT SETVAL(\'ezurlalias_ml_incr_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr'); - $this->addSql('SELECT SETVAL(\'ezurlwildcard_id_seq\', COALESCE(MAX(id), 1) ) FROM ezurlwildcard'); - $this->addSql('SELECT SETVAL(\'ezuser_accountkey_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey'); - $this->addSql('SELECT SETVAL(\'ezuser_role_id_seq\', COALESCE(MAX(id), 1) ) FROM ezuser_role'); - } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) - VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) - VALUES (2,2,'ez_lock',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) - VALUES (2,'',3,'Lock',2) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) - VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) - VALUES (1, 1), - (4, 1), - (10, 1), - (11, 1), - (12, 1), - (13, 1), - (14, 1), - (41, 1), - (42, 1), - (49, 1), - (50, 1), - (51, 1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) - VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) - VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) - VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) - VALUES (1, 0, 1, 'Content'), - (2, 0, 1, 'Content'), - (3, 0, 2, 'Users'), - (4, 0, 2, 'Users'), - (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) - VALUES (1, 0, 2, 'eng-GB', 'Folder'), - (2, 0, 3, 'eng-GB', 'Article'), - (3, 0, 3, 'eng-GB', 'User group'), - (4, 0, 3, 'eng-GB', 'User'), - (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) - VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), - (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) - VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), - (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), - (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), - (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), - (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), - (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), - (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), - (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), - (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), - (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), - (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) - SQL); - $this->addSql(<<<'SQL' - 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), - (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), - (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), - (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), - (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), - (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), - (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), - (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), - (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), - (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), - (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), - (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), - (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), - (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), - (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), - (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), - (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), - (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), - (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), - (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), - (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), - (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), - (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), - (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), - (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), - (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), - (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), - (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), - (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), - (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), - (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) - VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), - ('eng-GB',1,4,3,'Users','eng-GB'), - ('eng-GB',2,10,3,'Anonymous User','eng-GB'), - ('eng-GB',1,11,3,'Guest accounts','eng-GB'), - ('eng-GB',1,12,3,'Administrator users','eng-GB'), - ('eng-GB',1,13,3,'Editors','eng-GB'), - ('eng-GB',3,14,3,'Administrator User','eng-GB'), - ('eng-GB',1,41,3,'Media','eng-GB'), - ('eng-GB',1,42,3,'Anonymous users','eng-GB'), - ('eng-GB',1,49,3,'Images','eng-GB'), - ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') - SQL); - $this->addSql(<<<'SQL' - 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), - (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), - (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), - (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), - (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), - (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), - (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), - (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), - (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), - (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), - (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), - (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) - VALUES (4,0,14,4,2,3,0,1,0,1,1), - (11,1033920737,14,439,2,3,1033920746,1,0,1,0), - (12,1033920760,14,440,2,3,1033920775,1,0,1,0), - (13,1033920786,14,441,2,3,1033920794,1,0,1,0), - (41,1060695450,14,472,2,3,1060695457,1,0,1,0), - (42,1072180278,14,473,2,3,1072180330,1,0,1,0), - (10,1072180337,14,474,2,3,1072180405,1,0,2,0), - (49,1080220181,14,488,2,3,1080220197,1,0,1,0), - (50,1080220211,14,489,2,3,1080220220,1,0,1,0), - (51,1080220225,14,490,2,3,1080220233,1,0,1,0), - (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) - SQL); - $this->addSql(<<<'SQL' - 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), - (42,1,0,5,1,2,5,'','0',9,1,0,0), - (10,2,-1,6,1,2,44,'','0',9,1,0,0), - (4,1,0,7,1,2,1,'','0',1,1,0,0), - (12,1,0,8,1,2,5,'','0',1,1,0,0), - (13,1,0,9,1,2,5,'','0',1,1,0,0), - (41,1,0,11,1,2,1,'','0',1,1,0,0), - (11,1,0,12,1,2,5,'','0',1,1,0,0), - (49,1,0,27,1,2,43,'','0',9,1,0,0), - (50,1,0,28,1,2,43,'','0',9,1,0,0), - (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) - VALUES ('*',317,'content',0,3), - ('login',319,'user',0,3), - ('read',328,'content',0,1), - ('login',331,'user',0,1), - ('*',332,'*',0,2), - ('read',333,'content',0,4), - ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) - VALUES (251,'Section',328), - (252,'Section',329), - (253,'SiteAccess',331), - (254,'Class',333), - (255,'Owner',333), - (256,'Class',334) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) - VALUES (477,251,'1'), - (478,252,'1'), - (479,253,'1766001124'), - (480,254,'4'), - (481,255,'1'), - (482,256,'5'), - (483,256,'12') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) - VALUES (1,0,'Anonymous','',0), - (2,0,'Administrator','0',0), - (3,0,'Editor','',0), - (4,0,'Member','',0) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) - VALUES (1,'standard','','Standard','ezcontentnavigationpart'), - (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezsite_data` (`name`, `value`) - VALUES ('ibexa-release','4.6') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) - VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), - ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), - ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), - ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), - ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), - ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), - ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), - ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), - ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), - ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), - ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) - VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), - ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), - ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), - ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), - ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), - ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), - ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), - ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), - ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), - ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), - ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), - ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), - ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), - ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), - ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), - ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), - ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), - ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), - ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), - ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), - ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), - ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezurlalias_ml_incr` (`id`) - VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), - (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) - VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) - VALUES (11,28,'','',1), - (42,31,'','',1), - (13,32,'Subtree','/1/2/',3), - (13,33,'Subtree','/1/43/',3), - (12,34,'','',2), - (13,35,'','',4) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) - VALUES (1,1000,10), - (1,10,14) - SQL); - $this->addSql(<<<'SQL' - INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) - SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' - SQL); - } else { - $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/import-data-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/import-data-sqlite.sql'); } } } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index 4ea895845e..566d742d66 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -9,14 +9,11 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; use DateTimeImmutable; -use Doctrine\DBAL\Platforms\MySqlPlatform; -use Doctrine\DBAL\Platforms\PostgreSqlPlatform; -use Doctrine\DBAL\Platforms\SqlitePlatform; use Doctrine\DBAL\Schema\Schema; -use Doctrine\Migrations\AbstractMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -final class InstallSchemaMigration extends AbstractMigration implements IbexaMigrationInterface +final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { public function getDescription(): string { @@ -35,2175 +32,12 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - if ($this->platform instanceof MySqlPlatform) { - $this->addSql(<<<'SQL' - CREATE TABLE ezbinaryfile ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - download_count INT DEFAULT 0 NOT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - mime_type VARCHAR(255) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state ( - id INT AUTO_INCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - priority INT DEFAULT 0 NOT NULL, - INDEX ezcobj_state_priority (priority), - INDEX ezcobj_state_lmask (language_mask), - UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group ( - id INT AUTO_INCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - INDEX ezcobj_state_group_lmask (language_mask), - UNIQUE INDEX ezcobj_state_group_identifier (identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group_language ( - contentobject_state_group_id INT DEFAULT 0 NOT NULL, - real_language_id BIGINT DEFAULT 0 NOT NULL, - description LONGTEXT NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_group_id, real_language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_language ( - contentobject_state_id INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - description LONGTEXT NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_id, language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_link ( - contentobject_id INT DEFAULT 0 NOT NULL, - contentobject_state_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(contentobject_id, contentobject_state_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontent_language ( - id BIGINT DEFAULT 0 NOT NULL, - disabled INT DEFAULT 0 NOT NULL, - locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - INDEX ezcontent_language_name (name(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser ( - contentobject_id INT DEFAULT 0 NOT NULL, - email VARCHAR(150) DEFAULT '' NOT NULL, - login VARCHAR(150) DEFAULT '' NOT NULL, - password_hash VARCHAR(255) DEFAULT NULL, - password_hash_type INT DEFAULT 1 NOT NULL, - password_updated_at INT DEFAULT NULL, - UNIQUE INDEX ezuser_login (login), - PRIMARY KEY(contentobject_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_tree ( - node_id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_is_published INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string LONGTEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - INDEX ezcontentobject_tree_p_node_id (parent_node_id), - INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), - INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), - INDEX ezcontentobject_tree_co_id (contentobject_id), - INDEX ezcontentobject_tree_depth (depth), - INDEX ezcontentobject_tree_path (path_string(191)), - INDEX modified_subnode (modified_subnode), - INDEX ezcontentobject_tree_remote_id (remote_id), - PRIMARY KEY(node_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentbrowsebookmark ( - id INT AUTO_INCREMENT NOT NULL, - node_id INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - INDEX ezcontentbrowsebookmark_location (node_id), - INDEX ezcontentbrowsebookmark_user (user_id), - INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass ( - id INT AUTO_INCREMENT NOT NULL, - version INT DEFAULT 0 NOT NULL, - always_available INT DEFAULT 0 NOT NULL, - contentobject_name VARCHAR(255) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - is_container INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - serialized_description_list LONGTEXT DEFAULT NULL, - serialized_name_list LONGTEXT DEFAULT NULL, - sort_field INT DEFAULT 1 NOT NULL, - sort_order INT DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL, - INDEX ezcontentclass_version (version), - INDEX ezcontentclass_identifier (identifier, version), - PRIMARY KEY(id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute ( - id INT AUTO_INCREMENT NOT NULL, - version INT DEFAULT 0 NOT NULL, - can_translate INT DEFAULT 1, - category VARCHAR(25) DEFAULT '' NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - data_float1 DOUBLE PRECISION DEFAULT NULL, - data_float2 DOUBLE PRECISION DEFAULT NULL, - data_float3 DOUBLE PRECISION DEFAULT NULL, - data_float4 DOUBLE PRECISION DEFAULT NULL, - data_int1 INT DEFAULT NULL, - data_int2 INT DEFAULT NULL, - data_int3 INT DEFAULT NULL, - data_int4 INT DEFAULT NULL, - data_text1 VARCHAR(255) DEFAULT NULL, - data_text2 VARCHAR(50) DEFAULT NULL, - data_text3 VARCHAR(50) DEFAULT NULL, - data_text4 VARCHAR(255) DEFAULT NULL, - data_text5 LONGTEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '' NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - is_information_collector INT DEFAULT 0 NOT NULL, - is_required INT DEFAULT 0 NOT NULL, - is_searchable INT DEFAULT 0 NOT NULL, - is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, - placement INT DEFAULT 0 NOT NULL, - serialized_data_text LONGTEXT DEFAULT NULL, - serialized_description_list LONGTEXT DEFAULT NULL, - serialized_name_list LONGTEXT NOT NULL, - INDEX ezcontentclass_attr_ccid (contentclass_id), - INDEX ezcontentclass_attr_dts (data_type_string), - PRIMARY KEY(id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute_ml ( - contentclass_attribute_id INT NOT NULL, - version INT NOT NULL, - language_id BIGINT NOT NULL, - name VARCHAR(255) NOT NULL, - description TEXT DEFAULT NULL, - data_text TEXT DEFAULT NULL, - data_json TEXT DEFAULT NULL, - INDEX ezcontentclass_attribute_ml_lang_fk (language_id), - PRIMARY KEY(contentclass_attribute_id, version, language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_classgroup ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - group_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, group_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_name ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - language_locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, language_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclassgroup ( - id INT AUTO_INCREMENT NOT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - is_system TINYINT(1) DEFAULT '0' NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject ( - id INT AUTO_INCREMENT NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - current_version INT DEFAULT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - owner_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT NULL, - section_id INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0, - is_hidden TINYINT(1) DEFAULT '0' NOT NULL, - INDEX ezcontentobject_classid (contentclass_id), - INDEX ezcontentobject_lmask (language_mask), - INDEX ezcontentobject_pub (published), - INDEX ezcontentobject_section (section_id), - INDEX ezcontentobject_currentversion (current_version), - INDEX ezcontentobject_owner (owner_id), - INDEX ezcontentobject_status (status), - UNIQUE INDEX ezcontentobject_remote_id (remote_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_attribute ( - id INT AUTO_INCREMENT NOT NULL, - version INT DEFAULT 0 NOT NULL, - attribute_original_id INT DEFAULT 0, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - data_float DOUBLE PRECISION DEFAULT NULL, - data_int INT DEFAULT NULL, - data_text LONGTEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '', - language_code VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - sort_key_int INT DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, - INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), - INDEX ezcontentobject_classattr_id (contentclassattribute_id), - INDEX sort_key_string (sort_key_string(191)), - INDEX ezcontentobject_attribute_language_code (language_code), - INDEX sort_key_int (sort_key_int), - INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), - PRIMARY KEY(id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_link ( - id INT AUTO_INCREMENT NOT NULL, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - from_contentobject_id INT DEFAULT 0 NOT NULL, - from_contentobject_version INT DEFAULT 0 NOT NULL, - relation_type INT DEFAULT 1 NOT NULL, - to_contentobject_id INT DEFAULT 0 NOT NULL, - INDEX ezco_link_to_co_id (to_contentobject_id), - INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), - INDEX ezco_link_cca_id (contentclassattribute_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_name ( - contentobject_id INT DEFAULT 0 NOT NULL, - content_version INT DEFAULT 0 NOT NULL, - content_translation VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - real_translation VARCHAR(20) DEFAULT NULL, - INDEX ezcontentobject_name_lang_id (language_id), - INDEX ezcontentobject_name_cov_id (content_version), - INDEX ezcontentobject_name_name (name(191)), - PRIMARY KEY(contentobject_id, content_version, content_translation) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_trash ( - node_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string LONGTEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - trashed INT DEFAULT 0 NOT NULL, - INDEX ezcobj_trash_depth (depth), - INDEX ezcobj_trash_p_node_id (parent_node_id), - INDEX ezcobj_trash_path_ident (path_identification_string(50)), - INDEX ezcobj_trash_co_id (contentobject_id), - INDEX ezcobj_trash_modified_subnode (modified_subnode), - INDEX ezcobj_trash_path (path_string(191)), - PRIMARY KEY(node_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_version ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - workflow_event_pos INT DEFAULT 0, - INDEX ezcobj_version_status (status), - INDEX idx_object_version_objver (contentobject_id, version), - INDEX ezcontobj_version_obj_status (contentobject_id, status), - INDEX ezcobj_version_creator_id (creator_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezdfsfile ( - name_hash VARCHAR(34) DEFAULT '' NOT NULL, - name TEXT NOT NULL, - name_trunk TEXT NOT NULL, - datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, - scope VARCHAR(25) DEFAULT '' NOT NULL, - size BIGINT UNSIGNED DEFAULT 0 NOT NULL, - mtime INT DEFAULT 0 NOT NULL, - expired TINYINT(1) DEFAULT '0' NOT NULL, - status TINYINT(1) DEFAULT '0' NOT NULL, - INDEX ezdfsfile_name_trunk (name_trunk(191)), - INDEX ezdfsfile_expired_name (expired, name(191)), - INDEX ezdfsfile_name (name(191)), - INDEX ezdfsfile_mtime (mtime), - PRIMARY KEY(name_hash) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezgmaplocation ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_version INT DEFAULT 0 NOT NULL, - latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - address VARCHAR(150) DEFAULT NULL, - INDEX latitude_longitude_key (latitude, longitude), - PRIMARY KEY(contentobject_attribute_id, contentobject_version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezimagefile ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - filepath LONGTEXT NOT NULL, - INDEX ezimagefile_file (filepath(191)), - INDEX ezimagefile_coid (contentobject_attribute_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword ( - id INT AUTO_INCREMENT NOT NULL, - class_id INT DEFAULT 0 NOT NULL, - keyword VARCHAR(255) DEFAULT NULL, - INDEX ezkeyword_keyword (keyword(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword_attribute_link ( - id INT AUTO_INCREMENT NOT NULL, - keyword_id INT DEFAULT 0 NOT NULL, - objectattribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - INDEX ezkeyword_attr_link_oaid (objectattribute_id), - INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), - INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezmedia ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - controls VARCHAR(50) DEFAULT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - has_controller INT DEFAULT 0, - height INT DEFAULT NULL, - is_autoplay INT DEFAULT 0, - is_loop INT DEFAULT 0, - mime_type VARCHAR(50) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - pluginspage VARCHAR(255) DEFAULT NULL, - quality VARCHAR(50) DEFAULT NULL, - width INT DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznode_assignment ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - from_node_id INT DEFAULT 0, - is_main INT DEFAULT 0 NOT NULL, - op_code INT DEFAULT 0 NOT NULL, - parent_node INT DEFAULT NULL, - parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, - remote_id VARCHAR(100) DEFAULT '0' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - priority INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - INDEX eznode_assignment_is_main (is_main), - INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), - INDEX eznode_assignment_parent_node (parent_node), - INDEX eznode_assignment_co_version (contentobject_version), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznotification ( - id INT AUTO_INCREMENT NOT NULL, - owner_id INT DEFAULT 0 NOT NULL, - is_pending TINYINT(1) DEFAULT '1' NOT NULL, - type VARCHAR(128) DEFAULT '' NOT NULL, - created INT DEFAULT 0 NOT NULL, - data LONGTEXT DEFAULT NULL, - INDEX eznotification_owner_is_pending (owner_id, is_pending), - INDEX eznotification_owner (owner_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpackage ( - id INT AUTO_INCREMENT NOT NULL, - install_date INT DEFAULT 0 NOT NULL, - name VARCHAR(100) DEFAULT '' NOT NULL, - version VARCHAR(30) DEFAULT '0' NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy ( - id INT AUTO_INCREMENT NOT NULL, - function_name VARCHAR(255) DEFAULT NULL, - module_name VARCHAR(255) DEFAULT NULL, - original_id INT DEFAULT 0 NOT NULL, - role_id INT DEFAULT NULL, - INDEX ezpolicy_role_id (role_id), - INDEX ezpolicy_original_id (original_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation ( - id INT AUTO_INCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - policy_id INT DEFAULT NULL, - INDEX policy_id (policy_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation_value ( - id INT AUTO_INCREMENT NOT NULL, - limitation_id INT DEFAULT NULL, - value VARCHAR(255) DEFAULT NULL, - INDEX ezpolicy_limit_value_limit_id (limitation_id), - INDEX ezpolicy_limitation_value_val (value(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpreferences ( - id INT AUTO_INCREMENT NOT NULL, - name VARCHAR(100) DEFAULT NULL, - user_id INT DEFAULT 0 NOT NULL, - value LONGTEXT DEFAULT NULL, - INDEX ezpreferences_user_id_idx (user_id, name), - INDEX ezpreferences_name (name), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezrole ( - id INT AUTO_INCREMENT NOT NULL, - is_new INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - value CHAR(1) DEFAULT NULL, - version INT DEFAULT 0, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_object_word_link ( - id INT AUTO_INCREMENT NOT NULL, - contentclass_attribute_id INT DEFAULT 0 NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - integer_value INT DEFAULT 0 NOT NULL, - next_word_id INT DEFAULT 0 NOT NULL, - placement INT DEFAULT 0 NOT NULL, - prev_word_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - section_id INT DEFAULT 0 NOT NULL, - word_id INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - INDEX ezsearch_object_word_link_object (contentobject_id), - INDEX ezsearch_object_word_link_identifier (identifier(191)), - INDEX ezsearch_object_word_link_integer_value (integer_value), - INDEX ezsearch_object_word_link_word (word_id), - INDEX ezsearch_object_word_link_frequency (frequency), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_word ( - id INT AUTO_INCREMENT NOT NULL, - object_count INT DEFAULT 0 NOT NULL, - word VARCHAR(150) DEFAULT NULL, - INDEX ezsearch_word_word_i (word), - INDEX ezsearch_word_obj_count (object_count), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsection ( - id INT AUTO_INCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT NULL, - locale VARCHAR(255) DEFAULT NULL, - name VARCHAR(255) DEFAULT NULL, - navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsite_data ( - name VARCHAR(60) DEFAULT '' NOT NULL, - value LONGTEXT NOT NULL, - PRIMARY KEY(name) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl ( - id INT AUTO_INCREMENT NOT NULL, - created INT DEFAULT 0 NOT NULL, - is_valid INT DEFAULT 1 NOT NULL, - last_checked INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, - url LONGTEXT DEFAULT NULL, - INDEX ezurl_url (url(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl_object_link ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_attribute_version INT DEFAULT 0 NOT NULL, - url_id INT DEFAULT 0 NOT NULL, - INDEX ezurl_ol_coa_id (contentobject_attribute_id), - INDEX ezurl_ol_url_id (url_id), - INDEX ezurl_ol_coa_version (contentobject_attribute_version), - INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias ( - id INT AUTO_INCREMENT NOT NULL, - destination_url LONGTEXT NOT NULL, - forward_to_id INT DEFAULT 0 NOT NULL, - is_imported INT DEFAULT 0 NOT NULL, - is_internal INT DEFAULT 1 NOT NULL, - is_wildcard INT DEFAULT 0 NOT NULL, - source_md5 VARCHAR(32) DEFAULT NULL, - source_url LONGTEXT NOT NULL, - INDEX ezurlalias_source_md5 (source_md5), - INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), - INDEX ezurlalias_forward_to_id (forward_to_id), - INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), - INDEX ezurlalias_source_url (source_url(191)), - INDEX ezurlalias_desturl (destination_url(191)), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml ( - parent INT DEFAULT 0 NOT NULL, - text_md5 VARCHAR(32) DEFAULT '' NOT NULL, - action LONGTEXT NOT NULL, - action_type VARCHAR(32) DEFAULT '' NOT NULL, - alias_redirects INT DEFAULT 1 NOT NULL, - id INT DEFAULT 0 NOT NULL, - is_alias INT DEFAULT 0 NOT NULL, - is_original INT DEFAULT 0 NOT NULL, - lang_mask BIGINT DEFAULT 0 NOT NULL, - link INT DEFAULT 0 NOT NULL, - text LONGTEXT NOT NULL, - INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), - INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), - INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), - INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), - INDEX ezurlalias_ml_act_org (action(32), is_original), - INDEX ezurlalias_ml_text (text(32), id, link), - INDEX ezurlalias_ml_link (link), - INDEX ezurlalias_ml_id (id), - PRIMARY KEY(parent, text_md5) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml_incr ( - id INT AUTO_INCREMENT NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlwildcard ( - id INT AUTO_INCREMENT NOT NULL, - destination_url LONGTEXT NOT NULL, - source_url LONGTEXT NOT NULL, - type INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_accountkey ( - id INT AUTO_INCREMENT NOT NULL, - hash_key VARCHAR(32) DEFAULT '' NOT NULL, - time INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - INDEX hash_key (hash_key), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_role ( - id INT AUTO_INCREMENT NOT NULL, - contentobject_id INT DEFAULT NULL, - limit_identifier VARCHAR(255) DEFAULT '', - limit_value VARCHAR(255) DEFAULT '', - role_id INT DEFAULT NULL, - INDEX ezuser_role_role_id (role_id), - INDEX ezuser_role_contentobject_id (contentobject_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_setting ( - user_id INT DEFAULT 0 NOT NULL, - is_enabled INT DEFAULT 0 NOT NULL, - max_login INT DEFAULT NULL, - PRIMARY KEY(user_id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_setting ( - id INT AUTO_INCREMENT NOT NULL, - `group` VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value JSON NOT NULL, - INDEX ibexa_setting_id (id), - UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token_type ( - id INT AUTO_INCREMENT NOT NULL, - identifier VARCHAR(64) NOT NULL, - UNIQUE INDEX ibexa_token_type_unique (identifier), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token ( - id INT AUTO_INCREMENT NOT NULL, - type_id INT NOT NULL, - token VARCHAR(255) NOT NULL, - identifier VARCHAR(128) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - expires INT DEFAULT 0 NOT NULL, - revoked TINYINT(1) DEFAULT '0' NOT NULL, - INDEX IDX_B5412887C54C8C93 (type_id), - UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), - PRIMARY KEY(id) - ) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE - SQL); - $this->addSql('ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE'); - } elseif ($this->platform instanceof PostgreSqlPlatform) { - $this->addSql(<<<'SQL' - CREATE TABLE ezbinaryfile ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - download_count INT DEFAULT 0 NOT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - mime_type VARCHAR(255) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state ( - id SERIAL NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - priority INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); - $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group ( - id SERIAL NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group_language ( - contentobject_state_group_id INT DEFAULT 0 NOT NULL, - real_language_id BIGINT DEFAULT 0 NOT NULL, - description TEXT NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_group_id, real_language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_language ( - contentobject_state_id INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - description TEXT NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_id, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_link ( - contentobject_id INT DEFAULT 0 NOT NULL, - contentobject_state_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(contentobject_id, contentobject_state_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontent_language ( - id BIGINT DEFAULT 0 NOT NULL, - disabled INT DEFAULT 0 NOT NULL, - locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser ( - contentobject_id INT DEFAULT 0 NOT NULL, - email VARCHAR(150) DEFAULT '' NOT NULL, - login VARCHAR(150) DEFAULT '' NOT NULL, - password_hash VARCHAR(255) DEFAULT NULL, - password_hash_type INT DEFAULT 1 NOT NULL, - password_updated_at INT DEFAULT NULL, - PRIMARY KEY(contentobject_id) - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_tree ( - node_id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_is_published INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string TEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - PRIMARY KEY(node_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); - $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentbrowsebookmark ( - id SERIAL NOT NULL, - node_id INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass ( - id SERIAL NOT NULL, - version INT DEFAULT 0 NOT NULL, - always_available INT DEFAULT 0 NOT NULL, - contentobject_name VARCHAR(255) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - is_container INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - serialized_description_list TEXT DEFAULT NULL, - serialized_name_list TEXT DEFAULT NULL, - sort_field INT DEFAULT 1 NOT NULL, - sort_order INT DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(id, version) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); - $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute ( - id SERIAL NOT NULL, - version INT DEFAULT 0 NOT NULL, - can_translate INT DEFAULT 1, - category VARCHAR(25) DEFAULT '' NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - data_float1 DOUBLE PRECISION DEFAULT NULL, - data_float2 DOUBLE PRECISION DEFAULT NULL, - data_float3 DOUBLE PRECISION DEFAULT NULL, - data_float4 DOUBLE PRECISION DEFAULT NULL, - data_int1 INT DEFAULT NULL, - data_int2 INT DEFAULT NULL, - data_int3 INT DEFAULT NULL, - data_int4 INT DEFAULT NULL, - data_text1 VARCHAR(255) DEFAULT NULL, - data_text2 VARCHAR(50) DEFAULT NULL, - data_text3 VARCHAR(50) DEFAULT NULL, - data_text4 VARCHAR(255) DEFAULT NULL, - data_text5 TEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '' NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - is_information_collector INT DEFAULT 0 NOT NULL, - is_required INT DEFAULT 0 NOT NULL, - is_searchable INT DEFAULT 0 NOT NULL, - is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, - placement INT DEFAULT 0 NOT NULL, - serialized_data_text TEXT DEFAULT NULL, - serialized_description_list TEXT DEFAULT NULL, - serialized_name_list TEXT NOT NULL, - PRIMARY KEY(id, version) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute_ml ( - contentclass_attribute_id INT NOT NULL, - version INT NOT NULL, - language_id BIGINT NOT NULL, - name VARCHAR(255) NOT NULL, - description TEXT DEFAULT NULL, - data_text TEXT DEFAULT NULL, - data_json TEXT DEFAULT NULL, - PRIMARY KEY(contentclass_attribute_id, version, language_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_classgroup ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - group_id INT DEFAULT 0 NOT NULL, - group_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, group_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_name ( - contentclass_id INT DEFAULT 0 NOT NULL, - contentclass_version INT DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - language_locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclassgroup ( - id SERIAL NOT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - modifier_id INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - is_system BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject ( - id SERIAL NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - current_version INT DEFAULT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - owner_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT NULL, - section_id INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0, - is_hidden BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); - $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); - $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); - $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); - $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); - $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); - $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_attribute ( - id SERIAL NOT NULL, - version INT DEFAULT 0 NOT NULL, - attribute_original_id INT DEFAULT 0, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - data_float DOUBLE PRECISION DEFAULT NULL, - data_int INT DEFAULT NULL, - data_text TEXT DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '', - language_code VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - sort_key_int INT DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id, version) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); - $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); - $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); - $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_link ( - id SERIAL NOT NULL, - contentclassattribute_id INT DEFAULT 0 NOT NULL, - from_contentobject_id INT DEFAULT 0 NOT NULL, - from_contentobject_version INT DEFAULT 0 NOT NULL, - relation_type INT DEFAULT 1 NOT NULL, - to_contentobject_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); - $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); - $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_name ( - contentobject_id INT DEFAULT 0 NOT NULL, - content_version INT DEFAULT 0 NOT NULL, - content_translation VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - real_translation VARCHAR(20) DEFAULT NULL, - PRIMARY KEY(contentobject_id, content_version, content_translation) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); - $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); - $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_trash ( - node_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - depth INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - is_invisible INT DEFAULT 0 NOT NULL, - main_node_id INT DEFAULT NULL, - modified_subnode INT DEFAULT 0, - parent_node_id INT DEFAULT 0 NOT NULL, - path_identification_string TEXT DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INT DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - trashed INT DEFAULT 0 NOT NULL, - PRIMARY KEY(node_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); - $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); - $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); - $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_version ( - id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - creator_id INT DEFAULT 0 NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - status INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - workflow_event_pos INT DEFAULT 0, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); - $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); - $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); - $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezdfsfile ( - name_hash VARCHAR(34) DEFAULT '' NOT NULL, - name TEXT NOT NULL, - name_trunk TEXT NOT NULL, - datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, - scope VARCHAR(25) DEFAULT '' NOT NULL, - size BIGINT DEFAULT 0 NOT NULL, - mtime INT DEFAULT 0 NOT NULL, - expired BOOLEAN DEFAULT 'false' NOT NULL, - status BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(name_hash) - ) - SQL); - $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); - $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); - $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); - $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezgmaplocation ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_version INT DEFAULT 0 NOT NULL, - latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - address VARCHAR(150) DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, contentobject_version) - ) - SQL); - $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezimagefile ( - id SERIAL NOT NULL, - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - filepath TEXT NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); - $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword ( - id SERIAL NOT NULL, - class_id INT DEFAULT 0 NOT NULL, - keyword VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword_attribute_link ( - id SERIAL NOT NULL, - keyword_id INT DEFAULT 0 NOT NULL, - objectattribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezmedia ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - version INT DEFAULT 0 NOT NULL, - controls VARCHAR(50) DEFAULT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - has_controller INT DEFAULT 0, - height INT DEFAULT NULL, - is_autoplay INT DEFAULT 0, - is_loop INT DEFAULT 0, - mime_type VARCHAR(50) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - pluginspage VARCHAR(255) DEFAULT NULL, - quality VARCHAR(50) DEFAULT NULL, - width INT DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznode_assignment ( - id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - contentobject_version INT DEFAULT NULL, - from_node_id INT DEFAULT 0, - is_main INT DEFAULT 0 NOT NULL, - op_code INT DEFAULT 0 NOT NULL, - parent_node INT DEFAULT NULL, - parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, - remote_id VARCHAR(100) DEFAULT '0' NOT NULL, - sort_field INT DEFAULT 1, - sort_order INT DEFAULT 1, - priority INT DEFAULT 0 NOT NULL, - is_hidden INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); - $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); - $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); - $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE eznotification ( - id SERIAL NOT NULL, - owner_id INT DEFAULT 0 NOT NULL, - is_pending BOOLEAN DEFAULT 'true' NOT NULL, - type VARCHAR(128) DEFAULT '' NOT NULL, - created INT DEFAULT 0 NOT NULL, - data TEXT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); - $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpackage ( - id SERIAL NOT NULL, - install_date INT DEFAULT 0 NOT NULL, - name VARCHAR(100) DEFAULT '' NOT NULL, - version VARCHAR(30) DEFAULT '0' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy ( - id SERIAL NOT NULL, - function_name VARCHAR(255) DEFAULT NULL, - module_name VARCHAR(255) DEFAULT NULL, - original_id INT DEFAULT 0 NOT NULL, - role_id INT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); - $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation ( - id SERIAL NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - policy_id INT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation_value ( - id SERIAL NOT NULL, - limitation_id INT DEFAULT NULL, - value VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); - $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpreferences ( - id SERIAL NOT NULL, - name VARCHAR(100) DEFAULT NULL, - user_id INT DEFAULT 0 NOT NULL, - value TEXT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); - $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezrole ( - id SERIAL NOT NULL, - is_new INT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - value CHAR(1) DEFAULT NULL, - version INT DEFAULT 0, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_object_word_link ( - id SERIAL NOT NULL, - contentclass_attribute_id INT DEFAULT 0 NOT NULL, - contentclass_id INT DEFAULT 0 NOT NULL, - contentobject_id INT DEFAULT 0 NOT NULL, - frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - integer_value INT DEFAULT 0 NOT NULL, - next_word_id INT DEFAULT 0 NOT NULL, - placement INT DEFAULT 0 NOT NULL, - prev_word_id INT DEFAULT 0 NOT NULL, - published INT DEFAULT 0 NOT NULL, - section_id INT DEFAULT 0 NOT NULL, - word_id INT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_word ( - id SERIAL NOT NULL, - object_count INT DEFAULT 0 NOT NULL, - word VARCHAR(150) DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); - $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsection ( - id SERIAL NOT NULL, - identifier VARCHAR(255) DEFAULT NULL, - locale VARCHAR(255) DEFAULT NULL, - name VARCHAR(255) DEFAULT NULL, - navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsite_data ( - name VARCHAR(60) DEFAULT '' NOT NULL, - value TEXT NOT NULL, - PRIMARY KEY(name) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl ( - id SERIAL NOT NULL, - created INT DEFAULT 0 NOT NULL, - is_valid INT DEFAULT 1 NOT NULL, - last_checked INT DEFAULT 0 NOT NULL, - modified INT DEFAULT 0 NOT NULL, - original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, - url TEXT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl_object_link ( - contentobject_attribute_id INT DEFAULT 0 NOT NULL, - contentobject_attribute_version INT DEFAULT 0 NOT NULL, - url_id INT DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); - $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias ( - id SERIAL NOT NULL, - destination_url TEXT NOT NULL, - forward_to_id INT DEFAULT 0 NOT NULL, - is_imported INT DEFAULT 0 NOT NULL, - is_internal INT DEFAULT 1 NOT NULL, - is_wildcard INT DEFAULT 0 NOT NULL, - source_md5 VARCHAR(32) DEFAULT NULL, - source_url TEXT NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); - $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); - $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml ( - parent INT DEFAULT 0 NOT NULL, - text_md5 VARCHAR(32) DEFAULT '' NOT NULL, - action TEXT NOT NULL, - action_type VARCHAR(32) DEFAULT '' NOT NULL, - alias_redirects INT DEFAULT 1 NOT NULL, - id INT DEFAULT 0 NOT NULL, - is_alias INT DEFAULT 0 NOT NULL, - is_original INT DEFAULT 0 NOT NULL, - lang_mask BIGINT DEFAULT 0 NOT NULL, - link INT DEFAULT 0 NOT NULL, - text TEXT NOT NULL, - PRIMARY KEY(parent, text_md5) - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml_incr ( - id SERIAL NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlwildcard ( - id SERIAL NOT NULL, - destination_url TEXT NOT NULL, - source_url TEXT NOT NULL, - type INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_accountkey ( - id SERIAL NOT NULL, - hash_key VARCHAR(32) DEFAULT '' NOT NULL, - time INT DEFAULT 0 NOT NULL, - user_id INT DEFAULT 0 NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_role ( - id SERIAL NOT NULL, - contentobject_id INT DEFAULT NULL, - limit_identifier VARCHAR(255) DEFAULT '', - limit_value VARCHAR(255) DEFAULT '', - role_id INT DEFAULT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); - $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_setting ( - user_id INT DEFAULT 0 NOT NULL, - is_enabled INT DEFAULT 0 NOT NULL, - max_login INT DEFAULT NULL, - PRIMARY KEY(user_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_setting ( - id SERIAL NOT NULL, - "group" VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value JSON NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token_type ( - id SERIAL NOT NULL, - identifier VARCHAR(64) NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token ( - id SERIAL NOT NULL, - type_id INT NOT NULL, - token VARCHAR(255) NOT NULL, - identifier VARCHAR(128) DEFAULT NULL, - created INT DEFAULT 0 NOT NULL, - expires INT DEFAULT 0 NOT NULL, - revoked BOOLEAN DEFAULT 'false' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - $this->addSql(<<<'SQL' - ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - SQL); - } elseif ($this->platform instanceof SqlitePlatform) { - $this->addSql(<<<'SQL' - CREATE TABLE ezbinaryfile ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - download_count INTEGER DEFAULT 0 NOT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - mime_type VARCHAR(255) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - group_id INTEGER DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - priority INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority)'); - $this->addSql('CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - default_language_id BIGINT DEFAULT 0 NOT NULL, - identifier VARCHAR(45) DEFAULT '' NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask)'); - $this->addSql('CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_group_language ( - contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, - real_language_id BIGINT DEFAULT 0 NOT NULL, - description CLOB NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_group_id, real_language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_language ( - contentobject_state_id INTEGER DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - description CLOB NOT NULL, - name VARCHAR(45) DEFAULT '' NOT NULL, - PRIMARY KEY(contentobject_state_id, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcobj_state_link ( - contentobject_id INTEGER DEFAULT 0 NOT NULL, - contentobject_state_id INTEGER DEFAULT 0 NOT NULL, - PRIMARY KEY(contentobject_id, contentobject_state_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontent_language ( - id BIGINT DEFAULT 0 NOT NULL, - disabled INTEGER DEFAULT 0 NOT NULL, - locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(id) - ) - SQL); - $this->addSql('CREATE INDEX ezcontent_language_name ON ezcontent_language (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser ( - contentobject_id INTEGER DEFAULT 0 NOT NULL, - email VARCHAR(150) DEFAULT '' NOT NULL, - login VARCHAR(150) DEFAULT '' NOT NULL, - password_hash VARCHAR(255) DEFAULT NULL, - password_hash_type INTEGER DEFAULT 1 NOT NULL, - password_updated_at INTEGER DEFAULT NULL, - PRIMARY KEY(contentobject_id) - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ezuser_login ON ezuser (login)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_tree ( - node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - contentobject_is_published INTEGER DEFAULT NULL, - contentobject_version INTEGER DEFAULT NULL, - depth INTEGER DEFAULT 0 NOT NULL, - is_hidden INTEGER DEFAULT 0 NOT NULL, - is_invisible INTEGER DEFAULT 0 NOT NULL, - main_node_id INTEGER DEFAULT NULL, - modified_subnode INTEGER DEFAULT 0, - parent_node_id INTEGER DEFAULT 0 NOT NULL, - path_identification_string CLOB DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INTEGER DEFAULT 1, - sort_order INTEGER DEFAULT 1 - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string)'); - $this->addSql('CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode)'); - $this->addSql('CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentbrowsebookmark ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - node_id INTEGER DEFAULT 0 NOT NULL, - user_id INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, - CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - ) - SQL); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id)'); - $this->addSql('CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - always_available INTEGER DEFAULT 0 NOT NULL, - contentobject_name VARCHAR(255) DEFAULT NULL, - created INTEGER DEFAULT 0 NOT NULL, - creator_id INTEGER DEFAULT 0 NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - is_container INTEGER DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - modifier_id INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - serialized_description_list CLOB DEFAULT NULL, - serialized_name_list CLOB DEFAULT NULL, - sort_field INTEGER DEFAULT 1 NOT NULL, - sort_order INTEGER DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_version ON ezcontentclass (version)'); - $this->addSql('CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - can_translate INTEGER DEFAULT 1, - category VARCHAR(25) DEFAULT '' NOT NULL, - contentclass_id INTEGER DEFAULT 0 NOT NULL, - data_float1 DOUBLE PRECISION DEFAULT NULL, - data_float2 DOUBLE PRECISION DEFAULT NULL, - data_float3 DOUBLE PRECISION DEFAULT NULL, - data_float4 DOUBLE PRECISION DEFAULT NULL, - data_int1 INTEGER DEFAULT NULL, - data_int2 INTEGER DEFAULT NULL, - data_int3 INTEGER DEFAULT NULL, - data_int4 INTEGER DEFAULT NULL, - data_text1 VARCHAR(255) DEFAULT NULL, - data_text2 VARCHAR(50) DEFAULT NULL, - data_text3 VARCHAR(50) DEFAULT NULL, - data_text4 VARCHAR(255) DEFAULT NULL, - data_text5 CLOB DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '' NOT NULL, - identifier VARCHAR(50) DEFAULT '' NOT NULL, - is_information_collector INTEGER DEFAULT 0 NOT NULL, - is_required INTEGER DEFAULT 0 NOT NULL, - is_searchable INTEGER DEFAULT 0 NOT NULL, - is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, - placement INTEGER DEFAULT 0 NOT NULL, - serialized_data_text CLOB DEFAULT NULL, - serialized_description_list CLOB DEFAULT NULL, - serialized_name_list CLOB NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_attribute_ml ( - contentclass_attribute_id INTEGER NOT NULL, - version INTEGER NOT NULL, - language_id BIGINT NOT NULL, - name VARCHAR(255) NOT NULL, - description CLOB DEFAULT NULL, - data_text CLOB DEFAULT NULL, - data_json CLOB DEFAULT NULL, - PRIMARY KEY(contentclass_attribute_id, version, language_id), - CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - ) - SQL); - $this->addSql('CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_classgroup ( - contentclass_id INTEGER DEFAULT 0 NOT NULL, - contentclass_version INTEGER DEFAULT 0 NOT NULL, - group_id INTEGER DEFAULT 0 NOT NULL, - group_name VARCHAR(255) DEFAULT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, group_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclass_name ( - contentclass_id INTEGER DEFAULT 0 NOT NULL, - contentclass_version INTEGER DEFAULT 0 NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - language_locale VARCHAR(20) DEFAULT '' NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - PRIMARY KEY(contentclass_id, contentclass_version, language_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentclassgroup ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - created INTEGER DEFAULT 0 NOT NULL, - creator_id INTEGER DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - modifier_id INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - is_system BOOLEAN DEFAULT '0' NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentclass_id INTEGER DEFAULT 0 NOT NULL, - current_version INTEGER DEFAULT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - owner_id INTEGER DEFAULT 0 NOT NULL, - published INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT NULL, - section_id INTEGER DEFAULT 0 NOT NULL, - status INTEGER DEFAULT 0, - is_hidden BOOLEAN DEFAULT '0' NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id)'); - $this->addSql('CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask)'); - $this->addSql('CREATE INDEX ezcontentobject_pub ON ezcontentobject (published)'); - $this->addSql('CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id)'); - $this->addSql('CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version)'); - $this->addSql('CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id)'); - $this->addSql('CREATE INDEX ezcontentobject_status ON ezcontentobject (status)'); - $this->addSql('CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - attribute_original_id INTEGER DEFAULT 0, - contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, - contentobject_id INTEGER DEFAULT 0 NOT NULL, - data_float DOUBLE PRECISION DEFAULT NULL, - data_int INTEGER DEFAULT NULL, - data_text CLOB DEFAULT NULL, - data_type_string VARCHAR(50) DEFAULT '', - language_code VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - sort_key_int INTEGER DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code)'); - $this->addSql('CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id)'); - $this->addSql('CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code)'); - $this->addSql('CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int)'); - $this->addSql('CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_link ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, - from_contentobject_id INTEGER DEFAULT 0 NOT NULL, - from_contentobject_version INTEGER DEFAULT 0 NOT NULL, - relation_type INTEGER DEFAULT 1 NOT NULL, - to_contentobject_id INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id)'); - $this->addSql('CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id)'); - $this->addSql('CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_name ( - contentobject_id INTEGER DEFAULT 0 NOT NULL, - content_version INTEGER DEFAULT 0 NOT NULL, - content_translation VARCHAR(20) DEFAULT '' NOT NULL, - language_id BIGINT DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT NULL, - real_translation VARCHAR(20) DEFAULT NULL, - PRIMARY KEY(contentobject_id, content_version, content_translation) - ) - SQL); - $this->addSql('CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id)'); - $this->addSql('CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version)'); - $this->addSql('CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_trash ( - node_id INTEGER DEFAULT 0 NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - contentobject_version INTEGER DEFAULT NULL, - depth INTEGER DEFAULT 0 NOT NULL, - is_hidden INTEGER DEFAULT 0 NOT NULL, - is_invisible INTEGER DEFAULT 0 NOT NULL, - main_node_id INTEGER DEFAULT NULL, - modified_subnode INTEGER DEFAULT 0, - parent_node_id INTEGER DEFAULT 0 NOT NULL, - path_identification_string CLOB DEFAULT NULL, - path_string VARCHAR(255) DEFAULT '' NOT NULL, - priority INTEGER DEFAULT 0 NOT NULL, - remote_id VARCHAR(100) DEFAULT '' NOT NULL, - sort_field INTEGER DEFAULT 1, - sort_order INTEGER DEFAULT 1, - trashed INTEGER DEFAULT 0 NOT NULL, - PRIMARY KEY(node_id) - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth)'); - $this->addSql('CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string)'); - $this->addSql('CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id)'); - $this->addSql('CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode)'); - $this->addSql('CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezcontentobject_version ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - created INTEGER DEFAULT 0 NOT NULL, - creator_id INTEGER DEFAULT 0 NOT NULL, - initial_language_id BIGINT DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - status INTEGER DEFAULT 0 NOT NULL, - user_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - workflow_event_pos INTEGER DEFAULT 0 - ) - SQL); - $this->addSql('CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status)'); - $this->addSql('CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version)'); - $this->addSql('CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status)'); - $this->addSql('CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezdfsfile ( - name_hash VARCHAR(34) DEFAULT '' NOT NULL, - name CLOB NOT NULL, - name_trunk CLOB NOT NULL, - datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, - scope VARCHAR(25) DEFAULT '' NOT NULL, - size BIGINT UNSIGNED DEFAULT 0 NOT NULL, - mtime INTEGER DEFAULT 0 NOT NULL, - expired BOOLEAN DEFAULT '0' NOT NULL, - status BOOLEAN DEFAULT '0' NOT NULL, - PRIMARY KEY(name_hash) - ) - SQL); - $this->addSql('CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk)'); - $this->addSql('CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name)'); - $this->addSql('CREATE INDEX ezdfsfile_name ON ezdfsfile (name)'); - $this->addSql('CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezgmaplocation ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - contentobject_version INTEGER DEFAULT 0 NOT NULL, - latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, - address VARCHAR(150) DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, contentobject_version) - ) - SQL); - $this->addSql('CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezimagefile ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - filepath CLOB NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezimagefile_file ON ezimagefile (filepath)'); - $this->addSql('CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - class_id INTEGER DEFAULT 0 NOT NULL, - keyword VARCHAR(255) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezkeyword_attribute_link ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - keyword_id INTEGER DEFAULT 0 NOT NULL, - objectattribute_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id)'); - $this->addSql('CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezmedia ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - version INTEGER DEFAULT 0 NOT NULL, - controls VARCHAR(50) DEFAULT NULL, - filename VARCHAR(255) DEFAULT '' NOT NULL, - has_controller INTEGER DEFAULT 0, - height INTEGER DEFAULT NULL, - is_autoplay INTEGER DEFAULT 0, - is_loop INTEGER DEFAULT 0, - mime_type VARCHAR(50) DEFAULT '' NOT NULL, - original_filename VARCHAR(255) DEFAULT '' NOT NULL, - pluginspage VARCHAR(255) DEFAULT NULL, - quality VARCHAR(50) DEFAULT NULL, - width INTEGER DEFAULT NULL, - PRIMARY KEY(contentobject_attribute_id, version) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE eznode_assignment ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - contentobject_version INTEGER DEFAULT NULL, - from_node_id INTEGER DEFAULT 0, - is_main INTEGER DEFAULT 0 NOT NULL, - op_code INTEGER DEFAULT 0 NOT NULL, - parent_node INTEGER DEFAULT NULL, - parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, - remote_id VARCHAR(100) DEFAULT '0' NOT NULL, - sort_field INTEGER DEFAULT 1, - sort_order INTEGER DEFAULT 1, - priority INTEGER DEFAULT 0 NOT NULL, - is_hidden INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main)'); - $this->addSql('CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version)'); - $this->addSql('CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node)'); - $this->addSql('CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE eznotification ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - owner_id INTEGER DEFAULT 0 NOT NULL, - is_pending BOOLEAN DEFAULT '1' NOT NULL, - type VARCHAR(128) DEFAULT '' NOT NULL, - created INTEGER DEFAULT 0 NOT NULL, - data CLOB DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending)'); - $this->addSql('CREATE INDEX eznotification_owner ON eznotification (owner_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpackage ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - install_date INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(100) DEFAULT '' NOT NULL, - version VARCHAR(30) DEFAULT '0' NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - function_name VARCHAR(255) DEFAULT NULL, - module_name VARCHAR(255) DEFAULT NULL, - original_id INTEGER DEFAULT 0 NOT NULL, - role_id INTEGER DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id)'); - $this->addSql('CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - policy_id INTEGER DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX policy_id ON ezpolicy_limitation (policy_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpolicy_limitation_value ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - limitation_id INTEGER DEFAULT NULL, - value VARCHAR(255) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id)'); - $this->addSql('CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezpreferences ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - name VARCHAR(100) DEFAULT NULL, - user_id INTEGER DEFAULT 0 NOT NULL, - value CLOB DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name)'); - $this->addSql('CREATE INDEX ezpreferences_name ON ezpreferences (name)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezrole ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - is_new INTEGER DEFAULT 0 NOT NULL, - name VARCHAR(255) DEFAULT '' NOT NULL, - value CHAR(1) DEFAULT NULL, - version INTEGER DEFAULT 0 - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_object_word_link ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, - contentclass_id INTEGER DEFAULT 0 NOT NULL, - contentobject_id INTEGER DEFAULT 0 NOT NULL, - frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, - identifier VARCHAR(255) DEFAULT '' NOT NULL, - integer_value INTEGER DEFAULT 0 NOT NULL, - next_word_id INTEGER DEFAULT 0 NOT NULL, - placement INTEGER DEFAULT 0 NOT NULL, - prev_word_id INTEGER DEFAULT 0 NOT NULL, - published INTEGER DEFAULT 0 NOT NULL, - section_id INTEGER DEFAULT 0 NOT NULL, - word_id INTEGER DEFAULT 0 NOT NULL, - language_mask BIGINT DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id)'); - $this->addSql('CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsearch_word ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - object_count INTEGER DEFAULT 0 NOT NULL, - word VARCHAR(150) DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word)'); - $this->addSql('CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezsection ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - identifier VARCHAR(255) DEFAULT NULL, - locale VARCHAR(255) DEFAULT NULL, - name VARCHAR(255) DEFAULT NULL, - navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezsite_data ( - name VARCHAR(60) DEFAULT '' NOT NULL, - value CLOB NOT NULL, - PRIMARY KEY(name) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - created INTEGER DEFAULT 0 NOT NULL, - is_valid INTEGER DEFAULT 1 NOT NULL, - last_checked INTEGER DEFAULT 0 NOT NULL, - modified INTEGER DEFAULT 0 NOT NULL, - original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, - url CLOB DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurl_url ON ezurl (url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurl_object_link ( - contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, - contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, - url_id INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id)'); - $this->addSql('CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version)'); - $this->addSql('CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - destination_url CLOB NOT NULL, - forward_to_id INTEGER DEFAULT 0 NOT NULL, - is_imported INTEGER DEFAULT 0 NOT NULL, - is_internal INTEGER DEFAULT 1 NOT NULL, - is_wildcard INTEGER DEFAULT 0 NOT NULL, - source_md5 VARCHAR(32) DEFAULT NULL, - source_url CLOB NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5)'); - $this->addSql('CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id)'); - $this->addSql('CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url)'); - $this->addSql('CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml ( - parent INTEGER DEFAULT 0 NOT NULL, - text_md5 VARCHAR(32) DEFAULT '' NOT NULL, - "action" CLOB NOT NULL, - action_type VARCHAR(32) DEFAULT '' NOT NULL, - alias_redirects INTEGER DEFAULT 1 NOT NULL, - id INTEGER DEFAULT 0 NOT NULL, - is_alias INTEGER DEFAULT 0 NOT NULL, - is_original INTEGER DEFAULT 0 NOT NULL, - lang_mask BIGINT DEFAULT 0 NOT NULL, - link INTEGER DEFAULT 0 NOT NULL, - text CLOB NOT NULL, - PRIMARY KEY(parent, text_md5) - ) - SQL); - $this->addSql('CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent)'); - $this->addSql('CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original)'); - $this->addSql('CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link)'); - $this->addSql('CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlalias_ml_incr ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezurlwildcard ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - destination_url CLOB NOT NULL, - source_url CLOB NOT NULL, - type INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_accountkey ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - hash_key VARCHAR(32) DEFAULT '' NOT NULL, - time INTEGER DEFAULT 0 NOT NULL, - user_id INTEGER DEFAULT 0 NOT NULL - ) - SQL); - $this->addSql('CREATE INDEX hash_key ON ezuser_accountkey (hash_key)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_role ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - contentobject_id INTEGER DEFAULT NULL, - limit_identifier VARCHAR(255) DEFAULT '', - limit_value VARCHAR(255) DEFAULT '', - role_id INTEGER DEFAULT NULL - ) - SQL); - $this->addSql('CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id)'); - $this->addSql('CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id)'); - $this->addSql(<<<'SQL' - CREATE TABLE ezuser_setting ( - user_id INTEGER DEFAULT 0 NOT NULL, - is_enabled INTEGER DEFAULT 0 NOT NULL, - max_login INTEGER DEFAULT NULL, - PRIMARY KEY(user_id) - ) - SQL); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_setting ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - "group" VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value CLOB NOT NULL --(DC2Type:json) - ) - SQL); - $this->addSql('CREATE INDEX ibexa_setting_id ON ibexa_setting (id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token_type ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - identifier VARCHAR(64) NOT NULL - ) - SQL); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier)'); - $this->addSql(<<<'SQL' - CREATE TABLE ibexa_token ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, - type_id INTEGER NOT NULL, - token VARCHAR(255) NOT NULL, - identifier VARCHAR(128) DEFAULT NULL, - created INTEGER DEFAULT 0 NOT NULL, - expires INTEGER DEFAULT 0 NOT NULL, - revoked BOOLEAN DEFAULT '0' NOT NULL, - CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE - ) - SQL); - $this->addSql('CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id)'); - $this->addSql('CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id)'); - } else { - $this->abortIf(true, sprintf('Unsupported platform "%s".', $this->platform->getName())); + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-sqlite.sql'); } } } diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql new file mode 100644 index 0000000000..f06caa6c82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql @@ -0,0 +1,304 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) +-- ibexa:sql-statement-separator +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') +-- ibexa:sql-statement-separator +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) +-- ibexa:sql-statement-separator +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') +-- ibexa:sql-statement-separator +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') +-- ibexa:sql-statement-separator +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14) +-- ibexa:sql-statement-separator +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql new file mode 100644 index 0000000000..51df923e0d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql @@ -0,0 +1,367 @@ +INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, 'ez_lock', 3) +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, '', 3, 'Lock', 2) +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') +-- ibexa:sql-statement-separator +INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) +-- ibexa:sql-statement-separator +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'<?xml version="1.0" encoding="UTF-8"?>\n<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') +-- ibexa:sql-statement-separator +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) +-- ibexa:sql-statement-separator +INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) +-- ibexa:sql-statement-separator +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) +-- ibexa:sql-statement-separator +INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) +-- ibexa:sql-statement-separator +INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) +-- ibexa:sql-statement-separator +INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') +-- ibexa:sql-statement-separator +INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) +-- ibexa:sql-statement-separator +INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') +-- ibexa:sql-statement-separator +INSERT INTO "ezsite_data" ("name", "value") +VALUES ('ibexa-release','4.6') +-- ibexa:sql-statement-separator +INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') +-- ibexa:sql-statement-separator +INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') +-- ibexa:sql-statement-separator +INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) +-- ibexa:sql-statement-separator +INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) +-- ibexa:sql-statement-separator +INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) +-- ibexa:sql-statement-separator +INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14) +-- ibexa:sql-statement-separator +INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' +-- ibexa:sql-statement-separator +-- Set proper sequence values after inserting data +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree +-- ibexa:sql-statement-separator +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version +-- ibexa:sql-statement-separator +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile +-- ibexa:sql-statement-separator +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link +-- ibexa:sql-statement-separator +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword +-- ibexa:sql-statement-separator +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment +-- ibexa:sql-statement-separator +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value +-- ibexa:sql-statement-separator +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences +-- ibexa:sql-statement-separator +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole +-- ibexa:sql-statement-separator +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link +-- ibexa:sql-statement-separator +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word +-- ibexa:sql-statement-separator +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr +-- ibexa:sql-statement-separator +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard +-- ibexa:sql-statement-separator +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey +-- ibexa:sql-statement-separator +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql new file mode 100644 index 0000000000..f06caa6c82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql @@ -0,0 +1,304 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2) +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked') +-- ibexa:sql-statement-separator +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media') +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) +-- ibexa:sql-statement-separator +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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para><emphasis role="strong">You are now ready to start your project.</emphasis></para></section>','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB') +-- ibexa:sql-statement-separator +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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) +-- ibexa:sql-statement-separator +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0) +-- ibexa:sql-statement-separator +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 (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334) +-- ibexa:sql-statement-separator +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12') +-- ibexa:sql-statement-separator +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0) +-- ibexa:sql-statement-separator +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart') +-- ibexa:sql-statement-separator +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') +-- ibexa:sql-statement-separator +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4) +-- ibexa:sql-statement-separator +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14) +-- ibexa:sql-statement-separator +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql new file mode 100644 index 0000000000..3004bc86f7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -0,0 +1,679 @@ +CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_priority (priority), + INDEX ezcobj_state_lmask (language_mask), + UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group ( + id INT AUTO_INCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezcobj_state_group_lmask (language_mask), + UNIQUE INDEX ezcobj_state_group_identifier (identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description LONGTEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontent_language_name (name(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + UNIQUE INDEX ezuser_login (login), + PRIMARY KEY(contentobject_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_tree ( + node_id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + INDEX ezcontentobject_tree_p_node_id (parent_node_id), + INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), + INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), + INDEX ezcontentobject_tree_co_id (contentobject_id), + INDEX ezcontentobject_tree_depth (depth), + INDEX ezcontentobject_tree_path (path_string(191)), + INDEX modified_subnode (modified_subnode), + INDEX ezcontentobject_tree_remote_id (remote_id), + PRIMARY KEY(node_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentbrowsebookmark ( + id INT AUTO_INCREMENT NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentbrowsebookmark_location (node_id), + INDEX ezcontentbrowsebookmark_user (user_id), + INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + INDEX ezcontentclass_version (version), + INDEX ezcontentclass_identifier (identifier, version), + PRIMARY KEY(id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text LONGTEXT DEFAULT NULL, + serialized_description_list LONGTEXT DEFAULT NULL, + serialized_name_list LONGTEXT NOT NULL, + INDEX ezcontentclass_attr_ccid (contentclass_id), + INDEX ezcontentclass_attr_dts (data_type_string), + PRIMARY KEY(id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + INDEX ezcontentclass_attribute_ml_lang_fk (language_id), + PRIMARY KEY(contentclass_attribute_id, version, language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclassgroup ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system TINYINT(1) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezcontentobject_classid (contentclass_id), + INDEX ezcontentobject_lmask (language_mask), + INDEX ezcontentobject_pub (published), + INDEX ezcontentobject_section (section_id), + INDEX ezcontentobject_currentversion (current_version), + INDEX ezcontentobject_owner (owner_id), + INDEX ezcontentobject_status (status), + UNIQUE INDEX ezcontentobject_remote_id (remote_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_attribute ( + id INT AUTO_INCREMENT NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text LONGTEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), + INDEX ezcontentobject_classattr_id (contentclassattribute_id), + INDEX sort_key_string (sort_key_string(191)), + INDEX ezcontentobject_attribute_language_code (language_code), + INDEX sort_key_int (sort_key_int), + INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), + PRIMARY KEY(id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + INDEX ezco_link_to_co_id (to_contentobject_id), + INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), + INDEX ezco_link_cca_id (contentclassattribute_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + INDEX ezcontentobject_name_lang_id (language_id), + INDEX ezcontentobject_name_cov_id (content_version), + INDEX ezcontentobject_name_name (name(191)), + PRIMARY KEY(contentobject_id, content_version, content_translation) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string LONGTEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + INDEX ezcobj_trash_depth (depth), + INDEX ezcobj_trash_p_node_id (parent_node_id), + INDEX ezcobj_trash_path_ident (path_identification_string(50)), + INDEX ezcobj_trash_co_id (contentobject_id), + INDEX ezcobj_trash_modified_subnode (modified_subnode), + INDEX ezcobj_trash_path (path_string(191)), + PRIMARY KEY(node_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_version ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + INDEX ezcobj_version_status (status), + INDEX idx_object_version_objver (contentobject_id, version), + INDEX ezcontobj_version_obj_status (contentobject_id, status), + INDEX ezcobj_version_creator_id (creator_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired TINYINT(1) DEFAULT '0' NOT NULL, + status TINYINT(1) DEFAULT '0' NOT NULL, + INDEX ezdfsfile_name_trunk (name_trunk(191)), + INDEX ezdfsfile_expired_name (expired, name(191)), + INDEX ezdfsfile_name (name(191)), + INDEX ezdfsfile_mtime (mtime), + PRIMARY KEY(name_hash) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + INDEX latitude_longitude_key (latitude, longitude), + PRIMARY KEY(contentobject_attribute_id, contentobject_version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezimagefile ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath LONGTEXT NOT NULL, + INDEX ezimagefile_file (filepath(191)), + INDEX ezimagefile_coid (contentobject_attribute_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword ( + id INT AUTO_INCREMENT NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + INDEX ezkeyword_keyword (keyword(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword_attribute_link ( + id INT AUTO_INCREMENT NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + INDEX ezkeyword_attr_link_oaid (objectattribute_id), + INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), + INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE eznode_assignment ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + INDEX eznode_assignment_is_main (is_main), + INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), + INDEX eznode_assignment_parent_node (parent_node), + INDEX eznode_assignment_co_version (contentobject_version), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE eznotification ( + id INT AUTO_INCREMENT NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending TINYINT(1) DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data LONGTEXT DEFAULT NULL, + INDEX eznotification_owner_is_pending (owner_id, is_pending), + INDEX eznotification_owner (owner_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpackage ( + id INT AUTO_INCREMENT NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy ( + id INT AUTO_INCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + INDEX ezpolicy_role_id (role_id), + INDEX ezpolicy_original_id (original_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + INDEX policy_id (policy_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation_value ( + id INT AUTO_INCREMENT NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + INDEX ezpolicy_limit_value_limit_id (limitation_id), + INDEX ezpolicy_limitation_value_val (value(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezpreferences ( + id INT AUTO_INCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value LONGTEXT DEFAULT NULL, + INDEX ezpreferences_user_id_idx (user_id, name), + INDEX ezpreferences_name (name), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezrole ( + id INT AUTO_INCREMENT NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_object_word_link ( + id INT AUTO_INCREMENT NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + INDEX ezsearch_object_word_link_object (contentobject_id), + INDEX ezsearch_object_word_link_identifier (identifier(191)), + INDEX ezsearch_object_word_link_integer_value (integer_value), + INDEX ezsearch_object_word_link_word (word_id), + INDEX ezsearch_object_word_link_frequency (frequency), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_word ( + id INT AUTO_INCREMENT NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + INDEX ezsearch_word_word_i (word), + INDEX ezsearch_word_obj_count (object_count), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsection ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value LONGTEXT NOT NULL, + PRIMARY KEY(name) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurl ( + id INT AUTO_INCREMENT NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url LONGTEXT DEFAULT NULL, + INDEX ezurl_url (url(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL, + INDEX ezurl_ol_coa_id (contentobject_attribute_id), + INDEX ezurl_ol_url_id (url_id), + INDEX ezurl_ol_coa_version (contentobject_attribute_version), + INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url LONGTEXT NOT NULL, + INDEX ezurlalias_source_md5 (source_md5), + INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), + INDEX ezurlalias_forward_to_id (forward_to_id), + INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), + INDEX ezurlalias_source_url (source_url(191)), + INDEX ezurlalias_desturl (destination_url(191)), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action LONGTEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text LONGTEXT NOT NULL, + INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), + INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), + INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), + INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), + INDEX ezurlalias_ml_act_org (action(32), is_original), + INDEX ezurlalias_ml_text (text(32), id, link), + INDEX ezurlalias_ml_link (link), + INDEX ezurlalias_ml_id (id), + PRIMARY KEY(parent, text_md5) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml_incr ( + id INT AUTO_INCREMENT NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezurlwildcard ( + id INT AUTO_INCREMENT NOT NULL, + destination_url LONGTEXT NOT NULL, + source_url LONGTEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_accountkey ( + id INT AUTO_INCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + INDEX hash_key (hash_key), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_role ( + id INT AUTO_INCREMENT NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + INDEX ezuser_role_role_id (role_id), + INDEX ezuser_role_contentobject_id (contentobject_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_setting ( + id INT AUTO_INCREMENT NOT NULL, + `group` VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + INDEX ibexa_setting_id (id), + UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token_type ( + id INT AUTO_INCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL, + UNIQUE INDEX ibexa_token_type_unique (identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token ( + id INT AUTO_INCREMENT NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked TINYINT(1) DEFAULT '0' NOT NULL, + INDEX IDX_B5412887C54C8C93 (type_id), + UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql new file mode 100644 index 0000000000..f659882f0f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql @@ -0,0 +1,790 @@ +CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + download_count INT DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group ( + id SERIAL NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INT DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_language ( + contentobject_state_id INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description TEXT NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_link ( + contentobject_id INT DEFAULT 0 NOT NULL, + contentobject_state_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INT DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser ( + contentobject_id INT DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INT DEFAULT 1 NOT NULL, + password_updated_at INT DEFAULT NULL, + PRIMARY KEY(contentobject_id) +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_tree ( + node_id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_is_published INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + PRIMARY KEY(node_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +-- ibexa:sql-statement-separator +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentbrowsebookmark ( + id SERIAL NOT NULL, + node_id INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + always_available INT DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT DEFAULT NULL, + sort_field INT DEFAULT 1 NOT NULL, + sort_order INT DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id, version) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + can_translate INT DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INT DEFAULT NULL, + data_int2 INT DEFAULT NULL, + data_int3 INT DEFAULT NULL, + data_int4 INT DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INT DEFAULT 0 NOT NULL, + is_required INT DEFAULT 0 NOT NULL, + is_searchable INT DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, + placement INT DEFAULT 0 NOT NULL, + serialized_data_text TEXT DEFAULT NULL, + serialized_description_list TEXT DEFAULT NULL, + serialized_name_list TEXT NOT NULL, + PRIMARY KEY(id, version) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INT NOT NULL, + version INT NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description TEXT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_json TEXT DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + group_id INT DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_name ( + contentclass_id INT DEFAULT 0 NOT NULL, + contentclass_version INT DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclassgroup ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + modifier_id INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject ( + id SERIAL NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + current_version INT DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0, + is_hidden BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_attribute ( + id SERIAL NOT NULL, + version INT DEFAULT 0 NOT NULL, + attribute_original_id INT DEFAULT 0, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INT DEFAULT NULL, + data_text TEXT DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INT DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id, version) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_link ( + id SERIAL NOT NULL, + contentclassattribute_id INT DEFAULT 0 NOT NULL, + from_contentobject_id INT DEFAULT 0 NOT NULL, + from_contentobject_version INT DEFAULT 0 NOT NULL, + relation_type INT DEFAULT 1 NOT NULL, + to_contentobject_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_name ( + contentobject_id INT DEFAULT 0 NOT NULL, + content_version INT DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_trash ( + node_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + depth INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + is_invisible INT DEFAULT 0 NOT NULL, + main_node_id INT DEFAULT NULL, + modified_subnode INT DEFAULT 0, + parent_node_id INT DEFAULT 0 NOT NULL, + path_identification_string TEXT DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INT DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + trashed INT DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_version ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + creator_id INT DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + status INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + workflow_event_pos INT DEFAULT 0, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +-- ibexa:sql-statement-separator +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name TEXT NOT NULL, + name_trunk TEXT NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT DEFAULT 0 NOT NULL, + mtime INT DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT 'false' NOT NULL, + status BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(name_hash) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +-- ibexa:sql-statement-separator +CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_version INT DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) +) +-- ibexa:sql-statement-separator +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +-- ibexa:sql-statement-separator +CREATE TABLE ezimagefile ( + id SERIAL NOT NULL, + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + filepath TEXT NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword ( + id SERIAL NOT NULL, + class_id INT DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword_attribute_link ( + id SERIAL NOT NULL, + keyword_id INT DEFAULT 0 NOT NULL, + objectattribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezmedia ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + version INT DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INT DEFAULT 0, + height INT DEFAULT NULL, + is_autoplay INT DEFAULT 0, + is_loop INT DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INT DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE eznode_assignment ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + contentobject_version INT DEFAULT NULL, + from_node_id INT DEFAULT 0, + is_main INT DEFAULT 0 NOT NULL, + op_code INT DEFAULT 0 NOT NULL, + parent_node INT DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INT DEFAULT 1, + sort_order INT DEFAULT 1, + priority INT DEFAULT 0 NOT NULL, + is_hidden INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +-- ibexa:sql-statement-separator +CREATE TABLE eznotification ( + id SERIAL NOT NULL, + owner_id INT DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT 'true' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INT DEFAULT 0 NOT NULL, + data TEXT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner ON eznotification (owner_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpackage ( + id SERIAL NOT NULL, + install_date INT DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy ( + id SERIAL NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INT DEFAULT 0 NOT NULL, + role_id INT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation_value ( + id SERIAL NOT NULL, + limitation_id INT DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +-- ibexa:sql-statement-separator +CREATE TABLE ezpreferences ( + id SERIAL NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INT DEFAULT 0 NOT NULL, + value TEXT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_name ON ezpreferences (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezrole ( + id SERIAL NOT NULL, + is_new INT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INT DEFAULT 0, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_object_word_link ( + id SERIAL NOT NULL, + contentclass_attribute_id INT DEFAULT 0 NOT NULL, + contentclass_id INT DEFAULT 0 NOT NULL, + contentobject_id INT DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INT DEFAULT 0 NOT NULL, + next_word_id INT DEFAULT 0 NOT NULL, + placement INT DEFAULT 0 NOT NULL, + prev_word_id INT DEFAULT 0 NOT NULL, + published INT DEFAULT 0 NOT NULL, + section_id INT DEFAULT 0 NOT NULL, + word_id INT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_word ( + id SERIAL NOT NULL, + object_count INT DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +-- ibexa:sql-statement-separator +CREATE TABLE ezsection ( + id SERIAL NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value TEXT NOT NULL, + PRIMARY KEY(name) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl ( + id SERIAL NOT NULL, + created INT DEFAULT 0 NOT NULL, + is_valid INT DEFAULT 1 NOT NULL, + last_checked INT DEFAULT 0 NOT NULL, + modified INT DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url TEXT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_url ON ezurl (url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INT DEFAULT 0 NOT NULL, + contentobject_attribute_version INT DEFAULT 0 NOT NULL, + url_id INT DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + forward_to_id INT DEFAULT 0 NOT NULL, + is_imported INT DEFAULT 0 NOT NULL, + is_internal INT DEFAULT 1 NOT NULL, + is_wildcard INT DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url TEXT NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml ( + parent INT DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + action TEXT NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INT DEFAULT 1 NOT NULL, + id INT DEFAULT 0 NOT NULL, + is_alias INT DEFAULT 0 NOT NULL, + is_original INT DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INT DEFAULT 0 NOT NULL, + text TEXT NOT NULL, + PRIMARY KEY(parent, text_md5) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml_incr ( + id SERIAL NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlwildcard ( + id SERIAL NOT NULL, + destination_url TEXT NOT NULL, + source_url TEXT NOT NULL, + type INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_accountkey ( + id SERIAL NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INT DEFAULT 0 NOT NULL, + user_id INT DEFAULT 0 NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_role ( + id SERIAL NOT NULL, + contentobject_id INT DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INT DEFAULT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_setting ( + user_id INT DEFAULT 0 NOT NULL, + is_enabled INT DEFAULT 0 NOT NULL, + max_login INT DEFAULT NULL, + PRIMARY KEY(user_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_setting ( + id SERIAL NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token_type ( + id SERIAL NOT NULL, + identifier VARCHAR(64) NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token ( + id SERIAL NOT NULL, + type_id INT NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INT DEFAULT 0 NOT NULL, + expires INT DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT 'false' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +-- ibexa:sql-statement-separator +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql new file mode 100644 index 0000000000..89d8450fe5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -0,0 +1,752 @@ +CREATE TABLE ezbinaryfile ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + download_count INTEGER DEFAULT 0 NOT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + mime_type VARCHAR(255) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + default_language_id BIGINT DEFAULT 0 NOT NULL, + identifier VARCHAR(45) DEFAULT '' NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_group_language ( + contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, + real_language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_group_id, real_language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_language ( + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + description CLOB NOT NULL, + name VARCHAR(45) DEFAULT '' NOT NULL, + PRIMARY KEY(contentobject_state_id, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcobj_state_link ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + contentobject_state_id INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(contentobject_id, contentobject_state_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontent_language ( + id BIGINT DEFAULT 0 NOT NULL, + disabled INTEGER DEFAULT 0 NOT NULL, + locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + email VARCHAR(150) DEFAULT '' NOT NULL, + login VARCHAR(150) DEFAULT '' NOT NULL, + password_hash VARCHAR(255) DEFAULT NULL, + password_hash_type INTEGER DEFAULT 1 NOT NULL, + password_updated_at INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_id) +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_tree ( + node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_is_published INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1 +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +-- ibexa:sql-statement-separator +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentbrowsebookmark ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + node_id INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, + CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + always_available INTEGER DEFAULT 0 NOT NULL, + contentobject_name VARCHAR(255) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + is_container INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB DEFAULT NULL, + sort_field INTEGER DEFAULT 1 NOT NULL, + sort_order INTEGER DEFAULT 1 NOT NULL, + url_alias_name VARCHAR(255) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + can_translate INTEGER DEFAULT 1, + category VARCHAR(25) DEFAULT '' NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + data_float1 DOUBLE PRECISION DEFAULT NULL, + data_float2 DOUBLE PRECISION DEFAULT NULL, + data_float3 DOUBLE PRECISION DEFAULT NULL, + data_float4 DOUBLE PRECISION DEFAULT NULL, + data_int1 INTEGER DEFAULT NULL, + data_int2 INTEGER DEFAULT NULL, + data_int3 INTEGER DEFAULT NULL, + data_int4 INTEGER DEFAULT NULL, + data_text1 VARCHAR(255) DEFAULT NULL, + data_text2 VARCHAR(50) DEFAULT NULL, + data_text3 VARCHAR(50) DEFAULT NULL, + data_text4 VARCHAR(255) DEFAULT NULL, + data_text5 CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '' NOT NULL, + identifier VARCHAR(50) DEFAULT '' NOT NULL, + is_information_collector INTEGER DEFAULT 0 NOT NULL, + is_required INTEGER DEFAULT 0 NOT NULL, + is_searchable INTEGER DEFAULT 0 NOT NULL, + is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + serialized_data_text CLOB DEFAULT NULL, + serialized_description_list CLOB DEFAULT NULL, + serialized_name_list CLOB NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_attribute_ml ( + contentclass_attribute_id INTEGER NOT NULL, + version INTEGER NOT NULL, + language_id BIGINT NOT NULL, + name VARCHAR(255) NOT NULL, + description CLOB DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_json CLOB DEFAULT NULL, + PRIMARY KEY(contentclass_attribute_id, version, language_id), + CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_classgroup ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + group_id INTEGER DEFAULT 0 NOT NULL, + group_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, group_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclass_name ( + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentclass_version INTEGER DEFAULT 0 NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + language_locale VARCHAR(20) DEFAULT '' NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(contentclass_id, contentclass_version, language_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentclassgroup ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + modifier_id INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + is_system BOOLEAN DEFAULT '0' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + current_version INTEGER DEFAULT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0, + is_hidden BOOLEAN DEFAULT '0' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_attribute ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + attribute_original_id INTEGER DEFAULT 0, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + data_float DOUBLE PRECISION DEFAULT NULL, + data_int INTEGER DEFAULT NULL, + data_text CLOB DEFAULT NULL, + data_type_string VARCHAR(50) DEFAULT '', + language_code VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + sort_key_int INTEGER DEFAULT 0 NOT NULL, + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +-- ibexa:sql-statement-separator +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_id INTEGER DEFAULT 0 NOT NULL, + from_contentobject_version INTEGER DEFAULT 0 NOT NULL, + relation_type INTEGER DEFAULT 1 NOT NULL, + to_contentobject_id INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_name ( + contentobject_id INTEGER DEFAULT 0 NOT NULL, + content_version INTEGER DEFAULT 0 NOT NULL, + content_translation VARCHAR(20) DEFAULT '' NOT NULL, + language_id BIGINT DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT NULL, + real_translation VARCHAR(20) DEFAULT NULL, + PRIMARY KEY(contentobject_id, content_version, content_translation) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_trash ( + node_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + depth INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL, + is_invisible INTEGER DEFAULT 0 NOT NULL, + main_node_id INTEGER DEFAULT NULL, + modified_subnode INTEGER DEFAULT 0, + parent_node_id INTEGER DEFAULT 0 NOT NULL, + path_identification_string CLOB DEFAULT NULL, + path_string VARCHAR(255) DEFAULT '' NOT NULL, + priority INTEGER DEFAULT 0 NOT NULL, + remote_id VARCHAR(100) DEFAULT '' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + trashed INTEGER DEFAULT 0 NOT NULL, + PRIMARY KEY(node_id) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +-- ibexa:sql-statement-separator +CREATE TABLE ezcontentobject_version ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + creator_id INTEGER DEFAULT 0 NOT NULL, + initial_language_id BIGINT DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + status INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + workflow_event_pos INTEGER DEFAULT 0 +) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +-- ibexa:sql-statement-separator +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +-- ibexa:sql-statement-separator +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +-- ibexa:sql-statement-separator +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezdfsfile ( + name_hash VARCHAR(34) DEFAULT '' NOT NULL, + name CLOB NOT NULL, + name_trunk CLOB NOT NULL, + datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, + scope VARCHAR(25) DEFAULT '' NOT NULL, + size BIGINT UNSIGNED DEFAULT 0 NOT NULL, + mtime INTEGER DEFAULT 0 NOT NULL, + expired BOOLEAN DEFAULT '0' NOT NULL, + status BOOLEAN DEFAULT '0' NOT NULL, + PRIMARY KEY(name_hash) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +-- ibexa:sql-statement-separator +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +-- ibexa:sql-statement-separator +CREATE TABLE ezgmaplocation ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_version INTEGER DEFAULT 0 NOT NULL, + latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, + address VARCHAR(150) DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, contentobject_version) +) +-- ibexa:sql-statement-separator +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +-- ibexa:sql-statement-separator +CREATE TABLE ezimagefile ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + filepath CLOB NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +-- ibexa:sql-statement-separator +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + class_id INTEGER DEFAULT 0 NOT NULL, + keyword VARCHAR(255) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +-- ibexa:sql-statement-separator +CREATE TABLE ezkeyword_attribute_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + keyword_id INTEGER DEFAULT 0 NOT NULL, + objectattribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +-- ibexa:sql-statement-separator +CREATE TABLE ezmedia ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + version INTEGER DEFAULT 0 NOT NULL, + controls VARCHAR(50) DEFAULT NULL, + filename VARCHAR(255) DEFAULT '' NOT NULL, + has_controller INTEGER DEFAULT 0, + height INTEGER DEFAULT NULL, + is_autoplay INTEGER DEFAULT 0, + is_loop INTEGER DEFAULT 0, + mime_type VARCHAR(50) DEFAULT '' NOT NULL, + original_filename VARCHAR(255) DEFAULT '' NOT NULL, + pluginspage VARCHAR(255) DEFAULT NULL, + quality VARCHAR(50) DEFAULT NULL, + width INTEGER DEFAULT NULL, + PRIMARY KEY(contentobject_attribute_id, version) +) +-- ibexa:sql-statement-separator +CREATE TABLE eznode_assignment ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + contentobject_version INTEGER DEFAULT NULL, + from_node_id INTEGER DEFAULT 0, + is_main INTEGER DEFAULT 0 NOT NULL, + op_code INTEGER DEFAULT 0 NOT NULL, + parent_node INTEGER DEFAULT NULL, + parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, + remote_id VARCHAR(100) DEFAULT '0' NOT NULL, + sort_field INTEGER DEFAULT 1, + sort_order INTEGER DEFAULT 1, + priority INTEGER DEFAULT 0 NOT NULL, + is_hidden INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +-- ibexa:sql-statement-separator +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +-- ibexa:sql-statement-separator +CREATE TABLE eznotification ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + owner_id INTEGER DEFAULT 0 NOT NULL, + is_pending BOOLEAN DEFAULT '1' NOT NULL, + type VARCHAR(128) DEFAULT '' NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + data CLOB DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +-- ibexa:sql-statement-separator +CREATE INDEX eznotification_owner ON eznotification (owner_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpackage ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + install_date INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(100) DEFAULT '' NOT NULL, + version VARCHAR(30) DEFAULT '0' NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + function_name VARCHAR(255) DEFAULT NULL, + module_name VARCHAR(255) DEFAULT NULL, + original_id INTEGER DEFAULT 0 NOT NULL, + role_id INTEGER DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + policy_id INTEGER DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezpolicy_limitation_value ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + limitation_id INTEGER DEFAULT NULL, + value VARCHAR(255) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +-- ibexa:sql-statement-separator +CREATE TABLE ezpreferences ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + name VARCHAR(100) DEFAULT NULL, + user_id INTEGER DEFAULT 0 NOT NULL, + value CLOB DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +-- ibexa:sql-statement-separator +CREATE INDEX ezpreferences_name ON ezpreferences (name) +-- ibexa:sql-statement-separator +CREATE TABLE ezrole ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + is_new INTEGER DEFAULT 0 NOT NULL, + name VARCHAR(255) DEFAULT '' NOT NULL, + value CHAR(1) DEFAULT NULL, + version INTEGER DEFAULT 0 +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_object_word_link ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentclass_id INTEGER DEFAULT 0 NOT NULL, + contentobject_id INTEGER DEFAULT 0 NOT NULL, + frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, + identifier VARCHAR(255) DEFAULT '' NOT NULL, + integer_value INTEGER DEFAULT 0 NOT NULL, + next_word_id INTEGER DEFAULT 0 NOT NULL, + placement INTEGER DEFAULT 0 NOT NULL, + prev_word_id INTEGER DEFAULT 0 NOT NULL, + published INTEGER DEFAULT 0 NOT NULL, + section_id INTEGER DEFAULT 0 NOT NULL, + word_id INTEGER DEFAULT 0 NOT NULL, + language_mask BIGINT DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +-- ibexa:sql-statement-separator +CREATE TABLE ezsearch_word ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + object_count INTEGER DEFAULT 0 NOT NULL, + word VARCHAR(150) DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +-- ibexa:sql-statement-separator +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +-- ibexa:sql-statement-separator +CREATE TABLE ezsection ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(255) DEFAULT NULL, + locale VARCHAR(255) DEFAULT NULL, + name VARCHAR(255) DEFAULT NULL, + navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' +) +-- ibexa:sql-statement-separator +CREATE TABLE ezsite_data ( + name VARCHAR(60) DEFAULT '' NOT NULL, + value CLOB NOT NULL, + PRIMARY KEY(name) +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + created INTEGER DEFAULT 0 NOT NULL, + is_valid INTEGER DEFAULT 1 NOT NULL, + last_checked INTEGER DEFAULT 0 NOT NULL, + modified INTEGER DEFAULT 0 NOT NULL, + original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, + url CLOB DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_url ON ezurl (url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurl_object_link ( + contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, + contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, + url_id INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + forward_to_id INTEGER DEFAULT 0 NOT NULL, + is_imported INTEGER DEFAULT 0 NOT NULL, + is_internal INTEGER DEFAULT 1 NOT NULL, + is_wildcard INTEGER DEFAULT 0 NOT NULL, + source_md5 VARCHAR(32) DEFAULT NULL, + source_url CLOB NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml ( + parent INTEGER DEFAULT 0 NOT NULL, + text_md5 VARCHAR(32) DEFAULT '' NOT NULL, + "action" CLOB NOT NULL, + action_type VARCHAR(32) DEFAULT '' NOT NULL, + alias_redirects INTEGER DEFAULT 1 NOT NULL, + id INTEGER DEFAULT 0 NOT NULL, + is_alias INTEGER DEFAULT 0 NOT NULL, + is_original INTEGER DEFAULT 0 NOT NULL, + lang_mask BIGINT DEFAULT 0 NOT NULL, + link INTEGER DEFAULT 0 NOT NULL, + text CLOB NOT NULL, + PRIMARY KEY(parent, text_md5) +) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +-- ibexa:sql-statement-separator +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlalias_ml_incr ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezurlwildcard ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + destination_url CLOB NOT NULL, + source_url CLOB NOT NULL, + type INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_accountkey ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + hash_key VARCHAR(32) DEFAULT '' NOT NULL, + time INTEGER DEFAULT 0 NOT NULL, + user_id INTEGER DEFAULT 0 NOT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_role ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + contentobject_id INTEGER DEFAULT NULL, + limit_identifier VARCHAR(255) DEFAULT '', + limit_value VARCHAR(255) DEFAULT '', + role_id INTEGER DEFAULT NULL +) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +-- ibexa:sql-statement-separator +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +-- ibexa:sql-statement-separator +CREATE TABLE ezuser_setting ( + user_id INTEGER DEFAULT 0 NOT NULL, + is_enabled INTEGER DEFAULT 0 NOT NULL, + max_login INTEGER DEFAULT NULL, + PRIMARY KEY(user_id) +) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_setting ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + "group" VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value CLOB NOT NULL --(DC2Type:json) +) +-- ibexa:sql-statement-separator +CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token_type ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + identifier VARCHAR(64) NOT NULL +) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +-- ibexa:sql-statement-separator +CREATE TABLE ibexa_token ( + id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + type_id INTEGER NOT NULL, + token VARCHAR(255) NOT NULL, + identifier VARCHAR(128) DEFAULT NULL, + created INTEGER DEFAULT 0 NOT NULL, + expires INTEGER DEFAULT 0 NOT NULL, + revoked BOOLEAN DEFAULT '0' NOT NULL, + CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +) +-- ibexa:sql-statement-separator +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +-- ibexa:sql-statement-separator +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) From 6fdbab5c06741f8db01b74d8974f1e33f6910374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Wed, 22 Jul 2026 11:13:39 +0200 Subject: [PATCH 54/88] IBX-11939: Aborted migration on unsupported database platform Call abortIfUnsupportedPlatform() as the first statement of up(), so installs on a database this migration doesn't build SQL for fail loudly instead of silently queuing zero statements. --- .../RepositoryInstaller/Migration/ImportDataMigration.php | 3 +++ .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 5394841dca..35dbbc0e1a 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -12,6 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -32,6 +33,8 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); } elseif ($this->isPostgreSQL()) { diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index 566d742d66..d4be9886f8 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -12,6 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -32,6 +33,8 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); } elseif ($this->isPostgreSQL()) { From f50c07f4669dd23612b036e45cbab31e40aa9c66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Wed, 22 Jul 2026 12:10:34 +0200 Subject: [PATCH 55/88] IBX-11939: Added trailing semicolons to migration SQL files Each statement now ends with `;`, matching ibexa:doctrine:schema:dump-sql's own convention, so the files are directly executable via mysql/psql/sqlite3 CLI clients. addSqlFile() still splits on the delimiter and passes one statement per addSql() call, unaffected by the trailing terminator. --- .../Migration/sql/import-data-mysql.sql | 60 ++-- .../Migration/sql/import-data-postgresql.sql | 122 +++---- .../Migration/sql/import-data-sqlite.sql | 60 ++-- .../Migration/sql/install-schema-mysql.sql | 112 +++--- .../sql/install-schema-postgresql.sql | 334 +++++++++--------- .../Migration/sql/install-schema-sqlite.sql | 326 ++++++++--------- 6 files changed, 507 insertions(+), 507 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql index f06caa6c82..81b1803b4c 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-mysql.sql @@ -1,16 +1,16 @@ INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) + (2, 2, 2, 'locked', 3, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3) +VALUES (2,2,'ez_lock',3); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2) +VALUES (2,'',3,'Lock',2); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') + (2,'',3,'Locked'); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) VALUES (1, 1), @@ -24,10 +24,10 @@ VALUES (1, 1), (42, 1), (49, 1), (50, 1), - (51, 1) + (51, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), @@ -35,7 +35,7 @@ VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d4 (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), @@ -61,7 +61,7 @@ VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title', (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) VALUES (1, 0, 1, 'Content'), @@ -69,7 +69,7 @@ VALUES (1, 0, 1, 'Content'), (3, 0, 2, 'Users'), (4, 0, 2, 'Users'), (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') + (12, 0, 3, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) VALUES (1, 0, 2, 'eng-GB', 'Folder'), @@ -77,12 +77,12 @@ VALUES (1, 0, 2, 'eng-GB', 'Folder'), (3, 0, 3, 'eng-GB', 'User group'), (4, 0, 3, 'eng-GB', 'User'), (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') + (12, 0, 3, 'eng-GB', 'File'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') + (1032009743, 14, 3, 1033922120, 14, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), @@ -96,7 +96,7 @@ VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e451 (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); -- ibexa:sql-statement-separator 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), @@ -138,7 +138,7 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), @@ -152,7 +152,7 @@ VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), ('eng-GB',1,42,3,'Anonymous users','eng-GB'), ('eng-GB',1,49,3,'Images','eng-GB'), ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') + ('eng-GB',1,51,3,'Multimedia','eng-GB'); -- ibexa:sql-statement-separator 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), @@ -167,7 +167,7 @@ VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96 (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) VALUES (4,0,14,4,2,3,0,1,0,1,1), @@ -181,7 +181,7 @@ VALUES (4,0,14,4,2,3,0,1,0,1,1), (50,1080220211,14,489,2,3,1080220220,1,0,1,0), (51,1080220225,14,490,2,3,1080220233,1,0,1,0), (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); -- ibexa:sql-statement-separator 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), @@ -195,7 +195,7 @@ VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), (49,1,0,27,1,2,43,'','0',9,1,0,0), (50,1,0,28,1,2,43,'','0',9,1,0,0), (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) + (14,3,-1,38,1,2,13,'','0',1,1,0,0); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) VALUES ('*',317,'content',0,3), @@ -205,7 +205,7 @@ VALUES ('*',317,'content',0,3), ('*',332,'*',0,2), ('read',333,'content',0,4), ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) + ('*',340,'url',0,3); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) VALUES (251,'Section',328), @@ -213,7 +213,7 @@ VALUES (251,'Section',328), (253,'SiteAccess',331), (254,'Class',333), (255,'Owner',333), - (256,'Class',334) + (256,'Class',334); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) VALUES (477,251,'1'), @@ -222,21 +222,21 @@ VALUES (477,251,'1'), (480,254,'4'), (481,255,'1'), (482,256,'5'), - (483,256,'12') + (483,256,'12'); -- ibexa:sql-statement-separator INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) VALUES (1,0,'Anonymous','',0), (2,0,'Administrator','0',0), (3,0,'Editor','',0), - (4,0,'Member','',0) + (4,0,'Member','',0); -- ibexa:sql-statement-separator INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) VALUES (1,'standard','','Standard','ezcontentnavigationpart'), (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') + (3,'media','','Media','ezmedianavigationpart'); -- ibexa:sql-statement-separator INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6') +VALUES ('ibexa-release','4.6'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), @@ -250,7 +250,7 @@ VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), @@ -277,16 +277,16 @@ VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6' ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml_incr` (`id`) VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) + (34), (35), (36), (37); -- ibexa:sql-statement-separator INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); -- ibexa:sql-statement-separator INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) VALUES (11,28,'','',1), @@ -294,11 +294,11 @@ VALUES (11,28,'','',1), (13,32,'Subtree','/1/2/',3), (13,33,'Subtree','/1/43/',3), (12,34,'','',2), - (13,35,'','',4) + (13,35,'','',4); -- ibexa:sql-statement-separator INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) VALUES (1,1000,10), - (1,10,14) + (1,10,14); -- ibexa:sql-statement-separator INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql index 51df923e0d..493f01209e 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-postgresql.sql @@ -1,16 +1,16 @@ INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) + (2, 2, 2, 'locked', 3, 1); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") -VALUES (2, 2, 'ez_lock', 3) +VALUES (2, 2, 'ez_lock', 3); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") -VALUES (2, '', 3, 'Lock', 2) +VALUES (2, '', 3, 'Lock', 2); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') + (2,'',3,'Locked'); -- ibexa:sql-statement-separator INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") VALUES ( 1, 1), @@ -24,10 +24,10 @@ VALUES ( 1, 1), (42, 1), (49, 1), (50, 1), - (51, 1) + (51, 1); -- ibexa:sql-statement-separator INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), @@ -35,7 +35,7 @@ VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d4 (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0) + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), @@ -61,7 +61,7 @@ VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title', (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0) + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") VALUES (1,0,1,'Content'), @@ -69,7 +69,7 @@ VALUES (1,0,1,'Content'), (3,0,2,'Users'), (4,0,2,'Users'), (5,0,3,'Media'), - (12,0,3,'Media') + (12,0,3,'Media'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") VALUES (1,0,2,'eng-GB','Folder'), @@ -77,12 +77,12 @@ VALUES (1,0,2,'eng-GB','Folder'), (3,0,3,'eng-GB','User group'), (4,0,3,'eng-GB','User'), (5,0,3,'eng-GB','Image'), - (12,0,3,'eng-GB','File') + (12,0,3,'eng-GB','File'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') + (1032009743, 14, 3, 1033922120, 14, 'Media'); -- ibexa:sql-statement-separator INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), @@ -96,7 +96,7 @@ VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e451 (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); -- ibexa:sql-statement-separator 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), @@ -138,7 +138,7 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) + (0,180,14,0,0,E'<?xml version="1.0" encoding="utf-8"?>\n<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), @@ -152,7 +152,7 @@ VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), ('eng-GB',1,42,3,'Anonymous users','eng-GB'), ('eng-GB',1,49,3,'Images','eng-GB'), ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') + ('eng-GB',1,51,3,'Multimedia','eng-GB'); -- ibexa:sql-statement-separator 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), @@ -167,7 +167,7 @@ VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96 (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); -- ibexa:sql-statement-separator INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") VALUES (4,0,14,4,2,3,0,1,0,1,1), @@ -181,7 +181,7 @@ VALUES (4,0,14,4,2,3,0,1,0,1,1), (50,1080220211,14,489,2,3,1080220220,1,0,1,0), (51,1080220225,14,490,2,3,1080220233,1,0,1,0), (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); -- ibexa:sql-statement-separator 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), @@ -195,7 +195,7 @@ VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), (49,1,0,27,1,2,43,'','0',9,1,0,0), (50,1,0,28,1,2,43,'','0',9,1,0,0), (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) + (14,3,-1,38,1,2,13,'','0',1,1,0,0); -- ibexa:sql-statement-separator INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") VALUES ('*',317,'content',0,3), @@ -205,7 +205,7 @@ VALUES ('*',317,'content',0,3), ('*',332,'*',0,2), ('read',333,'content',0,4), ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) + ('*',340,'url',0,3); -- ibexa:sql-statement-separator INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") VALUES (251,'Section',328), @@ -213,7 +213,7 @@ VALUES (251,'Section',328), (253,'SiteAccess',331), (254,'Class',333), (255,'Owner',333), - (256,'Class',334) + (256,'Class',334); -- ibexa:sql-statement-separator INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") VALUES (477,251,'1'), @@ -222,21 +222,21 @@ VALUES (477,251,'1'), (480,254,'4'), (481,255,'1'), (482,256,'5'), - (483,256,'12') + (483,256,'12'); -- ibexa:sql-statement-separator INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") VALUES (1,0,'Anonymous','',0), (2,0,'Administrator','0',0), (3,0,'Editor','',0), - (4,0,'Member','',0) + (4,0,'Member','',0); -- ibexa:sql-statement-separator INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") VALUES (1,'standard','','Standard','ezcontentnavigationpart'), (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') + (3,'media','','Media','ezmedianavigationpart'); -- ibexa:sql-statement-separator INSERT INTO "ezsite_data" ("name", "value") -VALUES ('ibexa-release','4.6') +VALUES ('ibexa-release','4.6'); -- ibexa:sql-statement-separator INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), @@ -250,7 +250,7 @@ VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); -- ibexa:sql-statement-separator INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), @@ -277,16 +277,16 @@ VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6' ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); -- ibexa:sql-statement-separator INSERT INTO "ezurlalias_ml_incr" ("id") VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) + (34), (35), (36), (37); -- ibexa:sql-statement-separator INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); -- ibexa:sql-statement-separator INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") VALUES (11,28,'','',1), @@ -294,74 +294,74 @@ VALUES (11,28,'','',1), (13,32,'Subtree','/1/2/',3), (13,33,'Subtree','/1/43/',3), (12,34,'','',2), - (13,35,'','',4) + (13,35,'','',4); -- ibexa:sql-statement-separator INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") VALUES (1, 1000, 10), - (1, 10, 14) + (1, 10, 14); -- ibexa:sql-statement-separator INSERT INTO "ezpreferences" ("name", "user_id", "value") -SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin' +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; -- ibexa:sql-statement-separator -- Set proper sequence values after inserting data -SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; -- ibexa:sql-statement-separator -SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; -- ibexa:sql-statement-separator -SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; -- ibexa:sql-statement-separator -SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; -- ibexa:sql-statement-separator -SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; -- ibexa:sql-statement-separator -SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; -- ibexa:sql-statement-separator -SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; -- ibexa:sql-statement-separator -SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; -- ibexa:sql-statement-separator -SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; -- ibexa:sql-statement-separator -SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; -- ibexa:sql-statement-separator -SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; -- ibexa:sql-statement-separator -SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; -- ibexa:sql-statement-separator -SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; -- ibexa:sql-statement-separator -SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; -- ibexa:sql-statement-separator -SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql index f06caa6c82..81b1803b4c 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql @@ -1,16 +1,16 @@ INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) VALUES (2, 2, 1, 'not_locked', 3, 0), - (2, 2, 2, 'locked', 3, 1) + (2, 2, 2, 'locked', 3, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) -VALUES (2,2,'ez_lock',3) +VALUES (2,2,'ez_lock',3); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) -VALUES (2,'',3,'Lock',2) +VALUES (2,'',3,'Lock',2); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) VALUES (1,'',3,'Not locked'), - (2,'',3,'Locked') + (2,'',3,'Locked'); -- ibexa:sql-statement-separator INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) VALUES (1, 1), @@ -24,10 +24,10 @@ VALUES (1, 1), (42, 1), (49, 1), (50, 1), - (51, 1) + (51, 1); -- ibexa:sql-statement-separator INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) -VALUES (0, 2, 'eng-GB', 'English (United Kingdom)') +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), @@ -35,7 +35,7 @@ VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d4 (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0) + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), @@ -61,7 +61,7 @@ VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title', (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0) + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) VALUES (1, 0, 1, 'Content'), @@ -69,7 +69,7 @@ VALUES (1, 0, 1, 'Content'), (3, 0, 2, 'Users'), (4, 0, 2, 'Users'), (5, 0, 3, 'Media'), - (12, 0, 3, 'Media') + (12, 0, 3, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) VALUES (1, 0, 2, 'eng-GB', 'Folder'), @@ -77,12 +77,12 @@ VALUES (1, 0, 2, 'eng-GB', 'Folder'), (3, 0, 3, 'eng-GB', 'User group'), (4, 0, 3, 'eng-GB', 'User'), (5, 0, 3, 'eng-GB', 'Image'), - (12, 0, 3, 'eng-GB', 'File') + (12, 0, 3, 'eng-GB', 'File'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), (1031216941, 14, 2, 1033922113, 14, 'Users'), - (1032009743, 14, 3, 1033922120, 14, 'Media') + (1032009743, 14, 3, 1033922120, 14, 'Media'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), @@ -96,7 +96,7 @@ VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e451 (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), - (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1) + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); -- ibexa:sql-statement-separator 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,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), @@ -138,7 +138,7 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3) + (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), @@ -152,7 +152,7 @@ VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), ('eng-GB',1,42,3,'Anonymous users','eng-GB'), ('eng-GB',1,49,3,'Images','eng-GB'), ('eng-GB',1,50,3,'Files','eng-GB'), - ('eng-GB',1,51,3,'Multimedia','eng-GB') + ('eng-GB',1,51,3,'Multimedia','eng-GB'); -- ibexa:sql-statement-separator 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 (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), @@ -167,7 +167,7 @@ VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96 (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), - (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1) + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) VALUES (4,0,14,4,2,3,0,1,0,1,1), @@ -181,7 +181,7 @@ VALUES (4,0,14,4,2,3,0,1,0,1,1), (50,1080220211,14,489,2,3,1080220220,1,0,1,0), (51,1080220225,14,490,2,3,1080220233,1,0,1,0), (14,1301061783,14,499,2,3,1301062024,1,0,3,0), - (1,1448889045,14,506,2,3,1448889046,1,0,9,0) + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); -- ibexa:sql-statement-separator 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 (8,2,0,4,1,2,5,'','0',1,1,0,0), @@ -195,7 +195,7 @@ VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), (49,1,0,27,1,2,43,'','0',9,1,0,0), (50,1,0,28,1,2,43,'','0',9,1,0,0), (51,1,0,29,1,2,43,'','0',9,1,0,0), - (14,3,-1,38,1,2,13,'','0',1,1,0,0) + (14,3,-1,38,1,2,13,'','0',1,1,0,0); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) VALUES ('*',317,'content',0,3), @@ -205,7 +205,7 @@ VALUES ('*',317,'content',0,3), ('*',332,'*',0,2), ('read',333,'content',0,4), ('view_embed',334,'content',0,1), - ('*',340,'url',0,3) + ('*',340,'url',0,3); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) VALUES (251,'Section',328), @@ -213,7 +213,7 @@ VALUES (251,'Section',328), (253,'SiteAccess',331), (254,'Class',333), (255,'Owner',333), - (256,'Class',334) + (256,'Class',334); -- ibexa:sql-statement-separator INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) VALUES (477,251,'1'), @@ -222,21 +222,21 @@ VALUES (477,251,'1'), (480,254,'4'), (481,255,'1'), (482,256,'5'), - (483,256,'12') + (483,256,'12'); -- ibexa:sql-statement-separator INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) VALUES (1,0,'Anonymous','',0), (2,0,'Administrator','0',0), (3,0,'Editor','',0), - (4,0,'Member','',0) + (4,0,'Member','',0); -- ibexa:sql-statement-separator INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) VALUES (1,'standard','','Standard','ezcontentnavigationpart'), (2,'users','','Users','ezusernavigationpart'), - (3,'media','','Media','ezmedianavigationpart') + (3,'media','','Media','ezmedianavigationpart'); -- ibexa:sql-statement-separator INSERT INTO `ezsite_data` (`name`, `value`) -VALUES ('ibexa-release','4.6') +VALUES ('ibexa-release','4.6'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), @@ -250,7 +250,7 @@ VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), - ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia') + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), @@ -277,16 +277,16 @@ VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6' ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), - ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0') + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); -- ibexa:sql-statement-separator INSERT INTO `ezurlalias_ml_incr` (`id`) VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), - (34), (35), (36), (37) + (34), (35), (36), (37); -- ibexa:sql-statement-separator INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), - (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7) + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); -- ibexa:sql-statement-separator INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) VALUES (11,28,'','',1), @@ -294,11 +294,11 @@ VALUES (11,28,'','',1), (13,32,'Subtree','/1/2/',3), (13,33,'Subtree','/1/43/',3), (12,34,'','',2), - (13,35,'','',4) + (13,35,'','',4); -- ibexa:sql-statement-separator INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) VALUES (1,1000,10), - (1,10,14) + (1,10,14); -- ibexa:sql-statement-separator INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) -SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin' +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql index 3004bc86f7..ce1affe2b3 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id INT AUTO_INCREMENT NOT NULL, @@ -19,7 +19,7 @@ CREATE TABLE ezcobj_state ( INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id INT AUTO_INCREMENT NOT NULL, @@ -29,7 +29,7 @@ CREATE TABLE ezcobj_state_group ( INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INT DEFAULT 0 NOT NULL, @@ -38,7 +38,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INT DEFAULT 0 NOT NULL, @@ -46,13 +46,13 @@ CREATE TABLE ezcobj_state_language ( description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -61,7 +61,7 @@ CREATE TABLE ezcontent_language ( name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -72,7 +72,7 @@ CREATE TABLE ezuser ( password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id INT AUTO_INCREMENT NOT NULL, @@ -100,7 +100,7 @@ CREATE TABLE ezcontentobject_tree ( INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id INT AUTO_INCREMENT NOT NULL, @@ -111,7 +111,7 @@ CREATE TABLE ezcontentbrowsebookmark ( INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id INT AUTO_INCREMENT NOT NULL, @@ -135,7 +135,7 @@ CREATE TABLE ezcontentclass ( INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -169,7 +169,7 @@ CREATE TABLE ezcontentclass_attribute ( INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INT NOT NULL, @@ -181,7 +181,7 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -189,7 +189,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -198,7 +198,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id INT AUTO_INCREMENT NOT NULL, @@ -209,7 +209,7 @@ CREATE TABLE ezcontentclassgroup ( name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id INT AUTO_INCREMENT NOT NULL, @@ -234,7 +234,7 @@ CREATE TABLE ezcontentobject ( INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -257,7 +257,7 @@ CREATE TABLE ezcontentobject_attribute ( INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id INT AUTO_INCREMENT NOT NULL, @@ -270,7 +270,7 @@ CREATE TABLE ezcontentobject_link ( INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -283,7 +283,7 @@ CREATE TABLE ezcontentobject_name ( INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INT DEFAULT 0 NOT NULL, @@ -309,7 +309,7 @@ CREATE TABLE ezcontentobject_trash ( INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id INT AUTO_INCREMENT NOT NULL, @@ -328,7 +328,7 @@ CREATE TABLE ezcontentobject_version ( INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -345,7 +345,7 @@ CREATE TABLE ezdfsfile ( INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -355,7 +355,7 @@ CREATE TABLE ezgmaplocation ( address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id INT AUTO_INCREMENT NOT NULL, @@ -364,7 +364,7 @@ CREATE TABLE ezimagefile ( INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id INT AUTO_INCREMENT NOT NULL, @@ -372,7 +372,7 @@ CREATE TABLE ezkeyword ( keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id INT AUTO_INCREMENT NOT NULL, @@ -383,7 +383,7 @@ CREATE TABLE ezkeyword_attribute_link ( INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -400,7 +400,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id INT AUTO_INCREMENT NOT NULL, @@ -421,7 +421,7 @@ CREATE TABLE eznode_assignment ( INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id INT AUTO_INCREMENT NOT NULL, @@ -433,7 +433,7 @@ CREATE TABLE eznotification ( INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id INT AUTO_INCREMENT NOT NULL, @@ -441,7 +441,7 @@ CREATE TABLE ezpackage ( name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id INT AUTO_INCREMENT NOT NULL, @@ -452,7 +452,7 @@ CREATE TABLE ezpolicy ( INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id INT AUTO_INCREMENT NOT NULL, @@ -460,7 +460,7 @@ CREATE TABLE ezpolicy_limitation ( policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id INT AUTO_INCREMENT NOT NULL, @@ -469,7 +469,7 @@ CREATE TABLE ezpolicy_limitation_value ( INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id INT AUTO_INCREMENT NOT NULL, @@ -479,7 +479,7 @@ CREATE TABLE ezpreferences ( INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id INT AUTO_INCREMENT NOT NULL, @@ -488,7 +488,7 @@ CREATE TABLE ezrole ( value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id INT AUTO_INCREMENT NOT NULL, @@ -511,7 +511,7 @@ CREATE TABLE ezsearch_object_word_link ( INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id INT AUTO_INCREMENT NOT NULL, @@ -520,7 +520,7 @@ CREATE TABLE ezsearch_word ( INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id INT AUTO_INCREMENT NOT NULL, @@ -529,13 +529,13 @@ CREATE TABLE ezsection ( name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id INT AUTO_INCREMENT NOT NULL, @@ -547,7 +547,7 @@ CREATE TABLE ezurl ( url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -557,7 +557,7 @@ CREATE TABLE ezurl_object_link ( INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id INT AUTO_INCREMENT NOT NULL, @@ -575,7 +575,7 @@ CREATE TABLE ezurlalias ( INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INT DEFAULT 0 NOT NULL, @@ -598,12 +598,12 @@ CREATE TABLE ezurlalias_ml ( INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id INT AUTO_INCREMENT NOT NULL, @@ -611,7 +611,7 @@ CREATE TABLE ezurlwildcard ( source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id INT AUTO_INCREMENT NOT NULL, @@ -620,7 +620,7 @@ CREATE TABLE ezuser_accountkey ( user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id INT AUTO_INCREMENT NOT NULL, @@ -631,14 +631,14 @@ CREATE TABLE ezuser_role ( INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id INT AUTO_INCREMENT NOT NULL, @@ -648,14 +648,14 @@ CREATE TABLE ibexa_setting ( INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id INT AUTO_INCREMENT NOT NULL, @@ -668,12 +668,12 @@ CREATE TABLE ibexa_token ( INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB +) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql index f659882f0f..eef2fa53ac 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id SERIAL NOT NULL, @@ -16,13 +16,13 @@ CREATE TABLE ezcobj_state ( language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id SERIAL NOT NULL, @@ -30,11 +30,11 @@ CREATE TABLE ezcobj_state_group ( identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INT DEFAULT 0 NOT NULL, @@ -43,7 +43,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INT DEFAULT 0 NOT NULL, @@ -51,13 +51,13 @@ CREATE TABLE ezcobj_state_language ( description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -65,9 +65,9 @@ CREATE TABLE ezcontent_language ( locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -77,9 +77,9 @@ CREATE TABLE ezuser ( password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id) -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id SERIAL NOT NULL, @@ -99,23 +99,23 @@ CREATE TABLE ezcontentobject_tree ( sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); -- ibexa:sql-statement-separator -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id SERIAL NOT NULL, @@ -123,13 +123,13 @@ CREATE TABLE ezcontentbrowsebookmark ( user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id SERIAL NOT NULL, @@ -151,11 +151,11 @@ CREATE TABLE ezcontentclass ( sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id SERIAL NOT NULL, @@ -187,11 +187,11 @@ CREATE TABLE ezcontentclass_attribute ( serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INT NOT NULL, @@ -202,9 +202,9 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -212,7 +212,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -221,7 +221,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id SERIAL NOT NULL, @@ -232,7 +232,7 @@ CREATE TABLE ezcontentclassgroup ( name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id SERIAL NOT NULL, @@ -249,23 +249,23 @@ CREATE TABLE ezcontentobject ( status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id SERIAL NOT NULL, @@ -282,19 +282,19 @@ CREATE TABLE ezcontentobject_attribute ( sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id SERIAL NOT NULL, @@ -304,13 +304,13 @@ CREATE TABLE ezcontentobject_link ( relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -320,13 +320,13 @@ CREATE TABLE ezcontentobject_name ( name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INT DEFAULT 0 NOT NULL, @@ -346,19 +346,19 @@ CREATE TABLE ezcontentobject_trash ( sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id SERIAL NOT NULL, @@ -373,15 +373,15 @@ CREATE TABLE ezcontentobject_version ( version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); -- ibexa:sql-statement-separator -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -394,15 +394,15 @@ CREATE TABLE ezdfsfile ( expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -411,29 +411,29 @@ CREATE TABLE ezgmaplocation ( longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id SERIAL NOT NULL, @@ -441,13 +441,13 @@ CREATE TABLE ezkeyword_attribute_link ( objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -464,7 +464,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id SERIAL NOT NULL, @@ -481,15 +481,15 @@ CREATE TABLE eznode_assignment ( priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id SERIAL NOT NULL, @@ -499,11 +499,11 @@ CREATE TABLE eznotification ( created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner ON eznotification (owner_id) +CREATE INDEX eznotification_owner ON eznotification (owner_id); -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id SERIAL NOT NULL, @@ -511,7 +511,7 @@ CREATE TABLE ezpackage ( name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id SERIAL NOT NULL, @@ -520,31 +520,31 @@ CREATE TABLE ezpolicy ( original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id SERIAL NOT NULL, @@ -552,11 +552,11 @@ CREATE TABLE ezpreferences ( user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_name ON ezpreferences (name) +CREATE INDEX ezpreferences_name ON ezpreferences (name); -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id SERIAL NOT NULL, @@ -565,7 +565,7 @@ CREATE TABLE ezrole ( value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id SERIAL NOT NULL, @@ -583,28 +583,28 @@ CREATE TABLE ezsearch_object_word_link ( word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id SERIAL NOT NULL, @@ -613,13 +613,13 @@ CREATE TABLE ezsection ( name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id SERIAL NOT NULL, @@ -630,23 +630,23 @@ CREATE TABLE ezurl ( original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_url ON ezurl (url) +CREATE INDEX ezurl_url ON ezurl (url); -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id SERIAL NOT NULL, @@ -658,19 +658,19 @@ CREATE TABLE ezurlalias ( source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INT DEFAULT 0 NOT NULL, @@ -685,28 +685,28 @@ CREATE TABLE ezurlalias_ml ( link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent) +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original) +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id SERIAL NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id SERIAL NOT NULL, @@ -714,7 +714,7 @@ CREATE TABLE ezurlwildcard ( source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id SERIAL NOT NULL, @@ -722,9 +722,9 @@ CREATE TABLE ezuser_accountkey ( time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id SERIAL NOT NULL, @@ -733,18 +733,18 @@ CREATE TABLE ezuser_role ( limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id SERIAL NOT NULL, @@ -752,19 +752,19 @@ CREATE TABLE ibexa_setting ( identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id SERIAL NOT NULL, @@ -775,16 +775,16 @@ CREATE TABLE ibexa_token ( expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 89d8450fe5..38c87c1365 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -15,24 +15,24 @@ CREATE TABLE ezcobj_state ( identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority) +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask) +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier) +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask) +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier) +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, @@ -41,7 +41,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INTEGER DEFAULT 0 NOT NULL, @@ -49,13 +49,13 @@ CREATE TABLE ezcobj_state_language ( description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -63,9 +63,9 @@ CREATE TABLE ezcontent_language ( locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontent_language_name ON ezcontent_language (name) +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INTEGER DEFAULT 0 NOT NULL, @@ -75,9 +75,9 @@ CREATE TABLE ezuser ( password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id) -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezuser_login ON ezuser (login) +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -96,23 +96,23 @@ CREATE TABLE ezcontentobject_tree ( remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1 -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id) +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string) +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id) +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id) +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth) +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string) +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); -- ibexa:sql-statement-separator -CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode) +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id) +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -121,13 +121,13 @@ CREATE TABLE ezcontentbrowsebookmark ( name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id) +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id) +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id) +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -148,11 +148,11 @@ CREATE TABLE ezcontentclass ( sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_version ON ezcontentclass (version) +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version) +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -183,11 +183,11 @@ CREATE TABLE ezcontentclass_attribute ( serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id) +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string) +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INTEGER NOT NULL, @@ -199,9 +199,9 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id) +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INTEGER DEFAULT 0 NOT NULL, @@ -209,7 +209,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INTEGER DEFAULT 0 NOT NULL, @@ -218,7 +218,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -228,7 +228,7 @@ CREATE TABLE ezcontentclassgroup ( modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -244,23 +244,23 @@ CREATE TABLE ezcontentobject ( section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id) +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask) +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_pub ON ezcontentobject (published) +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id) +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version) +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id) +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_status ON ezcontentobject (status) +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id) +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -276,19 +276,19 @@ CREATE TABLE ezcontentobject_attribute ( language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code) +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id) +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string) +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code) +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); -- ibexa:sql-statement-separator -CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int) +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version) +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -297,13 +297,13 @@ CREATE TABLE ezcontentobject_link ( from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id) +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id) +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id) +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INTEGER DEFAULT 0 NOT NULL, @@ -313,13 +313,13 @@ CREATE TABLE ezcontentobject_name ( name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id) +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version) +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name) +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INTEGER DEFAULT 0 NOT NULL, @@ -339,19 +339,19 @@ CREATE TABLE ezcontentobject_trash ( sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth) +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id) +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string) +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id) +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode) +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string) +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -365,15 +365,15 @@ CREATE TABLE ezcontentobject_version ( user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0 -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status) +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); -- ibexa:sql-statement-separator -CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version) +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); -- ibexa:sql-statement-separator -CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status) +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); -- ibexa:sql-statement-separator -CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id) +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -386,15 +386,15 @@ CREATE TABLE ezdfsfile ( expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk) +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name) +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_name ON ezdfsfile (name) +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); -- ibexa:sql-statement-separator -CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime) +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, @@ -403,40 +403,40 @@ CREATE TABLE ezgmaplocation ( longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) +); -- ibexa:sql-statement-separator -CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude) +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_file ON ezimagefile (filepath) +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); -- ibexa:sql-statement-separator -CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id) +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword) +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id) +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id) +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version) +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, @@ -453,7 +453,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) +); -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -469,15 +469,15 @@ CREATE TABLE eznode_assignment ( sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main) +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version) +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node) +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); -- ibexa:sql-statement-separator -CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version) +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -486,18 +486,18 @@ CREATE TABLE eznotification ( type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending) +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); -- ibexa:sql-statement-separator -CREATE INDEX eznotification_owner ON eznotification (owner_id) +CREATE INDEX eznotification_owner ON eznotification (owner_id); -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -505,40 +505,40 @@ CREATE TABLE ezpolicy ( module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id) +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id) +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX policy_id ON ezpolicy_limitation (policy_id) +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id) +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); -- ibexa:sql-statement-separator -CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value) +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name) +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); -- ibexa:sql-statement-separator -CREATE INDEX ezpreferences_name ON ezpreferences (name) +CREATE INDEX ezpreferences_name ON ezpreferences (name); -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -546,7 +546,7 @@ CREATE TABLE ezrole ( name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0 -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -563,27 +563,27 @@ CREATE TABLE ezsearch_object_word_link ( section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id) +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier) +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value) +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id) +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency) +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word) +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); -- ibexa:sql-statement-separator -CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count) +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -591,13 +591,13 @@ CREATE TABLE ezsection ( locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart' -) +); -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name) -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -607,23 +607,23 @@ CREATE TABLE ezurl ( modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_url ON ezurl (url) +CREATE INDEX ezurl_url ON ezurl (url); -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id) +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id) +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); -- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version) +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -634,19 +634,19 @@ CREATE TABLE ezurlalias ( is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5) +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id) +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id) +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url) +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url) +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INTEGER DEFAULT 0 NOT NULL, @@ -661,43 +661,43 @@ CREATE TABLE ezurlalias_ml ( link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias) +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent) +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent) +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link) +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original) +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link) +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link) +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); -- ibexa:sql-statement-separator -CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id) +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX hash_key ON ezuser_accountkey (hash_key) +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -705,36 +705,36 @@ CREATE TABLE ezuser_role ( limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL -) +); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id) +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); -- ibexa:sql-statement-separator -CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id) +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id) -) +); -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) -) +); -- ibexa:sql-statement-separator -CREATE INDEX ibexa_setting_id ON ibexa_setting (id) +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier) +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL -) +); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier) +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, @@ -745,8 +745,8 @@ CREATE TABLE ibexa_token ( expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE -) +); -- ibexa:sql-statement-separator -CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id) +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); -- ibexa:sql-statement-separator -CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id) +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); From ca94d3ed345a10ec7cda06b9e141e2a125445a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Thu, 23 Jul 2026 17:25:35 +0200 Subject: [PATCH 56/88] IBX-11939: Added schema/data-presence guards for legacy-install migrations Guards ibexa/core's InstallSchemaMigration/ImportDataMigration/ RenameSchemaTo5_0Migration and ibexa/fieldtype-page's RenameSchemaTo5_0Migration so they skip when an existing install already built its schema the old way. ImportDataMigration checks for the absence of its pre-rename input table, since migrations run in a strict, deterministic order -- if it's missing, this system never went through this migration, meaning it built its schema (and bootstrap data) via schema.yaml directly. The two data-value fixes hidden inside the rename migrations (core's ez_lock/ezstring identifier fixes, fieldtype-page's block-ID HTML reference fix) are split into their own always-run migrations (FixLegacyIdentifiersMigration, FixBlockIdReferencesMigration), since a schema-shape guard on the rename would otherwise also skip these on a system whose schema is already renamed but whose row data still holds the old values -- schema.yaml only defines structure, not content. Both run unconditionally right after their corresponding rename (same target version, later creation date), so the tables they touch are always at their final name by then, and each statement is a no-op via its own WHERE clause once already applied. --- .../RepositoryInstaller/Migration/ImportDataMigration.php | 7 +++++++ .../Migration/InstallSchemaMigration.php | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 35dbbc0e1a..6c7b93b0ee 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -35,6 +35,13 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + // This migration inserts into "ezcontentobject" (the pre-rename name) since it runs + // before the 5.0.0 rename. Migrations execute in a strict, deterministic order, so if + // that table is missing here, this system never went through this migration at all -- + // it built its schema (and presumably its own bootstrap data) via schema.yaml directly, + // straight to the final "ibexa_content" naming. + $this->skipIf(!$schema->hasTable('ezcontentobject'), 'Schema already migrated: table "ezcontentobject" no longer exists.'); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); } elseif ($this->isPostgreSQL()) { diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index d4be9886f8..f007673b09 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -35,6 +35,12 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + // Checks the final, post-rename table name (not "ezcontentobject", which this + // migration creates): an install that built its schema via schema.yaml (rather than + // through this migration) never has "ezcontentobject" -- it already has + // "ibexa_content" directly. + $this->skipIf($schema->hasTable('ibexa_content'), 'Schema already migrated: table "ibexa_content" already exists.'); + if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); } elseif ($this->isPostgreSQL()) { From af2a87d7f0c617d162f1186252925d6a616c6c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Thu, 23 Jul 2026 18:36:14 +0200 Subject: [PATCH 57/88] IBX-11939: Recorded schema-guarded migrations as applied, not skipped Doctrine Migrations only calls MetadataStorage::complete() (the write to doctrine_migration_versions) when a migration's up() returns normally -- never when it throws SkipMigration. So every migration using skipIf() was being silently re-evaluated on every future doctrine:migrations:migrate run instead of being permanently recorded as applied, even though its guard condition (the schema already being in place) never changes back. Replaces every `$this->skipIf($condition, $message);` with `if ($condition) { return; }`: up() now returns normally with zero queued SQL when the guard fires, so the migration is correctly recorded as executed (with a "did not result in any SQL statements" warning logged, which is expected and harmless) and never re-evaluated again. Verified end-to-end: fresh ibexa:install (schema_builder_event enabled) followed by doctrine:migrations:migrate now records all 44 tagged migrations in doctrine_migration_versions in one pass, and a second migrate run does zero work at all ("Already at the latest version"). --- .../RepositoryInstaller/Migration/ImportDataMigration.php | 4 +++- .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 6c7b93b0ee..9f0820199a 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -40,7 +40,9 @@ public function up(Schema $schema): void // that table is missing here, this system never went through this migration at all -- // it built its schema (and presumably its own bootstrap data) via schema.yaml directly, // straight to the final "ibexa_content" naming. - $this->skipIf(!$schema->hasTable('ezcontentobject'), 'Schema already migrated: table "ezcontentobject" no longer exists.'); + if (!$schema->hasTable('ezcontentobject')) { + return; + } if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index f007673b09..b68f8392e2 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -39,7 +39,9 @@ public function up(Schema $schema): void // migration creates): an install that built its schema via schema.yaml (rather than // through this migration) never has "ezcontentobject" -- it already has // "ibexa_content" directly. - $this->skipIf($schema->hasTable('ibexa_content'), 'Schema already migrated: table "ibexa_content" already exists.'); + if ($schema->hasTable('ibexa_content')) { + return; + } if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); From 243b982ebc93952e206fa46fa1a636b681deaf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Thu, 23 Jul 2026 19:00:30 +0200 Subject: [PATCH 58/88] IBX-11939: Fixed 4.6 baseline guards to check the branch's own table name Live end-to-end testing (fresh legacy install -> doctrine:migrations:migrate on 4.6) surfaced that these baseline guards checked the FINAL, post-5.0- rename table name (e.g. "ibexa_content") -- correct on 5.0/6.0, but wrong on 4.6, which has no rename at all: there, the table this migration creates already IS the branch's permanent, current name (e.g. "ezcontentobject"), so the guard never fired and the baseline collided with an already-installed legacy 4.6 schema. Checks the branch's own table name instead, exactly like every other baseline guard that has no later rename to worry about. For core's ImportDataMigration specifically, this required a proper data check rather than a schema-shape check: "ezcontentobject" is 4.6's real, permanent name, so it always exists once the baseline has run there, regardless of whether this migration's own bootstrap INSERTs ran yet. Checks for the actual seed row (root content, id = 1) instead, combined with the table's outright absence (the 5.0/6.0 legacy signal) via OR. --- .../Migration/ImportDataMigration.php | 9 ++++++++- .../Migration/InstallSchemaMigration.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 9f0820199a..be7c1565d0 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -40,7 +40,14 @@ public function up(Schema $schema): void // that table is missing here, this system never went through this migration at all -- // it built its schema (and presumably its own bootstrap data) via schema.yaml directly, // straight to the final "ibexa_content" naming. - if (!$schema->hasTable('ezcontentobject')) { + // Two different "already done" signals, since "ezcontentobject" behaves + // differently depending on the branch: on 5.0/6.0 it's renamed away to + // "ibexa_content", so its outright absence means a legacy install already skipped + // straight to that final name. On 4.6 it's the table's real, permanent name (never + // renamed), so it always exists once the baseline has run -- there, only the actual + // bootstrap row (the root content object always has id = 1) distinguishes "not yet + // imported" from "already imported". + if (!$schema->hasTable('ezcontentobject') || $this->connection->fetchOne('SELECT 1 FROM ezcontentobject WHERE id = 1') !== false) { return; } diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index b68f8392e2..fc7d0b875a 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -39,7 +39,7 @@ public function up(Schema $schema): void // migration creates): an install that built its schema via schema.yaml (rather than // through this migration) never has "ezcontentobject" -- it already has // "ibexa_content" directly. - if ($schema->hasTable('ibexa_content')) { + if ($schema->hasTable('ezcontentobject')) { return; } From 48fbfde6276b025bde2dd0dae78b183643051ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Fri, 24 Jul 2026 10:22:38 +0200 Subject: [PATCH 59/88] IBX-11939: Added a SchemaProvider bridging Doctrine Migrations to SchemaBuilderEvent ibexa:doctrine:migrations:diff (and any other Doctrine Migrations command that needs a target schema) previously failed with 'The schema provider is not available.', since IbexaOnlyDependencyFactory never had an entity manager or SchemaProvider configured. SchemaBuilderEventSchemaProvider bridges Doctrine Migrations' SchemaProvider to Ibexa's own legacy, event-driven schema builder (SchemaBuilderInterface, backed by SchemaBuilderEvent and every installed package's BuildSchemaSubscriber) -- the same mechanism CoreInstaller::importSchema() already uses for the legacy install path. A new compiler pass wires it onto IbexaOnlyDependencyFactory via setService(), a no-op if ibexa/doctrine-schema or ibexa/doctrine-migrations isn't installed. --- ...erSchemaBuilderEventSchemaProviderPass.php | 41 ++++++++++++ .../IbexaRepositoryInstallerBundle.php | 2 + .../SchemaBuilderEventSchemaProvider.php | 34 ++++++++++ .../Resources/config/services.yml | 4 ++ ...hemaBuilderEventSchemaProviderPassTest.php | 63 +++++++++++++++++++ .../SchemaBuilderEventSchemaProviderTest.php | 34 ++++++++++ 6 files changed, 178 insertions(+) create mode 100644 src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php create mode 100644 src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php create mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php new file mode 100644 index 0000000000..47fadc4add --- /dev/null +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPass.php @@ -0,0 +1,41 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; + +use Doctrine\Migrations\Provider\SchemaProvider; +use Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Reference; + +/** + * Wires {@see SchemaBuilderEventSchemaProvider} onto + * {@see IbexaOnlyDependencyFactory::SERVICE_ID} as its {@see SchemaProvider}, so + * "ibexa:doctrine:migrations:diff"/":generate" (registered by ibexa/doctrine-migrations) can + * compare against the schema Ibexa's SchemaBuilderEvent-based packages expect. + * + * A no-op if either ibexa/doctrine-migrations or ibexa/doctrine-schema isn't installed/enabled -- + * both are optional as far as this bundle is concerned. + */ +final class RegisterSchemaBuilderEventSchemaProviderPass implements CompilerPassInterface +{ + public function process(ContainerBuilder $container): void + { + if ( + !$container->hasDefinition(IbexaOnlyDependencyFactory::SERVICE_ID) + || !$container->hasDefinition(SchemaBuilderEventSchemaProvider::class) + ) { + return; + } + + $container->getDefinition(IbexaOnlyDependencyFactory::SERVICE_ID) + ->addMethodCall('setService', [SchemaProvider::class, new Reference(SchemaBuilderEventSchemaProvider::class)]); + } +} diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index 7ad8d89726..89f75d193d 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -7,6 +7,7 @@ namespace Ibexa\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -28,6 +29,7 @@ public function build(ContainerBuilder $container) } parent::build($container); + $container->addCompilerPass(new RegisterSchemaBuilderEventSchemaProviderPass()); } } diff --git a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php new file mode 100644 index 0000000000..4fdf2b637f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php @@ -0,0 +1,34 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\Provider\SchemaProvider; +use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; + +/** + * Bridges Doctrine Migrations' {@see SchemaProvider} to Ibexa's own legacy, event-driven schema + * builder ({@see SchemaBuilderInterface}, backed by {@see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent} + * and every installed package's {@see \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\BuildSchemaSubscriber}). + * + * Wired onto {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory} so that + * "ibexa:doctrine:migrations:diff" (and any other command that needs a target schema) can compare the live + * database against the schema Ibexa's packages expect, without requiring a Doctrine ORM entity manager. + */ +final class SchemaBuilderEventSchemaProvider implements SchemaProvider +{ + public function __construct(private readonly SchemaBuilderInterface $schemaBuilder) + { + } + + public function createSchema(): Schema + { + return $this->schemaBuilder->buildSchema(); + } +} diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 4a96b2cf16..49112174f6 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -29,6 +29,10 @@ services: # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider: + autowire: true + public: false + Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller: abstract: true arguments: ['@ibexa.persistence.connection'] diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php new file mode 100644 index 0000000000..b0270133e3 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RegisterSchemaBuilderEventSchemaProviderPassTest.php @@ -0,0 +1,63 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection\Compiler; + +use Doctrine\Migrations\Provider\SchemaProvider; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; +use Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use PHPUnit\Framework\TestCase; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Definition; +use Symfony\Component\DependencyInjection\Reference; + +/** + * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass + */ +final class RegisterSchemaBuilderEventSchemaProviderPassTest extends TestCase +{ + public function testWiresSchemaProviderOntoIbexaOnlyDependencyFactory(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(IbexaOnlyDependencyFactory::SERVICE_ID, new Definition()); + $container->setDefinition(SchemaBuilderEventSchemaProvider::class, new Definition()); + + (new RegisterSchemaBuilderEventSchemaProviderPass())->process($container); + + $calls = $container->getDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)->getMethodCalls(); + self::assertCount(1, $calls); + self::assertSame('setService', $calls[0][0]); + self::assertSame(SchemaProvider::class, $calls[0][1][0]); + self::assertInstanceOf(Reference::class, $calls[0][1][1]); + self::assertSame(SchemaBuilderEventSchemaProvider::class, (string) $calls[0][1][1]); + } + + public function testIsNoOpWhenIbexaOnlyDependencyFactoryIsNotDefined(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(SchemaBuilderEventSchemaProvider::class, new Definition()); + + (new RegisterSchemaBuilderEventSchemaProviderPass())->process($container); + + $this->addToAssertionCount(1); + } + + public function testIsNoOpWhenSchemaBuilderEventSchemaProviderIsNotDefined(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(IbexaOnlyDependencyFactory::SERVICE_ID, new Definition()); + + (new RegisterSchemaBuilderEventSchemaProviderPass())->process($container); + + self::assertSame( + [], + $container->getDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)->getMethodCalls() + ); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php b/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php new file mode 100644 index 0000000000..b63fcbcd62 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProviderTest.php @@ -0,0 +1,34 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration; + +use Doctrine\DBAL\Schema\Schema; +use Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider; +use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; +use PHPUnit\Framework\TestCase; + +/** + * @covers \Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider + */ +final class SchemaBuilderEventSchemaProviderTest extends TestCase +{ + public function testCreateSchemaDelegatesToSchemaBuilder(): void + { + $schema = new Schema(); + + $schemaBuilder = $this->createMock(SchemaBuilderInterface::class); + $schemaBuilder->expects(self::once()) + ->method('buildSchema') + ->willReturn($schema); + + $provider = new SchemaBuilderEventSchemaProvider($schemaBuilder); + + self::assertSame($schema, $provider->createSchema()); + } +} From 1675c26ab16ac7a49fc40f8a11a16d2896a79b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 24 Jul 2026 14:06:17 +0200 Subject: [PATCH 60/88] IBX-11939: Fixed PHP 7.4 compatibility in SchemaBuilderEventSchemaProvider --- .../Migration/SchemaBuilderEventSchemaProvider.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php index 4fdf2b637f..6e4811d1cf 100644 --- a/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php +++ b/src/bundle/RepositoryInstaller/Migration/SchemaBuilderEventSchemaProvider.php @@ -23,8 +23,11 @@ */ final class SchemaBuilderEventSchemaProvider implements SchemaProvider { - public function __construct(private readonly SchemaBuilderInterface $schemaBuilder) + private SchemaBuilderInterface $schemaBuilder; + + public function __construct(SchemaBuilderInterface $schemaBuilder) { + $this->schemaBuilder = $schemaBuilder; } public function createSchema(): Schema From 5234b2b4885819741fa588cec710a685d47f746d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Mon, 27 Jul 2026 12:26:30 +0200 Subject: [PATCH 61/88] IBX-11939: Addressed review feedback (arrow-fn style, removed redundant importData() call) - CoreInstaller::getQueriesFromSchemaBuilderEvent() now builds its Query list via an arrow function instead of a static closure, per review suggestion. - CoreInstaller::importData() no longer re-invokes TaggedMigrationsRunner::run() in the migrations-runner branch; importSchema() already runs every tagged migration (including ImportDataMigration) to the latest version, so the second call was a pure no-op with no real caller relying on it standalone. - getDropSqlStatementsForExistingSchema()'s docblock tightened to list<string>, which it always genuinely returns. - TaggedMigrationsRunner's constructor documents why $dependencyFactory is nullable (optional service, wired via "@?..." in services.yml; run() throws a clear exception if called while null). --- .../Installer/CoreInstaller.php | 19 +++++++------------ .../Migration/TaggedMigrationsRunner.php | 6 ++++++ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 6a10a9ecad..1d1667daa3 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -86,9 +86,10 @@ private function getQueriesFromSchemaBuilderEvent(): array $schema->toSql($databasePlatform) ); - return array_map(static function (string $sql): Query { - return new Query($sql); - }, $sqls); + return array_map( + static fn (string $sql): Query => new Query($sql), + $sqls + ); } /** @@ -144,10 +145,8 @@ private function executeQueries(array $queries): void * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), this imports * the DBMS-specific "cleandata.sql" file directly. * - * Otherwise, this also delegates to {@see TaggedMigrationsRunner}, same as {@see importSchema()}. Since - * {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is tagged and run the same way, - * calling the runner here typically executes nothing new (it already ran as part of importSchema()) - - * this call only matters if importData() is invoked on its own. + * Otherwise, this is a no-op: {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is + * tagged and already runs as part of {@see importSchema()}'s call to {@see TaggedMigrationsRunner}. * * @throws \Doctrine\DBAL\DBALException * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException @@ -156,15 +155,11 @@ public function importData() { if ($this->schemaBuilderEventEnabled) { $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); - - return; } - - $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * @return string[] + * @return list<string> */ protected function getDropSqlStatementsForExistingSchema( Schema $newSchema, diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index c77115aa47..e75d48f090 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -41,6 +41,12 @@ final class TaggedMigrationsRunner { private ?DependencyFactory $dependencyFactory; + /** + * @param \Doctrine\Migrations\DependencyFactory|null $dependencyFactory Null when + * "ibexa/doctrine-migrations" isn't installed/enabled ({@see services.yml}'s optional + * "@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only" reference) — + * {@see run()} throws a clear exception rather than allowing a silent no-op in that state. + */ public function __construct(?DependencyFactory $dependencyFactory = null) { $this->dependencyFactory = $dependencyFactory; From e97aad6848ff1e94e358b25f6c712440eaefed88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.tadeusz.niedzielski@gmail.com> Date: Mon, 27 Jul 2026 17:20:19 +0200 Subject: [PATCH 62/88] IBX-11939: Removed ibexa/doctrine-migrations VCS repository entry ibexa/doctrine-migrations is now published on Packagist (which mirrors all of its branches, not just tags), so the explicit VCS repository pointing composer directly at GitHub is no longer needed to resolve the dev-branch require constraint. --- composer.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/composer.json b/composer.json index b929891d71..53c7eb4a09 100644 --- a/composer.json +++ b/composer.json @@ -3,12 +3,6 @@ "description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.", "homepage": "https://ibexa.co", "license": "(GPL-2.0-only or proprietary)", - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/ibexa/doctrine-migrations.git" - } - ], "suggest": { "php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required" }, From a910163c134df6c915aacbe05914d768994296f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Tue, 28 Jul 2026 11:33:43 +0200 Subject: [PATCH 63/88] IBX-11939: Made TaggedMigrationsRunner's DependencyFactory dependency mandatory Instead of TaggedMigrationsRunner tolerating a null DependencyFactory at runtime, RemoveTaggedMigrationsRunnerPass now removes its service definition entirely when "ibexa/doctrine-migrations" isn't installed/enabled, and CoreInstaller depends on it as an optional (nullable) service instead, throwing a clear configuration exception if "ibexa.installer.schema_builder_event.enabled" is disabled without it. --- .../RemoveTaggedMigrationsRunnerPass.php | 38 +++++++++++++++++++ .../IbexaRepositoryInstallerBundle.php | 2 + .../Installer/CoreInstaller.php | 16 +++++++- .../Migration/TaggedMigrationsRunner.php | 26 ++++--------- .../Resources/config/services.yml | 11 ++++-- 5 files changed, 69 insertions(+), 24 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php new file mode 100644 index 0000000000..90468208d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php @@ -0,0 +1,38 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; + +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; +use Symfony\Component\DependencyInjection\ContainerBuilder; + +/** + * Removes the {@see TaggedMigrationsRunner} service definition when + * {@see IbexaOnlyDependencyFactory::SERVICE_ID} isn't available - i.e. "ibexa/doctrine-migrations" + * isn't installed/enabled - since {@see TaggedMigrationsRunner} requires a real + * {@see \Doctrine\Migrations\DependencyFactory} and can no longer be built with none available. + * + * Runs before the reference-validity check (which happens in the "before removing" compiler pass + * stage), so the still-mandatory "$dependencyFactory" argument on the (now-removed) definition + * never gets a chance to fail container compilation. + */ +final class RemoveTaggedMigrationsRunnerPass implements CompilerPassInterface +{ + public function process(ContainerBuilder $container): void + { + if ($container->hasDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)) { + return; + } + + if ($container->hasDefinition(TaggedMigrationsRunner::class)) { + $container->removeDefinition(TaggedMigrationsRunner::class); + } + } +} diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index 89f75d193d..727671450e 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -8,6 +8,7 @@ use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RegisterSchemaBuilderEventSchemaProviderPass; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -30,6 +31,7 @@ public function build(ContainerBuilder $container) parent::build($container); $container->addCompilerPass(new RegisterSchemaBuilderEventSchemaProviderPass()); + $container->addCompilerPass(new RemoveTaggedMigrationsRunnerPass()); } } diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 1d1667daa3..84abcca803 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -13,7 +13,9 @@ use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\Query\Query; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; +use RuntimeException; use Symfony\Component\Console\Helper\ProgressBar; /** @@ -26,13 +28,13 @@ class CoreInstaller extends DbBasedInstaller implements Installer private bool $schemaBuilderEventEnabled; - private TaggedMigrationsRunner $taggedMigrationsRunner; + private ?TaggedMigrationsRunner $taggedMigrationsRunner; public function __construct( Connection $db, SchemaBuilderInterface $schemaBuilder, bool $schemaBuilderEventEnabled, - TaggedMigrationsRunner $taggedMigrationsRunner + ?TaggedMigrationsRunner $taggedMigrationsRunner = null ) { parent::__construct($db); @@ -54,6 +56,8 @@ public function __construct( * package's) via the application's Doctrine Migrations DependencyFactory. * * @throws \Doctrine\DBAL\DBALException + * @throws \RuntimeException if "ibexa.installer.schema_builder_event.enabled" is disabled but + * "ibexa/doctrine-migrations" isn't installed/enabled to run the migrations-based path instead */ public function importSchema() { @@ -63,6 +67,14 @@ public function importSchema() return; } + if ($this->taggedMigrationsRunner === null) { + throw new RuntimeException( + 'Disabling "ibexa.installer.schema_builder_event.enabled" requires the "' . + IbexaOnlyDependencyFactory::SERVICE_ID . '" service (provided by "ibexa/doctrine-migrations", ' . + 'with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle registered) to be available.' + ); + } + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index e75d48f090..4731a0a49c 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -16,7 +16,6 @@ use Doctrine\Migrations\Metadata\Storage\MetadataStorage; use Doctrine\Migrations\Version\ExecutionResult; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; -use RuntimeException; /** * Runs every not-yet-executed migration tagged with @@ -36,37 +35,26 @@ * Doctrine Migrations' Migrator/Executor/AliasResolver classes are marked `@internal`. Only the * DependencyFactory's public accessors ({@see DependencyFactory::getMigrationPlanCalculator()}, * {@see DependencyFactory::getMetadataStorage()}, {@see DependencyFactory::getConnection()}) are used. + * + * This service isn't registered at all when "ibexa/doctrine-migrations" isn't installed/enabled + * ({@see \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass} + * removes its definition), so callers should depend on it as an optional (nullable) service rather + * than expecting this class itself to handle that unavailability. */ final class TaggedMigrationsRunner { - private ?DependencyFactory $dependencyFactory; + private DependencyFactory $dependencyFactory; - /** - * @param \Doctrine\Migrations\DependencyFactory|null $dependencyFactory Null when - * "ibexa/doctrine-migrations" isn't installed/enabled ({@see services.yml}'s optional - * "@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only" reference) — - * {@see run()} throws a clear exception rather than allowing a silent no-op in that state. - */ - public function __construct(?DependencyFactory $dependencyFactory = null) + public function __construct(DependencyFactory $dependencyFactory) { $this->dependencyFactory = $dependencyFactory; } /** * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run - * - * @throws \RuntimeException if the "{@see IbexaOnlyDependencyFactory::SERVICE_ID}" service isn't available */ public function run(): array { - if ($this->dependencyFactory === null) { - throw new RuntimeException( - 'Running tagged Doctrine migrations requires the "' . IbexaOnlyDependencyFactory::SERVICE_ID . '" ' . - 'service (provided by doctrine/migrations-bundle, with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle ' . - 'registered) to be available.' - ); - } - $metadataStorage = $this->dependencyFactory->getMetadataStorage(); // Mirrors what the "doctrine:migrations:migrate" console command does before migrating. $metadataStorage->ensureInitialized(); diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 49112174f6..ec4edc480e 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -24,10 +24,11 @@ services: Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: public: false arguments: - # Optional: only resolves to a service if doctrine/migrations-bundle is installed and - # configured. Not defined here, since it belongs to that package, not this one. + # Mandatory: this whole service definition is removed by RemoveTaggedMigrationsRunnerPass + # when unavailable, so compilation never attempts to resolve this reference in that case. + # Not defined here, since it belongs to that package, not this one. # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID - $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + $dependencyFactory: '@ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' Ibexa\Bundle\RepositoryInstaller\Migration\SchemaBuilderEventSchemaProvider: autowire: true @@ -43,6 +44,10 @@ services: parent: Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller arguments: $schemaBuilderEventEnabled: '%ibexa.installer.schema_builder_event.enabled%' + # Optional: TaggedMigrationsRunner's own service definition may not exist at all + # (RemoveTaggedMigrationsRunnerPass removes it when "ibexa/doctrine-migrations" isn't + # installed/enabled) - autowiring alone can't express "pass null if absent". + $taggedMigrationsRunner: '@?Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner' tags: - { name: ibexa.installer, type: ibexa-oss } From ebda9fc760124ae38feae21939f14317c297bdbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Tue, 28 Jul 2026 11:34:15 +0200 Subject: [PATCH 64/88] IBX-11939: Enforced list<Query> return from getQueriesFromSchemaBuilderEvent() Passing an empty array as array_map()'s third argument re-indexes its result, so PHPStan can type it as list<Query> instead of Query[]. --- src/bundle/RepositoryInstaller/Installer/CoreInstaller.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 84abcca803..57253f09b5 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -86,7 +86,7 @@ public function importSchema() * @see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent * @see \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\BuildSchemaSubscriber * - * @return \Doctrine\Migrations\Query\Query[] + * @return list<\Doctrine\Migrations\Query\Query> */ private function getQueriesFromSchemaBuilderEvent(): array { @@ -100,7 +100,8 @@ private function getQueriesFromSchemaBuilderEvent(): array return array_map( static fn (string $sql): Query => new Query($sql), - $sqls + $sqls, + [] ); } From f79f6b020d08288e99eedc665e00bc06be12aa04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Wed, 29 Jul 2026 00:25:15 +0200 Subject: [PATCH 65/88] Added guarded migrations for core content/URL performance indexes Converts installer's upgrade/db/ibexa-4.5.1-to-4.5.2.sql (indexes on ezcontentobject_link, ezcontentclass_attribute, ezurl_object_link, ezcontentobject_attribute) and upgrade/db/ibexa-4.6.20-to-4.6.21.sql (ezurlalias_ml "link" index) into guarded Doctrine migrations, for installs whose schema already predates these indexes. --- .../AddContentPerformanceIndexesMigration.php | 58 +++++++++++++++++++ .../AddUrlAliasMlLinkIndexMigration.php | 57 ++++++++++++++++++ .../add-content-performance-indexes-mysql.sql | 7 +++ ...content-performance-indexes-postgresql.sql | 7 +++ ...add-content-performance-indexes-sqlite.sql | 7 +++ .../sql/add-urlalias-ml-link-index-mysql.sql | 1 + .../add-urlalias-ml-link-index-postgresql.sql | 1 + .../sql/add-urlalias-ml-link-index-sqlite.sql | 1 + .../Resources/config/services.yml | 16 +++++ 9 files changed, 155 insertions(+) create mode 100644 src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php new file mode 100644 index 0000000000..06dba06a53 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php @@ -0,0 +1,58 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Doctrine\DBAL\Schema\Schema; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; + +/** + * Adds performance indexes to "ezcontentobject_link", "ezcontentclass_attribute", + * "ezurl_object_link" and "ezcontentobject_attribute" (originally shipped via installer's + * upgrade/db/ibexa-4.5.1-to-4.5.2.sql). Split out of InstallSchemaMigration because an install + * that already had these tables before the indexes were introduced is guarded against re-running + * the baseline. Guarded on the index, not the table, and runs unconditionally otherwise -- a + * no-op once already applied. + */ +final class AddContentPerformanceIndexesMigration extends AbstractSqlMigration implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Adds performance indexes to ezcontentobject_link, ezcontentclass_attribute, ezurl_object_link and ezcontentobject_attribute'; + } + + public static function getTargetVersion(): string + { + return '4.6.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-07-29 00:00:01'); + } + + public function up(Schema $schema): void + { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ($schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { + return; + } + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php new file mode 100644 index 0000000000..7ce1f395a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -0,0 +1,57 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration; + +use DateTimeImmutable; +use Doctrine\DBAL\Schema\Schema; +use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; +use Ibexa\DoctrineMigrations\Migration\SqlPlatform; + +/** + * Adds the missing "link" index to "ezurlalias_ml" (IBX-8125, originally shipped via installer's + * upgrade/db/ibexa-4.6.20-to-4.6.21.sql). Split out of InstallSchemaMigration because an install + * that already had this table before the index was introduced is guarded against re-running the + * baseline. Guarded on the index, not the table, and runs unconditionally otherwise -- a no-op + * once already applied. + */ +final class AddUrlAliasMlLinkIndexMigration extends AbstractSqlMigration implements IbexaMigrationInterface +{ + public function getDescription(): string + { + return 'Adds the missing "link" index to "ezurlalias_ml"'; + } + + public static function getTargetVersion(): string + { + return '4.6.0'; + } + + public static function getCreationDate(): DateTimeImmutable + { + return new DateTimeImmutable('2026-07-29 00:00:02'); + } + + public function up(Schema $schema): void + { + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + + if ($schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { + return; + } + + if ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-mysql.sql'); + } elseif ($this->isPostgreSQL()) { + $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-postgresql.sql'); + } elseif ($this->isSqlite()) { + $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-sqlite.sql'); + } + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql new file mode 100644 index 0000000000..e59a9c8f37 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql @@ -0,0 +1,7 @@ +ALTER TABLE ezcontentobject_link ADD INDEX ezco_link_cca_id (contentclassattribute_id); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentclass_attribute ADD INDEX ezcontentclass_attr_dts (data_type_string); +-- ibexa:sql-statement-separator +ALTER TABLE ezurl_object_link ADD INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version); +-- ibexa:sql-statement-separator +ALTER TABLE ezcontentobject_attribute ADD INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql new file mode 100644 index 0000000000..a506f987c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql @@ -0,0 +1,7 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql new file mode 100644 index 0000000000..a506f987c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql @@ -0,0 +1,7 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); +-- ibexa:sql-statement-separator +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); +-- ibexa:sql-statement-separator +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql new file mode 100644 index 0000000000..474d0a11dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-mysql.sql @@ -0,0 +1 @@ +ALTER TABLE ezurlalias_ml ADD INDEX ezurlalias_ml_link (link); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql new file mode 100644 index 0000000000..34117d2b9c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-postgresql.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql new file mode 100644 index 0000000000..34117d2b9c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/add-urlalias-ml-link-index-sqlite.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index ec4edc480e..58f9ff408d 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -13,6 +13,22 @@ services: tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + Ibexa\Bundle\RepositoryInstaller\Migration\AddContentPerformanceIndexesMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: autowire: true public: false From d436bd4ece6f95431c1ea13c17b65a1a978e0e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Wed, 29 Jul 2026 09:36:46 +0200 Subject: [PATCH 66/88] Fixed guard crash on installs that never had the pre-rename table $schema->getTable() throws TableDoesNotExist rather than returning null, so a guard that calls it directly (without checking hasTable() first) crashes -- rather than skipping -- on any install that never had the table under this name at all (e.g. a database built directly at the current schema, which never passed through this pre-rename/pre-delta state). Caught via live testing against a real database. Guard now checks hasTable() first. --- .../Migration/AddContentPerformanceIndexesMigration.php | 2 +- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php index 06dba06a53..4665715be8 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php @@ -43,7 +43,7 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - if ($schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { + if (!$schema->hasTable('ezcontentobject_link') || $schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { return; } diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index 7ce1f395a1..0451419d8e 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -42,7 +42,7 @@ public function up(Schema $schema): void { $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - if ($schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { + if (!$schema->hasTable('ezurlalias_ml') || $schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { return; } From 7ec9a72771d694fc62e8526fc73fa8c4feb42d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Wed, 29 Jul 2026 10:02:55 +0200 Subject: [PATCH 67/88] Removed pre-4.6-origin AddContentPerformanceIndexesMigration, folded into baseline Same rationale as ibexa/product-catalog: doctrine migrations only exist starting at 4.6, so InstallSchemaMigration's baseline already includes these indexes (originally shipped via installer's upgrade/db/ibexa-4.5.0-to-4.5.1.sql). A standalone migration for pre-4.6 content can never have real work to do on a genuine 4.6+ install. --- .../AddContentPerformanceIndexesMigration.php | 58 ------------------- .../add-content-performance-indexes-mysql.sql | 7 --- ...content-performance-indexes-postgresql.sql | 7 --- ...add-content-performance-indexes-sqlite.sql | 7 --- .../Resources/config/services.yml | 8 --- 5 files changed, 87 deletions(-) delete mode 100644 src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php delete mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql delete mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql delete mode 100644 src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php deleted file mode 100644 index 4665715be8..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/AddContentPerformanceIndexesMigration.php +++ /dev/null @@ -1,58 +0,0 @@ -<?php - -/** - * @copyright Copyright (C) Ibexa AS. All rights reserved. - * @license For full copyright and license information view LICENSE file distributed with this source code. - */ -declare(strict_types=1); - -namespace Ibexa\Bundle\RepositoryInstaller\Migration; - -use DateTimeImmutable; -use Doctrine\DBAL\Schema\Schema; -use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; -use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; - -/** - * Adds performance indexes to "ezcontentobject_link", "ezcontentclass_attribute", - * "ezurl_object_link" and "ezcontentobject_attribute" (originally shipped via installer's - * upgrade/db/ibexa-4.5.1-to-4.5.2.sql). Split out of InstallSchemaMigration because an install - * that already had these tables before the indexes were introduced is guarded against re-running - * the baseline. Guarded on the index, not the table, and runs unconditionally otherwise -- a - * no-op once already applied. - */ -final class AddContentPerformanceIndexesMigration extends AbstractSqlMigration implements IbexaMigrationInterface -{ - public function getDescription(): string - { - return 'Adds performance indexes to ezcontentobject_link, ezcontentclass_attribute, ezurl_object_link and ezcontentobject_attribute'; - } - - public static function getTargetVersion(): string - { - return '4.6.0'; - } - - public static function getCreationDate(): DateTimeImmutable - { - return new DateTimeImmutable('2026-07-29 00:00:01'); - } - - public function up(Schema $schema): void - { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - - if (!$schema->hasTable('ezcontentobject_link') || $schema->getTable('ezcontentobject_link')->hasIndex('ezco_link_cca_id')) { - return; - } - - if ($this->isMySQL()) { - $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-mysql.sql'); - } elseif ($this->isPostgreSQL()) { - $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-postgresql.sql'); - } elseif ($this->isSqlite()) { - $this->addSqlFile(__DIR__ . '/sql/add-content-performance-indexes-sqlite.sql'); - } - } -} diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql deleted file mode 100644 index e59a9c8f37..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-mysql.sql +++ /dev/null @@ -1,7 +0,0 @@ -ALTER TABLE ezcontentobject_link ADD INDEX ezco_link_cca_id (contentclassattribute_id); --- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute ADD INDEX ezcontentclass_attr_dts (data_type_string); --- ibexa:sql-statement-separator -ALTER TABLE ezurl_object_link ADD INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version); --- ibexa:sql-statement-separator -ALTER TABLE ezcontentobject_attribute ADD INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql deleted file mode 100644 index a506f987c5..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-postgresql.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); --- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql deleted file mode 100644 index a506f987c5..0000000000 --- a/src/bundle/RepositoryInstaller/Migration/sql/add-content-performance-indexes-sqlite.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); --- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); --- ibexa:sql-statement-separator -CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 58f9ff408d..b24c5aaf70 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -13,14 +13,6 @@ services: tags: - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - Ibexa\Bundle\RepositoryInstaller\Migration\AddContentPerformanceIndexesMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: autowire: true public: false From d3df09dbb1b30259a3fb1f1afcf64040c10d6734 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 30 Jul 2026 14:04:24 +0200 Subject: [PATCH 68/88] Fix ibexa/doctrine-migrations constraint to track the 4.6 branch The feat/doctrine-migrations branch it previously required has been merged into and deleted from the primary 4.6 branch upstream, so the old constraint no longer resolves. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 53c7eb4a09..802cb6aa5d 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "symfony/validator": "^5.3.0", "symfony/var-dumper": "^5.3.0", "ibexa/doctrine-schema": "~4.6.0@dev", - "ibexa/doctrine-migrations": "dev-feat/doctrine-migrations", + "ibexa/doctrine-migrations": "~4.6.x-dev", "symfony-cmf/routing": "^2.3", "nelmio/cors-bundle": "^2.0", "pagerfanta/pagerfanta": "^2.1", From 3ef4ecab6cba674b80e08c7c8465e274569e55ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 30 Jul 2026 14:04:33 +0200 Subject: [PATCH 69/88] Fix TaggedMigrationsRunner passing an empty Schema to every migration $migration->up(new Schema()) gave every migration's hasTable()/ getTable() guard checks an always-empty schema to inspect, regardless of what earlier migrations in the same run (or a prior run) actually created against the real database -- guards written the correct way (checking hasTable() before trusting a table exists) would incorrectly conclude the table is missing and either skip work that still needs doing, or crash outright on getTable() for a table that does exist. Introspect the live database instead, the same way the standalone 'doctrine:migrations:migrate' command already does via DBALSchemaDiffProvider::createFromSchema(). --- .../Migration/TaggedMigrationsRunner.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index 4731a0a49c..198bb88e35 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -10,7 +10,6 @@ use DateTimeImmutable; use Doctrine\DBAL\Connection; -use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\MigrationPlan; use Doctrine\Migrations\Metadata\Storage\MetadataStorage; @@ -92,7 +91,12 @@ private function executeMigration( $executedAt = new DateTimeImmutable(); $migration = $migrationPlan->getMigration(); - $migration->up(new Schema()); + // A freshly-constructed, empty Schema() would make every hasTable()/getTable() guard + // check inside a migration see nothing at all, regardless of what previous migrations + // in this same run (or a prior run) actually created -- introspect the live database + // instead, same as what "doctrine:migrations:migrate" itself does via + // DBALSchemaDiffProvider::createFromSchema(). + $migration->up($connection->getSchemaManager()->createSchema()); $queries = $migration->getSql(); foreach ($queries as $query) { From e4d1637752a8ef2e7878b1ba837a71d001e0f5a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 30 Jul 2026 19:17:02 +0200 Subject: [PATCH 70/88] Move core's own Doctrine Migrations into IbexaCoreBundle InstallSchemaMigration, AddUrlAliasMlLinkIndexMigration, and ImportDataMigration only depend on the persistence connection -- they don't need anything from IbexaRepositoryInstallerBundle (CoreInstaller, BuildSchemaSubscriber), which is scoped to installer-time concerns and additionally requires DoctrineSchemaBundle to boot at all. Declaring them in IbexaCoreBundle instead matches how every other package in this effort declares its own InstallSchemaMigration in its own bundle, and lets any consumer discover core's schema migrations via ibexa:doctrine:migrations:migrate without needing the installer bundle registered -- useful for integration test kernels that don't otherwise need CoreInstaller. --- .../IbexaCoreExtension.php | 2 ++ .../Resources/config/doctrine_migrations.yml | 24 +++++++++++++++++++ .../Resources/config/services.yml | 24 ------------------- 3 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 src/bundle/Core/Resources/config/doctrine_migrations.yml diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index 910c7ba773..450a4df7e6 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -118,6 +118,8 @@ public function load(array $configs, ContainerBuilder $container) // Base services and services overrides $loader->load('services.yml'); + // Doctrine Migrations for core's own schema, alongside the legacy SchemaBuilderEvent path + $loader->load('doctrine_migrations.yml'); // Security services $loader->load('security.yml'); // HTTP Kernel diff --git a/src/bundle/Core/Resources/config/doctrine_migrations.yml b/src/bundle/Core/Resources/config/doctrine_migrations.yml new file mode 100644 index 0000000000..78ab3f7026 --- /dev/null +++ b/src/bundle/Core/Resources/config/doctrine_migrations.yml @@ -0,0 +1,24 @@ +services: + Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index b24c5aaf70..e7e1d58400 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -5,30 +5,6 @@ services: arguments: - '@=service("kernel").locateResource("@IbexaCoreBundle/Resources/config/storage/legacy/schema.yaml")' - Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - - Ibexa\Bundle\RepositoryInstaller\Migration\AddUrlAliasMlLinkIndexMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - - Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: - autowire: true - public: false - arguments: - $connection: '@ibexa.persistence.connection' - tags: - - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } - Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: public: false arguments: From e9ecffb79f96db8e7f9026336ba611cc11044c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 30 Jul 2026 22:56:54 +0200 Subject: [PATCH 71/88] Fix SQLite-dialect bugs in InstallSchemaMigration/ImportDataMigration SQL install-schema-sqlite.sql and import-data-sqlite.sql were generated from the MySQL source without adapting to SQLite's stricter SQL semantics: - import-data-sqlite.sql used MySQL-style backslash escapes (\" and \n) inside string literals. SQLite (unlike MySQL) does not interpret backslash as an escape character at all, so these were stored as literal two-byte sequences, corrupting PHP-serialized content-type names/descriptions (unserialize() failures) and embedded XML field data (DOMDocument parse failures, e.g. the admin user's own ezimage field). - install-schema-sqlite.sql collapsed the composite primary keys on ezcontentclass, ezcontentclass_attribute and ezcontentobject_attribute (id, version) down to a single-column `id INTEGER PRIMARY KEY AUTOINCREMENT`, dropping the `version` component entirely -- unlike the mysql/postgresql variants, which both correctly declare `PRIMARY KEY(id, version)`. This made SQLite reject the second row (e.g. publishing a content-type draft, which legitimately reuses the same id with a different version/status) as a duplicate primary key. Both only affect the SQLite platform; MySQL and PostgreSQL were already correct. --- .../Migration/sql/import-data-sqlite.sql | 96 +++++++++++-------- .../Migration/sql/install-schema-sqlite.sql | 15 +-- 2 files changed, 66 insertions(+), 45 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql index 81b1803b4c..98a6a7d279 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/import-data-sqlite.sql @@ -30,38 +30,38 @@ INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) -VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), - (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), - (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); +VALUES (1,'<short_name|name>',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'<short_title|title>',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<first_name> <last_name>',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'<name>',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) -VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), - (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), - (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), - (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), - (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); -- ibexa:sql-statement-separator INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) VALUES (1, 0, 1, 'Content'), @@ -116,29 +116,47 @@ VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platfo (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), - (0,119,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',99,'eng-GB',3,0,'',1), (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), (0,156,1,NULL,NULL,'<?xml version="1.0" encoding="UTF-8"?><section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"><para>This is the clean installation coming with Ibexa Platform.</para><para>It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.</para></section>','ezrichtext',104,'eng-GB',3,0,'',9), - (0,156,41,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,156,41,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',105,'eng-GB',3,0,'',1), (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), - (0,119,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',144,'eng-GB',3,0,'',1), - (0,156,49,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',145,'eng-GB',3,0,'',1), (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), - (0,119,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',149,'eng-GB',3,0,'',1), - (0,156,50,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',150,'eng-GB',3,0,'',1), (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), - (0,119,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',154,'eng-GB',3,0,'',1), - (0,156,51,0,1045487555,'<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:ezxhtml=\"http://ibexa.co/xmlns/dxp/docbook/xhtml\" xmlns:ezcustom=\"http://ibexa.co/xmlns/dxp/docbook/custom\" version=\"5.0-variant ezpublish-1.0\"/>\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'<?xml version="1.0" encoding="UTF-8"?> +<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ezxhtml="http://ibexa.co/xmlns/dxp/docbook/xhtml" xmlns:ezcustom="http://ibexa.co/xmlns/dxp/docbook/custom" version="5.0-variant ezpublish-1.0"/> +','ezrichtext',155,'eng-GB',3,0,'',1), (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), - (0,180,14,0,0,'<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<ezimage serial_number=\"1\" is_valid=\"\" filename=\"\" suffix=\"\" basename=\"\" dirpath=\"\" url=\"\" original_filename=\"\" mime_type=\"\" width=\"\" height=\"\" alternative_text=\"\" alias_key=\"1293033771\" timestamp=\"1301057722\"><original attribute_id=\"180\" attribute_version=\"3\" attribute_language=\"eng-GB\"/></ezimage>\n','ezimage',180,'eng-GB',3,0,'',3); + (0,180,14,0,0,'<?xml version="1.0" encoding="utf-8"?> +<ezimage serial_number="1" is_valid="" filename="" suffix="" basename="" dirpath="" url="" original_filename="" mime_type="" width="" height="" alternative_text="" alias_key="1293033771" timestamp="1301057722"><original attribute_id="180" attribute_version="3" attribute_language="eng-GB"/></ezimage> +','ezimage',180,'eng-GB',3,0,'',3); -- ibexa:sql-statement-separator INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 38c87c1365..899b6cf872 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -130,7 +130,7 @@ CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, @@ -147,7 +147,8 @@ CREATE TABLE ezcontentclass ( serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, - url_alias_name VARCHAR(255) DEFAULT NULL + url_alias_name VARCHAR(255) DEFAULT NULL, + PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_version ON ezcontentclass (version); @@ -155,7 +156,7 @@ CREATE INDEX ezcontentclass_version ON ezcontentclass (version); CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, @@ -182,7 +183,8 @@ CREATE TABLE ezcontentclass_attribute ( placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, - serialized_name_list CLOB NOT NULL + serialized_name_list CLOB NOT NULL, + PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); @@ -263,7 +265,7 @@ CREATE INDEX ezcontentobject_status ON ezcontentobject (status); CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( - id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, + id INTEGER NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, @@ -275,7 +277,8 @@ CREATE TABLE ezcontentobject_attribute ( language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, - sort_key_string VARCHAR(255) DEFAULT '' NOT NULL + sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, + PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); From f29ebeb08e8c0e43085a270d00020bba1186d94d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sun, 20 Sep 2026 23:11:31 +0200 Subject: [PATCH 72/88] IBX-11939: Switched the install SQL to utf8mb4 The MySQL install SQL hardcoded "DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci". On MySQL 8 "utf8" is an alias for utf8mb3, so a Doctrine Migrations install produced 3-byte columns while a SchemaBuilderEvent install produced utf8mb4 - the latter reads the configured database_charset/database_collation, which default to utf8mb4 and utf8mb4_unicode_520_ci. The practical effect was that a migrations-based install could not store 4-byte characters (emoji, CJK extensions) at all, and sorted/compared text differently. Verified against a real MySQL 8.0 server: the schema a migrations install produces now matches a SchemaBuilderEvent one. --- .../Migration/sql/install-schema-mysql.sql | 104 +++++++++--------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql index ce1affe2b3..91a5884910 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -6,7 +6,7 @@ CREATE TABLE ezbinaryfile ( mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state ( id INT AUTO_INCREMENT NOT NULL, @@ -19,7 +19,7 @@ CREATE TABLE ezcobj_state ( INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group ( id INT AUTO_INCREMENT NOT NULL, @@ -29,7 +29,7 @@ CREATE TABLE ezcobj_state_group ( INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_group_language ( contentobject_state_group_id INT DEFAULT 0 NOT NULL, @@ -38,7 +38,7 @@ CREATE TABLE ezcobj_state_group_language ( language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_language ( contentobject_state_id INT DEFAULT 0 NOT NULL, @@ -46,13 +46,13 @@ CREATE TABLE ezcobj_state_language ( description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcobj_state_link ( contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontent_language ( id BIGINT DEFAULT 0 NOT NULL, @@ -61,7 +61,7 @@ CREATE TABLE ezcontent_language ( name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -72,7 +72,7 @@ CREATE TABLE ezuser ( password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_tree ( node_id INT AUTO_INCREMENT NOT NULL, @@ -100,7 +100,7 @@ CREATE TABLE ezcontentobject_tree ( INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentbrowsebookmark ( id INT AUTO_INCREMENT NOT NULL, @@ -111,7 +111,7 @@ CREATE TABLE ezcontentbrowsebookmark ( INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass ( id INT AUTO_INCREMENT NOT NULL, @@ -135,7 +135,7 @@ CREATE TABLE ezcontentclass ( INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -169,7 +169,7 @@ CREATE TABLE ezcontentclass_attribute ( INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_attribute_ml ( contentclass_attribute_id INT NOT NULL, @@ -181,7 +181,7 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_classgroup ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -189,7 +189,7 @@ CREATE TABLE ezcontentclass_classgroup ( group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclass_name ( contentclass_id INT DEFAULT 0 NOT NULL, @@ -198,7 +198,7 @@ CREATE TABLE ezcontentclass_name ( language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentclassgroup ( id INT AUTO_INCREMENT NOT NULL, @@ -209,7 +209,7 @@ CREATE TABLE ezcontentclassgroup ( name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject ( id INT AUTO_INCREMENT NOT NULL, @@ -234,7 +234,7 @@ CREATE TABLE ezcontentobject ( INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_attribute ( id INT AUTO_INCREMENT NOT NULL, @@ -257,7 +257,7 @@ CREATE TABLE ezcontentobject_attribute ( INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_link ( id INT AUTO_INCREMENT NOT NULL, @@ -270,7 +270,7 @@ CREATE TABLE ezcontentobject_link ( INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_name ( contentobject_id INT DEFAULT 0 NOT NULL, @@ -283,7 +283,7 @@ CREATE TABLE ezcontentobject_name ( INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_trash ( node_id INT DEFAULT 0 NOT NULL, @@ -309,7 +309,7 @@ CREATE TABLE ezcontentobject_trash ( INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezcontentobject_version ( id INT AUTO_INCREMENT NOT NULL, @@ -328,7 +328,7 @@ CREATE TABLE ezcontentobject_version ( INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezdfsfile ( name_hash VARCHAR(34) DEFAULT '' NOT NULL, @@ -345,7 +345,7 @@ CREATE TABLE ezdfsfile ( INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezgmaplocation ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -355,7 +355,7 @@ CREATE TABLE ezgmaplocation ( address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezimagefile ( id INT AUTO_INCREMENT NOT NULL, @@ -364,7 +364,7 @@ CREATE TABLE ezimagefile ( INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword ( id INT AUTO_INCREMENT NOT NULL, @@ -372,7 +372,7 @@ CREATE TABLE ezkeyword ( keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezkeyword_attribute_link ( id INT AUTO_INCREMENT NOT NULL, @@ -383,7 +383,7 @@ CREATE TABLE ezkeyword_attribute_link ( INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezmedia ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -400,7 +400,7 @@ CREATE TABLE ezmedia ( quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznode_assignment ( id INT AUTO_INCREMENT NOT NULL, @@ -421,7 +421,7 @@ CREATE TABLE eznode_assignment ( INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE eznotification ( id INT AUTO_INCREMENT NOT NULL, @@ -433,7 +433,7 @@ CREATE TABLE eznotification ( INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpackage ( id INT AUTO_INCREMENT NOT NULL, @@ -441,7 +441,7 @@ CREATE TABLE ezpackage ( name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy ( id INT AUTO_INCREMENT NOT NULL, @@ -452,7 +452,7 @@ CREATE TABLE ezpolicy ( INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation ( id INT AUTO_INCREMENT NOT NULL, @@ -460,7 +460,7 @@ CREATE TABLE ezpolicy_limitation ( policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpolicy_limitation_value ( id INT AUTO_INCREMENT NOT NULL, @@ -469,7 +469,7 @@ CREATE TABLE ezpolicy_limitation_value ( INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezpreferences ( id INT AUTO_INCREMENT NOT NULL, @@ -479,7 +479,7 @@ CREATE TABLE ezpreferences ( INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezrole ( id INT AUTO_INCREMENT NOT NULL, @@ -488,7 +488,7 @@ CREATE TABLE ezrole ( value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_object_word_link ( id INT AUTO_INCREMENT NOT NULL, @@ -511,7 +511,7 @@ CREATE TABLE ezsearch_object_word_link ( INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsearch_word ( id INT AUTO_INCREMENT NOT NULL, @@ -520,7 +520,7 @@ CREATE TABLE ezsearch_word ( INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsection ( id INT AUTO_INCREMENT NOT NULL, @@ -529,13 +529,13 @@ CREATE TABLE ezsection ( name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezsite_data ( name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl ( id INT AUTO_INCREMENT NOT NULL, @@ -547,7 +547,7 @@ CREATE TABLE ezurl ( url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurl_object_link ( contentobject_attribute_id INT DEFAULT 0 NOT NULL, @@ -557,7 +557,7 @@ CREATE TABLE ezurl_object_link ( INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias ( id INT AUTO_INCREMENT NOT NULL, @@ -575,7 +575,7 @@ CREATE TABLE ezurlalias ( INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml ( parent INT DEFAULT 0 NOT NULL, @@ -598,12 +598,12 @@ CREATE TABLE ezurlalias_ml ( INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlalias_ml_incr ( id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezurlwildcard ( id INT AUTO_INCREMENT NOT NULL, @@ -611,7 +611,7 @@ CREATE TABLE ezurlwildcard ( source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_accountkey ( id INT AUTO_INCREMENT NOT NULL, @@ -620,7 +620,7 @@ CREATE TABLE ezuser_accountkey ( user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_role ( id INT AUTO_INCREMENT NOT NULL, @@ -631,14 +631,14 @@ CREATE TABLE ezuser_role ( INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ezuser_setting ( user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_setting ( id INT AUTO_INCREMENT NOT NULL, @@ -648,14 +648,14 @@ CREATE TABLE ibexa_setting ( INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator CREATE TABLE ibexa_token ( id INT AUTO_INCREMENT NOT NULL, @@ -668,7 +668,7 @@ CREATE TABLE ibexa_token ( INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator From 64c989cd3b41a4e9f72c22f46e6913d9802ebaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sat, 19 Sep 2026 13:20:17 +0200 Subject: [PATCH 73/88] IBX-11939: Added a Bootstrapper hook installing the schema via Doctrine Migrations DatabaseSchemaHook builds an integration suite's database from the SchemaBuilderEvent path. This adds its counterpart for the other path: DoctrineMigrationsSchemaHook runs every Ibexa-tagged Doctrine migration through TaggedMigrationsRunner - the same service CoreInstaller uses - so a suite can be booted either way and the two results compared. Disabled by default, unlike every other hook: enabling it by default would stack a second schema install on top of DatabaseSchemaHook's in every existing suite. Registered only in the "test" environment, and removed alongside TaggedMigrationsRunner when ibexa/doctrine-migrations isn't installed. --- .../DoctrineMigrationsSchemaHook.php | 88 +++++++++++++++++++ .../RemoveTaggedMigrationsRunnerPass.php | 19 +++- .../IbexaRepositoryInstallerExtension.php | 16 ++++ .../Resources/config/bootstrapper.yml | 14 +++ .../DoctrineMigrationsSchemaHookTest.php | 88 +++++++++++++++++++ .../RemoveTaggedMigrationsRunnerPassTest.php | 67 ++++++++++++++ .../IbexaInstallerExtensionTest.php | 37 ++++++++ 7 files changed, 326 insertions(+), 3 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php create mode 100644 src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml create mode 100644 tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php create mode 100644 tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php diff --git a/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php new file mode 100644 index 0000000000..78778c2abb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php @@ -0,0 +1,88 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Bootstrapper; + +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Contracts\Test\Core\Bootstrapper\DatabaseSchemaHook; +use Ibexa\Contracts\Test\Core\Bootstrapper\FixtureHook; +use Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface; +use Symfony\Component\OptionsResolver\OptionsResolver; + +/** + * @experimental + * + * Installs the database schema the way a real `ibexa:install` does when the SchemaBuilderEvent path + * is turned off: by running every Ibexa-tagged Doctrine migration via {@see TaggedMigrationsRunner} + * — the very same service {@see \Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller} uses, so + * a test database built this way is built by the production code path, not by a re-implementation + * of it. + * + * This is the counterpart of {@see DatabaseSchemaHook}, and the two are mutually exclusive: each + * creates the same tables, so enabling both makes the second one fail on tables that already exist. + * Running an integration suite once with each is what proves the two install paths converge. + * + * Unlike every other built-in hook, this one is **disabled by default**. Enabling it by default + * would add a second schema install on top of {@see DatabaseSchemaHook}'s in every existing suite, + * breaking all of them the moment this package is upgraded. Opt in per bootstrap run, turning the + * legacy path off in the same breath: + * + * ```php + * (new Bootstrapper())->bootstrap(null, [ + * DatabaseSchemaHook::class => [DatabaseSchemaHook::OPTION_LOAD_SCHEMA => false], + * DoctrineMigrationsSchemaHook::class => [DoctrineMigrationsSchemaHook::OPTION_INSTALL_SCHEMA => true], + * ]); + * ``` + * + * Registered only in the "test" environment, and removed from the container along with + * {@see TaggedMigrationsRunner} itself when "ibexa/doctrine-migrations" isn't installed/enabled, by + * {@see \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass}. + */ +final class DoctrineMigrationsSchemaHook implements HookInterface +{ + /** + * Fixed tag priority this hook is registered at — after ibexa/test-core's + * {@see DatabaseSchemaHook} (1000), before its {@see FixtureHook} (900). + * + * Ordering against DatabaseSchemaHook only matters when both are enabled, which is a + * misconfiguration; running second makes that misconfiguration fail at a predictable point + * ("table already exists" out of the migrations) rather than in whichever order the tag + * collection happened to produce. + */ + public const PRIORITY = 990; + + public const OPTION_INSTALL_SCHEMA = 'install_schema'; + + private TaggedMigrationsRunner $taggedMigrationsRunner; + + public function __construct(TaggedMigrationsRunner $taggedMigrationsRunner) + { + $this->taggedMigrationsRunner = $taggedMigrationsRunner; + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->define(self::OPTION_INSTALL_SCHEMA) + ->default(false) + ->allowedTypes('bool'); + } + + public function __invoke(array $options): void + { + if (!$options[self::OPTION_INSTALL_SCHEMA]) { + return; + } + + // Executions stay recorded in the Doctrine Migrations versioning table on purpose - that + // is what a real install leaves behind, and it is what makes a second run (a test calling + // the installer itself, say) correctly skip instead of re-applying. Contrast with + // ibexa/migrations' MigrationHook, which resets its own bookkeeping because its migrations + // are test fixtures rather than part of the installed state. + $this->taggedMigrationsRunner->run(); + } +} diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php index 90468208d3..19b5e7ebc2 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPass.php @@ -8,13 +8,15 @@ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; +use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; /** - * Removes the {@see TaggedMigrationsRunner} service definition when + * Removes the {@see TaggedMigrationsRunner} service definition - and + * {@see DoctrineMigrationsSchemaHook}, which cannot be built without it - when * {@see IbexaOnlyDependencyFactory::SERVICE_ID} isn't available - i.e. "ibexa/doctrine-migrations" * isn't installed/enabled - since {@see TaggedMigrationsRunner} requires a real * {@see \Doctrine\Migrations\DependencyFactory} and can no longer be built with none available. @@ -25,14 +27,25 @@ */ final class RemoveTaggedMigrationsRunnerPass implements CompilerPassInterface { + /** + * @var list<string> definitions that cannot survive without a real DependencyFactory, in + * dependent-first order + */ + private const DEFINITIONS = [ + DoctrineMigrationsSchemaHook::class, + TaggedMigrationsRunner::class, + ]; + public function process(ContainerBuilder $container): void { if ($container->hasDefinition(IbexaOnlyDependencyFactory::SERVICE_ID)) { return; } - if ($container->hasDefinition(TaggedMigrationsRunner::class)) { - $container->removeDefinition(TaggedMigrationsRunner::class); + foreach (self::DEFINITIONS as $id) { + if ($container->hasDefinition($id)) { + $container->removeDefinition($id); + } } } } diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php index 87f8cfd728..40b9bb9cab 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php @@ -6,6 +6,7 @@ */ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection; +use Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Loader; @@ -17,6 +18,21 @@ public function load(array $configs, ContainerBuilder $container) { $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('services.yml'); + + if ($this->shouldRegisterBootstrapperHook($container)) { + $loader->load('bootstrapper.yml'); + } + } + + /** + * "ibexa/test-core" is a dev dependency, so its HookInterface is absent from a production + * install - and even where it is present, integration-test bootstrap services have no business + * being built outside the "test" environment. + */ + private function shouldRegisterBootstrapperHook(ContainerBuilder $container): bool + { + return 'test' === $container->getParameter('kernel.environment') + && interface_exists(HookInterface::class); } } diff --git a/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml b/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml new file mode 100644 index 0000000000..b8d5c626fa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml @@ -0,0 +1,14 @@ +# Integration-test bootstrap hooks (see ibexa/test-core's Bootstrapper). Loaded only in the "test" +# environment, and only when ibexa/test-core is actually installed - see +# IbexaRepositoryInstallerExtension::shouldRegisterBootstrapperHook(). +services: + Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook: + public: false + arguments: + # Mandatory: both this definition and TaggedMigrationsRunner's own are removed by + # RemoveTaggedMigrationsRunnerPass when "ibexa/doctrine-migrations" isn't + # installed/enabled, so compilation never attempts to resolve this reference then. + $taggedMigrationsRunner: '@Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner' + tags: + - name: !php/const Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface::TAG + priority: !php/const Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook::PRIORITY diff --git a/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php new file mode 100644 index 0000000000..5fc2bffdcd --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHookTest.php @@ -0,0 +1,88 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Bootstrapper; + +use Doctrine\Migrations\DependencyFactory; +use Doctrine\Migrations\Metadata\AvailableMigrationsList; +use Doctrine\Migrations\Metadata\Storage\MetadataStorage; +use Doctrine\Migrations\Version\MigrationPlanCalculator; +use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use PHPUnit\Framework\MockObject\MockObject; +use PHPUnit\Framework\TestCase; +use Symfony\Component\OptionsResolver\OptionsResolver; + +/** + * TaggedMigrationsRunner is final, so the seam this asserts on is one level down: the runner + * unconditionally calls MetadataStorage::ensureInitialized() before doing anything else, so whether + * that happens is exactly "did the hook run the migrations or not". + * + * @covers \Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook + */ +final class DoctrineMigrationsSchemaHookTest extends TestCase +{ + public function testInstallSchemaOptionDefaultsToFalse(): void + { + $hook = new DoctrineMigrationsSchemaHook( + $this->createRunner($this->createMock(MetadataStorage::class)) + ); + + self::assertFalse($this->resolve($hook, [])[DoctrineMigrationsSchemaHook::OPTION_INSTALL_SCHEMA]); + } + + public function testRunsTaggedMigrationsWhenEnabled(): void + { + $metadataStorage = $this->createMock(MetadataStorage::class); + $metadataStorage->expects(self::once())->method('ensureInitialized'); + + $hook = new DoctrineMigrationsSchemaHook($this->createRunner($metadataStorage)); + + $hook($this->resolve($hook, [DoctrineMigrationsSchemaHook::OPTION_INSTALL_SCHEMA => true])); + } + + public function testDoesNotRunTaggedMigrationsWhenLeftAtItsDefault(): void + { + $metadataStorage = $this->createMock(MetadataStorage::class); + $metadataStorage->expects(self::never())->method('ensureInitialized'); + + $hook = new DoctrineMigrationsSchemaHook($this->createRunner($metadataStorage)); + + $hook($this->resolve($hook, [])); + } + + /** + * @param \Doctrine\Migrations\Metadata\Storage\MetadataStorage&\PHPUnit\Framework\MockObject\MockObject $metadataStorage + */ + private function createRunner(MockObject $metadataStorage): TaggedMigrationsRunner + { + // An empty migration list makes run() stop right after ensureInitialized(), so no + // connection, executor or plan is needed to tell "ran" from "didn't run" apart. + $planCalculator = $this->createStub(MigrationPlanCalculator::class); + $planCalculator->method('getMigrations')->willReturn(new AvailableMigrationsList([])); + + $dependencyFactory = $this->createStub(DependencyFactory::class); + $dependencyFactory->method('getMetadataStorage')->willReturn($metadataStorage); + $dependencyFactory->method('getMigrationPlanCalculator')->willReturn($planCalculator); + + return new TaggedMigrationsRunner($dependencyFactory); + } + + /** + * @param array<string, mixed> $options + * + * @return array<string, mixed> + */ + private function resolve(DoctrineMigrationsSchemaHook $hook, array $options): array + { + $resolver = new OptionsResolver(); + $hook->configureOptions($resolver); + + return $resolver->resolve($options); + } +} diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php new file mode 100644 index 0000000000..4a7594bca6 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/RemoveTaggedMigrationsRunnerPassTest.php @@ -0,0 +1,67 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection\Compiler; + +use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; +use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use PHPUnit\Framework\TestCase; +use Symfony\Component\DependencyInjection\ContainerBuilder; +use Symfony\Component\DependencyInjection\Definition; + +/** + * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass + */ +final class RemoveTaggedMigrationsRunnerPassTest extends TestCase +{ + public function testRemovesRunnerAndItsDependentsWhenDependencyFactoryIsMissing(): void + { + $container = $this->createContainer(); + + (new RemoveTaggedMigrationsRunnerPass())->process($container); + + self::assertFalse($container->hasDefinition(TaggedMigrationsRunner::class)); + self::assertFalse($container->hasDefinition(DoctrineMigrationsSchemaHook::class)); + } + + public function testKeepsRunnerAndItsDependentsWhenDependencyFactoryIsDefined(): void + { + $container = $this->createContainer(); + $container->setDefinition(IbexaOnlyDependencyFactory::SERVICE_ID, new Definition()); + + (new RemoveTaggedMigrationsRunnerPass())->process($container); + + self::assertTrue($container->hasDefinition(TaggedMigrationsRunner::class)); + self::assertTrue($container->hasDefinition(DoctrineMigrationsSchemaHook::class)); + } + + /** + * The hook is only registered in the "test" environment, so the runner routinely has to be + * removed with no hook definition alongside it. + */ + public function testRemovesTheRunnerWhenTheHookIsNotRegisteredAtAll(): void + { + $container = new ContainerBuilder(); + $container->setDefinition(TaggedMigrationsRunner::class, new Definition()); + + (new RemoveTaggedMigrationsRunnerPass())->process($container); + + self::assertFalse($container->hasDefinition(TaggedMigrationsRunner::class)); + } + + private function createContainer(): ContainerBuilder + { + $container = new ContainerBuilder(); + $container->setDefinition(TaggedMigrationsRunner::class, new Definition()); + $container->setDefinition(DoctrineMigrationsSchemaHook::class, new Definition()); + + return $container; + } +} diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index ae374c9824..3a8c1106e7 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -8,10 +8,12 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection; +use Ibexa\Bundle\RepositoryInstaller\Bootstrapper\DoctrineMigrationsSchemaHook; use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension; use Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller; use Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller; +use Ibexa\Contracts\Test\Core\Bootstrapper\HookInterface; use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase; /** @@ -48,6 +50,41 @@ public function testLoadLoadsTaggedInstallerCommand(): void ); } + /** + * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension::load + */ + public function testLoadRegistersTaggedDoctrineMigrationsSchemaHookInTestEnvironment(): void + { + $this->container->setParameter('kernel.environment', 'test'); + + $this->load(); + + $this->assertContainerBuilderHasServiceDefinitionWithTag( + DoctrineMigrationsSchemaHook::class, + HookInterface::TAG, + ['priority' => DoctrineMigrationsSchemaHook::PRIORITY] + ); + } + + /** + * @covers \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension::load + */ + public function testLoadSkipsDoctrineMigrationsSchemaHookOutsideTestEnvironment(): void + { + $this->load(); + + self::assertFalse($this->container->hasDefinition(DoctrineMigrationsSchemaHook::class)); + } + + protected function setUp(): void + { + parent::setUp(); + + // Every extension load() needs this; the two tests above are the ones that care about its + // value. A real kernel always defines it before any extension is loaded. + $this->container->setParameter('kernel.environment', 'prod'); + } + protected function getContainerExtensions(): array { return [ From 1b87874154ba2be84ab787d183d1dedee59dede3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 21 Sep 2026 01:25:29 +0200 Subject: [PATCH 74/88] IBX-11939: Added append-only fixtures, which do not truncate before inserting FixtureImporter truncates every table a fixture touches before inserting, on the assumption that the fixture is the sole author of those tables. That assumption breaks once the baseline content can arrive another way - the Doctrine Migrations install path inserts it via ImportDataMigration - because truncating then destroys it. A fixture marked AppendOnlyFixture is inserted without truncating, so a package can contribute extra rows to tables something else has already populated. Plain fixtures are unchanged and still truncate, which is what keeps repeated runs deterministic. --- .../Test/Persistence/AppendOnlyFixture.php | 28 +++++++++++++++++++ .../Persistence/Fixture/FixtureImporter.php | 7 +++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 src/contracts/Test/Persistence/AppendOnlyFixture.php diff --git a/src/contracts/Test/Persistence/AppendOnlyFixture.php b/src/contracts/Test/Persistence/AppendOnlyFixture.php new file mode 100644 index 0000000000..d33f4e0c6e --- /dev/null +++ b/src/contracts/Test/Persistence/AppendOnlyFixture.php @@ -0,0 +1,28 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Contracts\Core\Test\Persistence; + +/** + * A fixture whose rows are added to whatever the tables already hold, instead of replacing it. + * + * {@see \Ibexa\Contracts\Core\Test\Persistence\Fixture\FixtureImporter} normally truncates every + * table a fixture touches before inserting, because a plain fixture is assumed to be the sole + * author of those tables. That assumption breaks when the baseline content arrives some other way + * - notably when the Doctrine Migrations install path has already inserted it via + * ImportDataMigration - since truncating would destroy it. + * + * Mark a fixture with this interface when it contributes extra rows to tables that something else + * has already populated. A fixture that owns its tables outright should stay a plain + * {@see Fixture}: truncating is what keeps repeated runs deterministic. + * + * @internal for internal use by Repository test setup + */ +interface AppendOnlyFixture extends Fixture +{ +} diff --git a/src/contracts/Test/Persistence/Fixture/FixtureImporter.php b/src/contracts/Test/Persistence/Fixture/FixtureImporter.php index 3cf0609118..f31891a962 100644 --- a/src/contracts/Test/Persistence/Fixture/FixtureImporter.php +++ b/src/contracts/Test/Persistence/Fixture/FixtureImporter.php @@ -12,6 +12,7 @@ use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Driver\PDOException; use Doctrine\DBAL\Schema\Column; +use Ibexa\Contracts\Core\Test\Persistence\AppendOnlyFixture; use Ibexa\Contracts\Core\Test\Persistence\Fixture; /** @@ -40,8 +41,10 @@ public function import(Fixture $fixture): void $data = $fixture->load(); $tablesList = array_keys($data); - // truncate all tables, even the ones initially empty (some tests are affected by this) - $this->truncateTables(array_reverse($tablesList)); + if (!$fixture instanceof AppendOnlyFixture) { + // truncate all tables, even the ones initially empty (some tests are affected by this) + $this->truncateTables(array_reverse($tablesList)); + } $nonEmptyTablesData = array_filter( $data, From f049e948560c1b672088748a228f17c0523d8e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 17:01:27 +0200 Subject: [PATCH 75/88] IBX-11939: Ran tagged migrations through Doctrine's Migrator TaggedMigrationsRunner now hands each migration to DependencyFactory::getMigrator() - the Migrator "ibexa:doctrine:migrations:migrate" uses - instead of executing its SQL itself. Each migration runs in its own transaction where isTransactional() allows it, so on PostgreSQL and SQLite a failed migration no longer leaves half-created tables behind, and a failure now names the migration it came from. On MySQL this relies on ibexa/doctrine-migrations#13, which makes AbstractSqlMigration non-transactional there. Without it, Doctrine's executor leaves the connection's transaction nesting level raised after an implicit commit. --- .../Migration/TaggedMigrationsRunner.php | 74 +++++------ .../Fixtures/Migration1CreateTable.php | 20 +++ .../Fixtures/Migration2InsertRow.php | 20 +++ .../Migration/Fixtures/Migration3Failing.php | 21 +++ .../Migration/TaggedMigrationsRunnerTest.php | 123 ++++++++++++++++++ 5 files changed, 217 insertions(+), 41 deletions(-) create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php create mode 100644 tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index 198bb88e35..c5cb8d79e1 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -8,13 +8,12 @@ namespace Ibexa\Bundle\RepositoryInstaller\Migration; -use DateTimeImmutable; -use Doctrine\DBAL\Connection; use Doctrine\Migrations\DependencyFactory; -use Doctrine\Migrations\Metadata\MigrationPlan; -use Doctrine\Migrations\Metadata\Storage\MetadataStorage; -use Doctrine\Migrations\Version\ExecutionResult; +use Doctrine\Migrations\Metadata\MigrationPlanList; +use Doctrine\Migrations\MigratorConfiguration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; +use RuntimeException; +use Throwable; /** * Runs every not-yet-executed migration tagged with @@ -30,10 +29,12 @@ * Each migration's execution is recorded in the same versioning table `doctrine:migrations:migrate` * would use, so migrations already executed in a prior run are skipped rather than re-applied. * - * Execution is driven manually here (rather than via {@see DependencyFactory::getMigrator()}), since - * Doctrine Migrations' Migrator/Executor/AliasResolver classes are marked `@internal`. Only the - * DependencyFactory's public accessors ({@see DependencyFactory::getMigrationPlanCalculator()}, - * {@see DependencyFactory::getMetadataStorage()}, {@see DependencyFactory::getConnection()}) are used. + * Migrations are executed by {@see DependencyFactory::getMigrator()} - the same Migrator + * "ibexa:doctrine:migrations:migrate" uses - so an install runs them exactly as an upgrade does: + * each in its own transaction unless {@see \Doctrine\Migrations\AbstractMigration::isTransactional()} + * says otherwise, against a schema introspected from the live database, with the same events and + * logging. Doctrine Migrations marks the Migrator interface and MigratorConfiguration `@internal`, + * so they're used here only. * * This service isn't registered at all when "ibexa/doctrine-migrations" isn't installed/enabled * ({@see \Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\RemoveTaggedMigrationsRunnerPass} @@ -51,6 +52,8 @@ public function __construct(DependencyFactory $dependencyFactory) /** * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run + * + * @throws \RuntimeException naming the migration that failed, with the original error as its previous exception */ public function run(): array { @@ -68,44 +71,33 @@ public function run(): array $latestVersion = end($availableMigrations)->getVersion(); $plan = $planCalculator->getPlanUntilVersion($latestVersion); - $connection = $this->dependencyFactory->getConnection(); + $migrator = $this->dependencyFactory->getMigrator(); + $migratorConfiguration = new MigratorConfiguration(); $executedQueries = []; foreach ($plan->getItems() as $migrationPlan) { - foreach ($this->executeMigration($connection, $metadataStorage, $migrationPlan) as $query) { - $executedQueries[] = $query; + // One migration per migrate() call, so that a failure can name the migration it came + // from - Doctrine's executor logs it, but rethrows the original error as it was. + try { + $queriesByVersion = $migrator->migrate( + new MigrationPlanList([$migrationPlan], $plan->getDirection()), + $migratorConfiguration + ); + } catch (Throwable $e) { + throw new RuntimeException( + sprintf('Migration "%s" failed: %s', (string)$migrationPlan->getVersion(), $e->getMessage()), + 0, + $e + ); } - } - - return $executedQueries; - } - /** - * @return \Doctrine\Migrations\Query\Query[] - */ - private function executeMigration( - Connection $connection, - MetadataStorage $metadataStorage, - MigrationPlan $migrationPlan - ): array { - $executedAt = new DateTimeImmutable(); - - $migration = $migrationPlan->getMigration(); - // A freshly-constructed, empty Schema() would make every hasTable()/getTable() guard - // check inside a migration see nothing at all, regardless of what previous migrations - // in this same run (or a prior run) actually created -- introspect the live database - // instead, same as what "doctrine:migrations:migrate" itself does via - // DBALSchemaDiffProvider::createFromSchema(). - $migration->up($connection->getSchemaManager()->createSchema()); - $queries = $migration->getSql(); - - foreach ($queries as $query) { - $connection->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); + foreach ($queriesByVersion as $queries) { + foreach ($queries as $query) { + $executedQueries[] = $query; + } + } } - $result = new ExecutionResult($migrationPlan->getVersion(), $migrationPlan->getDirection(), $executedAt); - $metadataStorage->complete($result); - - return $queries; + return $executedQueries; } } diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php new file mode 100644 index 0000000000..d0aa33309f --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration1CreateTable.php @@ -0,0 +1,20 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration1CreateTable extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->addSql('CREATE TABLE runner_test (id INTEGER NOT NULL)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php new file mode 100644 index 0000000000..be92bdfa54 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration2InsertRow.php @@ -0,0 +1,20 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration2InsertRow extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->addSql('INSERT INTO runner_test (id) VALUES (1)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php new file mode 100644 index 0000000000..939d621a78 --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/Fixtures/Migration3Failing.php @@ -0,0 +1,21 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures; + +use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\AbstractMigration; + +final class Migration3Failing extends AbstractMigration +{ + public function up(Schema $schema): void + { + $this->addSql('CREATE TABLE runner_test_partial (id INTEGER NOT NULL)'); + $this->addSql('INSERT INTO runner_test_missing (id) VALUES (1)'); + } +} diff --git a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php new file mode 100644 index 0000000000..82d159711f --- /dev/null +++ b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php @@ -0,0 +1,123 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Tests\Bundle\RepositoryInstaller\Migration; + +use Doctrine\DBAL\Connection; +use Doctrine\DBAL\DriverManager; +use Doctrine\Migrations\Configuration\Configuration; +use Doctrine\Migrations\Configuration\Connection\ExistingConnection; +use Doctrine\Migrations\Configuration\Migration\ExistingConfiguration; +use Doctrine\Migrations\DependencyFactory; +use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration1CreateTable; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration2InsertRow; +use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration3Failing; +use PHPUnit\Framework\TestCase; +use RuntimeException; + +/** + * Runs real migrations through a real DependencyFactory on in-memory SQLite, which has + * transactional DDL, so a failed migration's rollback is observable. + * + * @covers \Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner + */ +final class TaggedMigrationsRunnerTest extends TestCase +{ + private Connection $connection; + + protected function setUp(): void + { + $this->connection = DriverManager::getConnection(['driver' => 'pdo_sqlite', 'memory' => true]); + } + + public function testRunsPendingMigrationsAndReturnsTheirQueries(): void + { + $dependencyFactory = $this->createDependencyFactory(Migration1CreateTable::class, Migration2InsertRow::class); + + $queries = (new TaggedMigrationsRunner($dependencyFactory))->run(); + + self::assertSame( + ['CREATE TABLE runner_test (id INTEGER NOT NULL)', 'INSERT INTO runner_test (id) VALUES (1)'], + array_map(static fn ($query): string => $query->getStatement(), $queries) + ); + self::assertEquals(1, $this->connection->fetchOne('SELECT COUNT(*) FROM runner_test')); + self::assertSame( + [Migration1CreateTable::class, Migration2InsertRow::class], + $this->getExecutedVersions($dependencyFactory) + ); + self::assertSame(0, $this->connection->getTransactionNestingLevel()); + } + + public function testSkipsMigrationsExecutedInAnEarlierRun(): void + { + $migrationClasses = [Migration1CreateTable::class, Migration2InsertRow::class]; + (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses)))->run(); + + $queries = (new TaggedMigrationsRunner($this->createDependencyFactory(...$migrationClasses)))->run(); + + self::assertSame([], $queries); + self::assertEquals(1, $this->connection->fetchOne('SELECT COUNT(*) FROM runner_test')); + } + + public function testFailureNamesTheMigrationAndRollsItBack(): void + { + $dependencyFactory = $this->createDependencyFactory(Migration1CreateTable::class, Migration3Failing::class); + + try { + (new TaggedMigrationsRunner($dependencyFactory))->run(); + self::fail('Expected the failing migration to throw.'); + } catch (RuntimeException $e) { + self::assertStringStartsWith( + sprintf('Migration "%s" failed: ', Migration3Failing::class), + $e->getMessage() + ); + self::assertNotNull($e->getPrevious()); + } + + // The migration before it stays applied and recorded; the failing one leaves nothing behind. + self::assertSame([Migration1CreateTable::class], $this->getExecutedVersions($dependencyFactory)); + self::assertTrue($this->hasTable('runner_test')); + self::assertFalse($this->hasTable('runner_test_partial')); + self::assertSame(0, $this->connection->getTransactionNestingLevel()); + } + + /** + * @param class-string ...$migrationClasses + */ + private function createDependencyFactory(string ...$migrationClasses): DependencyFactory + { + $configuration = new Configuration(); + $configuration->setMetadataStorageConfiguration(new TableMetadataStorageConfiguration()); + foreach ($migrationClasses as $migrationClass) { + $configuration->addMigrationClass($migrationClass); + } + + return DependencyFactory::fromConnection( + new ExistingConfiguration($configuration), + new ExistingConnection($this->connection) + ); + } + + /** + * @return list<string> + */ + private function getExecutedVersions(DependencyFactory $dependencyFactory): array + { + return array_values(array_map( + static fn ($migration): string => (string)$migration->getVersion(), + $dependencyFactory->getMetadataStorage()->getExecutedMigrations()->getItems() + )); + } + + private function hasTable(string $table): bool + { + return $this->connection->getSchemaManager()->tablesExist([$table]); + } +} From b8acaf26378646c45afbc4eea7f5cc5bd2c96d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 17:14:45 +0200 Subject: [PATCH 76/88] IBX-11939: Marked DoctrineMigrationsSchemaHook as internal --- .../Bootstrapper/DoctrineMigrationsSchemaHook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php index 78778c2abb..304eb94db0 100644 --- a/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php +++ b/src/bundle/RepositoryInstaller/Bootstrapper/DoctrineMigrationsSchemaHook.php @@ -15,7 +15,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver; /** - * @experimental + * @internal for internal use by Ibexa packages' integration test setup * * Installs the database schema the way a real `ibexa:install` does when the SchemaBuilderEvent path * is turned off: by running every Ibexa-tagged Doctrine migration via {@see TaggedMigrationsRunner} From 68e673c8d61dddabb66fa7a6391e87c8857a0a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Mon, 28 Sep 2026 17:14:45 +0200 Subject: [PATCH 77/88] IBX-11939: Renamed bootstrapper.yml to bootstrapper.yaml --- .../DependencyInjection/IbexaRepositoryInstallerExtension.php | 2 +- .../Resources/config/{bootstrapper.yml => bootstrapper.yaml} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/bundle/RepositoryInstaller/Resources/config/{bootstrapper.yml => bootstrapper.yaml} (100%) diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php index 40b9bb9cab..c0860d6be3 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/IbexaRepositoryInstallerExtension.php @@ -20,7 +20,7 @@ public function load(array $configs, ContainerBuilder $container) $loader->load('services.yml'); if ($this->shouldRegisterBootstrapperHook($container)) { - $loader->load('bootstrapper.yml'); + $loader->load('bootstrapper.yaml'); } } diff --git a/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml b/src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yaml similarity index 100% rename from src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yml rename to src/bundle/RepositoryInstaller/Resources/config/bootstrapper.yaml From ab9534e0a6ed7fc8427d15d670c881c6295e886c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Tue, 29 Sep 2026 00:39:11 +0200 Subject: [PATCH 78/88] IBX-11939: Added a dedicated exception for failing tagged migrations TaggedMigrationsRunner threw a plain RuntimeException, which SonarCloud flags (php:S112) and callers can't tell apart from other runtime errors. MigrationFailedException carries the failing migration's version on top of the same message, and still extends RuntimeException, so existing catch blocks keep working. --- .../Installer/CoreInstaller.php | 1 + .../Exception/MigrationFailedException.php | 34 +++++++++++++++++++ .../Migration/TaggedMigrationsRunner.php | 10 ++---- .../Migration/TaggedMigrationsRunnerTest.php | 5 +-- 4 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 57253f09b5..f438de029e 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -58,6 +58,7 @@ public function __construct( * @throws \Doctrine\DBAL\DBALException * @throws \RuntimeException if "ibexa.installer.schema_builder_event.enabled" is disabled but * "ibexa/doctrine-migrations" isn't installed/enabled to run the migrations-based path instead + * @throws \Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException if one of those migrations fails */ public function importSchema() { diff --git a/src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php b/src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php new file mode 100644 index 0000000000..418127b721 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/Exception/MigrationFailedException.php @@ -0,0 +1,34 @@ +<?php + +/** + * @copyright Copyright (C) Ibexa AS. All rights reserved. + * @license For full copyright and license information view LICENSE file distributed with this source code. + */ +declare(strict_types=1); + +namespace Ibexa\Bundle\RepositoryInstaller\Migration\Exception; + +use RuntimeException; +use Throwable; + +/** + * Thrown by {@see \Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner} when one of the + * migrations it runs fails. Names that migration, since Doctrine's executor rethrows the original + * error as it was, and carries that error as the previous exception. + */ +final class MigrationFailedException extends RuntimeException +{ + private string $version; + + public function __construct(string $version, Throwable $previous) + { + parent::__construct(sprintf('Migration "%s" failed: %s', $version, $previous->getMessage()), 0, $previous); + + $this->version = $version; + } + + public function getVersion(): string + { + return $this->version; + } +} diff --git a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php index c5cb8d79e1..0c4ef4ef96 100644 --- a/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php +++ b/src/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunner.php @@ -11,8 +11,8 @@ use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\MigrationPlanList; use Doctrine\Migrations\MigratorConfiguration; +use Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory; -use RuntimeException; use Throwable; /** @@ -53,7 +53,7 @@ public function __construct(DependencyFactory $dependencyFactory) /** * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run * - * @throws \RuntimeException naming the migration that failed, with the original error as its previous exception + * @throws \Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException naming the migration that failed, with the original error as its previous exception */ public function run(): array { @@ -84,11 +84,7 @@ public function run(): array $migratorConfiguration ); } catch (Throwable $e) { - throw new RuntimeException( - sprintf('Migration "%s" failed: %s', (string)$migrationPlan->getVersion(), $e->getMessage()), - 0, - $e - ); + throw new MigrationFailedException((string)$migrationPlan->getVersion(), $e); } foreach ($queriesByVersion as $queries) { diff --git a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php index 82d159711f..f14bd0ea14 100644 --- a/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php +++ b/tests/bundle/RepositoryInstaller/Migration/TaggedMigrationsRunnerTest.php @@ -15,12 +15,12 @@ use Doctrine\Migrations\Configuration\Migration\ExistingConfiguration; use Doctrine\Migrations\DependencyFactory; use Doctrine\Migrations\Metadata\Storage\TableMetadataStorageConfiguration; +use Ibexa\Bundle\RepositoryInstaller\Migration\Exception\MigrationFailedException; use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration1CreateTable; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration2InsertRow; use Ibexa\Tests\Bundle\RepositoryInstaller\Migration\Fixtures\Migration3Failing; use PHPUnit\Framework\TestCase; -use RuntimeException; /** * Runs real migrations through a real DependencyFactory on in-memory SQLite, which has @@ -73,7 +73,8 @@ public function testFailureNamesTheMigrationAndRollsItBack(): void try { (new TaggedMigrationsRunner($dependencyFactory))->run(); self::fail('Expected the failing migration to throw.'); - } catch (RuntimeException $e) { + } catch (MigrationFailedException $e) { + self::assertSame(Migration3Failing::class, $e->getVersion()); self::assertStringStartsWith( sprintf('Migration "%s" failed: ', Migration3Failing::class), $e->getMessage() From ca72e6b7f9fb88138c186dbd5ee485dea34c246b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 1 Oct 2026 11:29:36 +0200 Subject: [PATCH 79/88] IBX-11939: Replaced SqlPlatform with doctrine-schema's DatabasePlatformName --- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 4 ++-- .../Migration/FixLegacyIdentifiersMigration.php | 4 ++-- .../RepositoryInstaller/Migration/ImportDataMigration.php | 4 ++-- .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 4 ++-- .../Migration/RenameSchemaTo5_0Migration.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index 0451419d8e..0957fe0c02 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Adds the missing "link" index to "ezurlalias_ml" (IBX-8125, originally shipped via installer's @@ -40,7 +40,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if (!$schema->hasTable('ezurlalias_ml') || $schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { return; diff --git a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php index eeb416e905..ac91a552d0 100644 --- a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Fixes 3 stale legacy identifier values ("ez_lock"/"ezstring") left over from before the @@ -45,7 +45,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-mysql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index be7c1565d0..9acaad7559 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); // This migration inserts into "ezcontentobject" (the pre-rename name) since it runs // before the 5.0.0 rename. Migrations execute in a strict, deterministic order, so if diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index b68f8392e2..945580b15e 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); // Checks the final, post-rename table name (not "ezcontentobject", which this // migration creates): an install that built its schema via schema.yaml (rather than diff --git a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php index 255b4707ba..9d3782b379 100644 --- a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php +++ b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Renames the legacy eZ Publish-style core database schema (ez*) to the Ibexa naming @@ -39,7 +39,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ($schema->hasTable('ibexa_content')) { return; From 20db3729938c38053c6748c40c38be63ddad717f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 1 Oct 2026 11:29:36 +0200 Subject: [PATCH 80/88] IBX-11939: Replaced SqlPlatform with doctrine-schema's DatabasePlatformName --- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 4 ++-- .../RepositoryInstaller/Migration/ImportDataMigration.php | 4 ++-- .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index 0451419d8e..9f580e602c 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Adds the missing "link" index to "ezurlalias_ml" (IBX-8125, originally shipped via installer's @@ -40,7 +40,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MYSQL, DatabasePlatformName::POSTGRESQL, DatabasePlatformName::SQLITE); if (!$schema->hasTable('ezurlalias_ml') || $schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { return; diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index be7c1565d0..65393c40d1 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MYSQL, DatabasePlatformName::POSTGRESQL, DatabasePlatformName::SQLITE); // This migration inserts into "ezcontentobject" (the pre-rename name) since it runs // before the 5.0.0 rename. Migrations execute in a strict, deterministic order, so if diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index fc7d0b875a..3355fe2253 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MYSQL, DatabasePlatformName::POSTGRESQL, DatabasePlatformName::SQLITE); // Checks the final, post-rename table name (not "ezcontentobject", which this // migration creates): an install that built its schema via schema.yaml (rather than From 721a3774abd83e0b6796e3213abb5fd7359c2ff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 1 Oct 2026 11:29:37 +0200 Subject: [PATCH 81/88] IBX-11939: Replaced SqlPlatform with doctrine-schema's DatabasePlatformName --- .../Migration/AddContentVersionUniqueIndexMigration.php | 4 ++-- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 4 ++-- .../Migration/FixLegacyIdentifiersMigration.php | 4 ++-- .../RepositoryInstaller/Migration/ImportDataMigration.php | 4 ++-- .../RepositoryInstaller/Migration/InstallSchemaMigration.php | 4 ++-- .../Migration/RenameSchemaTo5_0Migration.php | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php index f9d0499ff1..d4a0f330b7 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Core's part of the 5.0 to 6.0 schema change (IBX-12078), converted from ibexa/installer's @@ -39,7 +39,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ( !$schema->hasTable('ibexa_content_version') diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index 0451419d8e..0957fe0c02 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Adds the missing "link" index to "ezurlalias_ml" (IBX-8125, originally shipped via installer's @@ -40,7 +40,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if (!$schema->hasTable('ezurlalias_ml') || $schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { return; diff --git a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php index eeb416e905..ac91a552d0 100644 --- a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Fixes 3 stale legacy identifier values ("ez_lock"/"ezstring") left over from before the @@ -45,7 +45,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ($this->isMySQL()) { $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-mysql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index be7c1565d0..9acaad7559 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); // This migration inserts into "ezcontentobject" (the pre-rename name) since it runs // before the 5.0.0 rename. Migrations execute in a strict, deterministic order, so if diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index b68f8392e2..945580b15e 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); // Checks the final, post-rename table name (not "ezcontentobject", which this // migration creates): an install that built its schema via schema.yaml (rather than diff --git a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php index 255b4707ba..9d3782b379 100644 --- a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php +++ b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\DoctrineMigrations\Migration\SqlPlatform; +use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; /** * Renames the legacy eZ Publish-style core database schema (ez*) to the Ibexa naming @@ -39,7 +39,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); + $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); if ($schema->hasTable('ibexa_content')) { return; From d8dc3424b27b062cfa65260b6c8d5b1a3b82fef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Thu, 1 Oct 2026 16:28:31 +0200 Subject: [PATCH 82/88] IBX-11939: Wrapped long lines in the Doctrine Migrations SQL files Each CREATE TABLE now lists one column, index or constraint per line, and ALTER TABLE and CREATE INDEX statements longer than 120 characters are wrapped. Only whitespace changes, apart from the comma moving in front of SQLite's --(DC2Type:...) comments, which keeps each comment with its column. --- .../Migration/sql/install-schema-mysql.sql | 15 ++++++++---- .../sql/install-schema-postgresql.sql | 23 ++++++++++++++----- .../Migration/sql/install-schema-sqlite.sql | 18 ++++++++++----- 3 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql index 91a5884910..8c08b93b4b 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -670,10 +670,17 @@ CREATE TABLE ibexa_token ( PRIMARY KEY(id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; +ALTER TABLE ezcontentbrowsebookmark + ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) + REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; +ALTER TABLE ezcontentbrowsebookmark + ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) + REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ezcontentclass_attribute_ml + ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) + REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; -- ibexa:sql-statement-separator -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; +ALTER TABLE ibexa_token + ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql index eef2fa53ac..7871917328 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-postgresql.sql @@ -284,7 +284,8 @@ CREATE TABLE ezcontentobject_attribute ( PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code + ON ezcontentobject_attribute (contentobject_id, version, language_code); -- ibexa:sql-statement-separator CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); -- ibexa:sql-statement-separator @@ -308,7 +309,8 @@ CREATE TABLE ezcontentobject_link ( -- ibexa:sql-statement-separator CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); +CREATE INDEX ezco_link_from + ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); -- ibexa:sql-statement-separator CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); -- ibexa:sql-statement-separator @@ -781,10 +783,19 @@ CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); -- ibexa:sql-statement-separator CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; +ALTER TABLE ezcontentbrowsebookmark + ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) + REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE + NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; +ALTER TABLE ezcontentbrowsebookmark + ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) + REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; +ALTER TABLE ezcontentclass_attribute_ml + ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) + REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; -- ibexa:sql-statement-separator -ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; +ALTER TABLE ibexa_token + ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) + REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 899b6cf872..5aab90bc2d 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -119,8 +119,10 @@ CREATE TABLE ezcontentbrowsebookmark ( node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, - CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, - CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) + REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, + CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) + REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); @@ -200,7 +202,8 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), - CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) + REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); @@ -281,7 +284,8 @@ CREATE TABLE ezcontentobject_attribute ( PRIMARY KEY(id, version) ); -- ibexa:sql-statement-separator -CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code + ON ezcontentobject_attribute (contentobject_id, version, language_code); -- ibexa:sql-statement-separator CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); -- ibexa:sql-statement-separator @@ -304,7 +308,8 @@ CREATE TABLE ezcontentobject_link ( -- ibexa:sql-statement-separator CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); -- ibexa:sql-statement-separator -CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); +CREATE INDEX ezco_link_from + ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); -- ibexa:sql-statement-separator CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); -- ibexa:sql-statement-separator @@ -747,7 +752,8 @@ CREATE TABLE ibexa_token ( created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, - CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) + REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE ); -- ibexa:sql-statement-separator CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); From 59d1520fd6c3fb118089deab0b62cdecd5d2ff9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 2 Oct 2026 11:06:26 +0200 Subject: [PATCH 83/88] IBX-11939: Added MariaDB to the platforms the migrations support ibexa/doctrine-migrations#19 makes MariaDB a platform of its own, so each migration now lists SqlPlatform::MARIADB and runs its MySQL SQL there too. --- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 6 +++--- .../RepositoryInstaller/Migration/ImportDataMigration.php | 6 +++--- .../Migration/InstallSchemaMigration.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index 9f580e602c..b9ac701b1e 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; +use Ibexa\Contracts\DoctrineMigrations\Migrations\SqlPlatform; /** * Adds the missing "link" index to "ezurlalias_ml" (IBX-8125, originally shipped via installer's @@ -40,13 +40,13 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(DatabasePlatformName::MYSQL, DatabasePlatformName::POSTGRESQL, DatabasePlatformName::SQLITE); + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::MARIADB, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); if (!$schema->hasTable('ezurlalias_ml') || $schema->getTable('ezurlalias_ml')->hasIndex('ezurlalias_ml_link')) { return; } - if ($this->isMySQL()) { + if ($this->isMySQL() || $this->isMariaDB()) { $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/add-urlalias-ml-link-index-postgresql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php index 65393c40d1..248e85bff3 100644 --- a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; +use Ibexa\Contracts\DoctrineMigrations\Migrations\SqlPlatform; final class ImportDataMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(DatabasePlatformName::MYSQL, DatabasePlatformName::POSTGRESQL, DatabasePlatformName::SQLITE); + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::MARIADB, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); // This migration inserts into "ezcontentobject" (the pre-rename name) since it runs // before the 5.0.0 rename. Migrations execute in a strict, deterministic order, so if @@ -51,7 +51,7 @@ public function up(Schema $schema): void return; } - if ($this->isMySQL()) { + if ($this->isMySQL() || $this->isMariaDB()) { $this->addSqlFile(__DIR__ . '/sql/import-data-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/import-data-postgresql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index 3355fe2253..dac83343be 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; +use Ibexa\Contracts\DoctrineMigrations\Migrations\SqlPlatform; final class InstallSchemaMigration extends AbstractSqlMigration implements IbexaMigrationInterface { @@ -33,7 +33,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(DatabasePlatformName::MYSQL, DatabasePlatformName::POSTGRESQL, DatabasePlatformName::SQLITE); + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::MARIADB, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); // Checks the final, post-rename table name (not "ezcontentobject", which this // migration creates): an install that built its schema via schema.yaml (rather than @@ -43,7 +43,7 @@ public function up(Schema $schema): void return; } - if ($this->isMySQL()) { + if ($this->isMySQL() || $this->isMariaDB()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-postgresql.sql'); From c351f4a73c45c08a41e2ce47cbb4040263a0fb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 2 Oct 2026 11:06:26 +0200 Subject: [PATCH 84/88] IBX-11939: Created the tables with JSON columns the way Doctrine DBAL does on MariaDB On MariaDB, DBAL creates a JSON column as LONGTEXT with a (DC2Type:json) comment, which is what the legacy SchemaBuilderEvent path gets too. MariaDB turns MySQL's native JSON into LONGTEXT with utf8mb4_bin and a json_valid() check instead, which DBAL 2.13 then reads back as TEXT. Those tables now come from install-schema-json-tables.mariadb.sql on MariaDB and install-schema-json-tables.mysql.sql on MySQL, ahead of the rest of install-schema-mysql.sql. --- .../Migration/InstallSchemaMigration.php | 7 ++++++- .../sql/install-schema-json-tables.mariadb.sql | 9 +++++++++ .../Migration/sql/install-schema-json-tables.mysql.sql | 9 +++++++++ .../Migration/sql/install-schema-mysql.sql | 10 ---------- 4 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mariadb.sql create mode 100644 src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mysql.sql diff --git a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php index dac83343be..6c12c3761a 100644 --- a/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/InstallSchemaMigration.php @@ -43,7 +43,12 @@ public function up(Schema $schema): void return; } - if ($this->isMySQL() || $this->isMariaDB()) { + if ($this->isMariaDB()) { + // Doctrine DBAL creates JSON columns on MariaDB as LONGTEXT with a type comment + $this->addSqlFile(__DIR__ . '/sql/install-schema-json-tables.mariadb.sql'); + $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); + } elseif ($this->isMySQL()) { + $this->addSqlFile(__DIR__ . '/sql/install-schema-json-tables.mysql.sql'); $this->addSqlFile(__DIR__ . '/sql/install-schema-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/install-schema-postgresql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mariadb.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mariadb.sql new file mode 100644 index 0000000000..fc5d113a28 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mariadb.sql @@ -0,0 +1,9 @@ +CREATE TABLE ibexa_setting ( + id INT AUTO_INCREMENT NOT NULL, + `group` VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value LONGTEXT NOT NULL COMMENT '(DC2Type:json)', + INDEX ibexa_setting_id (id), + UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mysql.sql new file mode 100644 index 0000000000..1061b094da --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-json-tables.mysql.sql @@ -0,0 +1,9 @@ +CREATE TABLE ibexa_setting ( + id INT AUTO_INCREMENT NOT NULL, + `group` VARCHAR(128) NOT NULL, + identifier VARCHAR(128) NOT NULL, + value JSON NOT NULL, + INDEX ibexa_setting_id (id), + UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), + PRIMARY KEY(id) +) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql index 8c08b93b4b..1a8bb59749 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-mysql.sql @@ -640,16 +640,6 @@ CREATE TABLE ezuser_setting ( PRIMARY KEY(user_id) ) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; -- ibexa:sql-statement-separator -CREATE TABLE ibexa_setting ( - id INT AUTO_INCREMENT NOT NULL, - `group` VARCHAR(128) NOT NULL, - identifier VARCHAR(128) NOT NULL, - value JSON NOT NULL, - INDEX ibexa_setting_id (id), - UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), - PRIMARY KEY(id) -) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_520_ci` ENGINE = InnoDB; --- ibexa:sql-statement-separator CREATE TABLE ibexa_token_type ( id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, From c3c39abf3d895ab51116d883e5fb0c8bf3df695f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 2 Oct 2026 14:07:47 +0200 Subject: [PATCH 85/88] IBX-11939: Targeted AddUrlAliasMlLinkIndexMigration at 4.6.21 It replaces installer's upgrade/db/ibexa-4.6.20-to-4.6.21.sql, so 4.6.21 is the release it is for. The target version only orders Ibexa migrations: it now runs after the 4.6.0 baselines instead of right after core's own, which is fine since it only needs core's tables. --- .../Migration/AddUrlAliasMlLinkIndexMigration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php index b9ac701b1e..c573a4f458 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddUrlAliasMlLinkIndexMigration.php @@ -30,7 +30,7 @@ public function getDescription(): string public static function getTargetVersion(): string { - return '4.6.0'; + return '4.6.21'; } public static function getCreationDate(): DateTimeImmutable From 7d77111670b18ebf4e16d2dfba6d9cddf5ce8100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 2 Oct 2026 14:26:02 +0200 Subject: [PATCH 86/88] IBX-11939: Added MariaDB to the platforms the 5.0 migrations support doctrine-migrations 5.0 takes SqlPlatform now, so the migrations that only exist on this branch list SqlPlatform::MARIADB and run their MySQL SQL there too, like the ones from 4.6. --- .../Migration/FixLegacyIdentifiersMigration.php | 6 +++--- .../Migration/RenameSchemaTo5_0Migration.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php index ac91a552d0..2ca13712cc 100644 --- a/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/FixLegacyIdentifiersMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; +use Ibexa\Contracts\DoctrineMigrations\Migrations\SqlPlatform; /** * Fixes 3 stale legacy identifier values ("ez_lock"/"ezstring") left over from before the @@ -45,9 +45,9 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::MARIADB, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); - if ($this->isMySQL()) { + if ($this->isMySQL() || $this->isMariaDB()) { $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/fix-legacy-identifiers-postgresql.sql'); diff --git a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php index 9d3782b379..ef84ed956c 100644 --- a/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php +++ b/src/bundle/RepositoryInstaller/Migration/RenameSchemaTo5_0Migration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; +use Ibexa\Contracts\DoctrineMigrations\Migrations\SqlPlatform; /** * Renames the legacy eZ Publish-style core database schema (ez*) to the Ibexa naming @@ -39,13 +39,13 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::MARIADB, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); if ($schema->hasTable('ibexa_content')) { return; } - if ($this->isMySQL()) { + if ($this->isMySQL() || $this->isMariaDB()) { $this->addSqlFile(__DIR__ . '/sql/rename-schema-to-5-0-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/rename-schema-to-5-0-postgresql.sql'); From 4dc5ed4f3ff9ee6ea39ea6b9899b883415af383c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Fri, 2 Oct 2026 14:42:30 +0200 Subject: [PATCH 87/88] IBX-11939: Added MariaDB to the platforms the 6.0 migrations support doctrine-migrations 6.0 takes SqlPlatform now, so the migrations that only exist on this branch list SqlPlatform::MARIADB and run their MySQL SQL there too, like the ones from 4.6. --- .../Migration/AddContentVersionUniqueIndexMigration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php b/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php index d4a0f330b7..4ef1ad67dc 100644 --- a/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php +++ b/src/bundle/RepositoryInstaller/Migration/AddContentVersionUniqueIndexMigration.php @@ -12,7 +12,7 @@ use Doctrine\DBAL\Schema\Schema; use Ibexa\Contracts\DoctrineMigrations\Migrations\AbstractSqlMigration; use Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationInterface; -use Ibexa\Contracts\DoctrineSchema\Database\DatabasePlatformName; +use Ibexa\Contracts\DoctrineMigrations\Migrations\SqlPlatform; /** * Core's part of the 5.0 to 6.0 schema change (IBX-12078), converted from ibexa/installer's @@ -39,7 +39,7 @@ public static function getCreationDate(): DateTimeImmutable public function up(Schema $schema): void { - $this->abortIfUnsupportedPlatform(DatabasePlatformName::MySQL, DatabasePlatformName::PostgreSQL, DatabasePlatformName::SQLite); + $this->abortIfUnsupportedPlatform(SqlPlatform::MYSQL, SqlPlatform::MARIADB, SqlPlatform::POSTGRESQL, SqlPlatform::SQLITE); if ( !$schema->hasTable('ibexa_content_version') @@ -48,7 +48,7 @@ public function up(Schema $schema): void return; } - if ($this->isMySQL()) { + if ($this->isMySQL() || $this->isMariaDB()) { $this->addSqlFile(__DIR__ . '/sql/add-content-version-unique-index-mysql.sql'); } elseif ($this->isPostgreSQL()) { $this->addSqlFile(__DIR__ . '/sql/add-content-version-unique-index-postgresql.sql'); From cf3d7715372d92a4eba35347eca03a7734d23d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= <pawel.niedzielski@ibexa.co> Date: Sun, 4 Oct 2026 21:48:46 +0200 Subject: [PATCH 88/88] IBX-11939: Added the missing ON UPDATE CASCADE to ezcontentclass_attribute_ml's SQLite foreign key schema.yaml declares ezcontentclass_attribute_ml_lang_fk with onUpdate: CASCADE, and the MySQL and PostgreSQL baselines have it, but the SQLite one only had ON DELETE CASCADE. The schema parity test reports it on SQLite's fresh-install scenario. --- .../RepositoryInstaller/Migration/sql/install-schema-sqlite.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql index 5aab90bc2d..71b857f1ab 100644 --- a/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql +++ b/src/bundle/RepositoryInstaller/Migration/sql/install-schema-sqlite.sql @@ -203,7 +203,7 @@ CREATE TABLE ezcontentclass_attribute_ml ( data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) - REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE + REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE ); -- ibexa:sql-statement-separator CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id);