From f94607dce5b334abd55c392392efda97f4fcefc5 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/24] [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 a355ab0750..f35c141e48 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 15cd76ff78..5f0f83e99d 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5550,84 +5550,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 389cdcb2a1a2e66faabaaf3336c3f4797c83907c 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/24] 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 60aa2f355729aa87091ff02e3ece6a45e0feee32 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/24] [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 f855ab2ff77c6966bf7ae35c0d96aab9c7a92633 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/24] [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 a3c29bb721f9eef7867bc760d19dd87c73564bef 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/24] 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 e2fa485fb7af4738767de3e35b142ed55f5ffa5b 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/24] 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 23a8dded8c060c1de7f82d6697de1b33dfa419a9 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/24] 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 0bece79459b7977475ce3a06c68e28a56ad0ca16 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/24] 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 3f1dc58ca6f36773a45d5ca0b590bbe86f10936b 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/24] 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 606b9a91c7a175a3142f9e60041aef3ebc0d1745 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/24] 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 d0a69848d9891513063a31f79233bc64e63c8e42 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/24] 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 e7128035173a7ced0ff43c831736eb2edaefc4e4 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/24] 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 dbc88072dc72e36c9eabfabef5f3cd3678e49bb1 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/24] 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 d3c47548b027f98950cfcc4858c6f8dcac28e3e8 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/24] 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 f35c141e48..9aa2410889 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 2485b8f31e5c0aabb15654c073ee7793dd04675a 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/24] 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 cad60ff5a5eafa6252224e1d1af772aabe7c6bb2 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/24] 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 d966b2234fd429c6abaf3b19b60bbb3fa8b2296d 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/24] 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 018b396fa96db7d8f1a7ae857a07248f8be58ce7 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/24] 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 2ae15bc0a93f3058d22ad8c730410d0c8e76274b 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/24] 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 fce94f6ad8ac3427666ac78b3a753ec4d829f828 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/24] 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 9aa2410889..64c566b916 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 accaaf2e50de5b4eba10914b15b9a71051d013ef 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/24] 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 076c9b68a9d67ac72260966187f15ba2f2088e3a 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/24] 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 cf07df672aec54fcadf2222cfc61e547dda23611 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/24] 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 d6f799e5f7a78b9e148a69cebdd7844588c2d37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Fri, 31 Jul 2026 11:13:59 +0200 Subject: [PATCH 24/24] Fix stale PHPStan baseline counts for LocationServiceTest.php assertInstanceOf ignores Unblocks this PR's CI. Pre-existing on 4.6 itself (unrelated to this PR's changes) - see ibexa/core#794, which fixes it at the source; this commit will become a no-op once that's merged and this branch is rebased on top. --- phpstan-baseline.neon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 5f0f83e99d..a16ef3c242 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -41050,7 +41050,7 @@ parameters: - message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location'' and Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location will always evaluate to true\.$#' identifier: method.alreadyNarrowedType - count: 10 + count: 9 path: tests/integration/Core/Repository/LocationServiceTest.php - @@ -41080,7 +41080,7 @@ parameters: - message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Location'' and Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Location will always evaluate to true\.$#' identifier: staticMethod.alreadyNarrowedType - count: 2 + count: 1 path: tests/integration/Core/Repository/LocationServiceTest.php -