gitlab-org--gitlab-foss/lib/gitlab/import_export
Yorick Peterse 8469f59d78
Backport the EE schema and migrations to CE
This backports all EE schema changes to CE, including EE migrations,
ensuring both use the same schema.

== Updated tests

A spec related to ghost and support bot users had to be modified to make
it pass. The spec in question assumes that the "support_bot" column
exists when defining the spec. In the single codebase setup this is not
the case, as the column is backported in a later migration. Any attempt
to use a different schema version or use of "around" blocks to
conditionally disable specs won't help, as reverting the backport
migration would also drop the "support_bot" column. Removing the
"support_bot" tests entirely appears to be the only solution.

We also need to update some foreign key tests now that we have
backported the EE columns. Fortunately, these changes are very minor.

== Backporting migrations

This commit moves EE specific migrations (except those for the Geo
tracking database) and related files to CE, and also removes any traces
of the ee/db directory.

Some migrations had to be modified or removed, as they no longer work
with the schema being backported. These migrations were all quite old,
so we opted for removing them where modifying them would take too much
time and effort.

Some old migrations were modified in EE, while also existing in CE. In
these cases we took the EE code, and in one case removed them entirely.
It's not worth spending time trying to merge these changes somehow as we
plan to remove old migrations around the release of 12.0, see
https://gitlab.com/gitlab-org/gitlab-ce/issues/59177 for more details.
2019-06-17 17:09:05 +02:00
..
after_export_strategies Fix bug when project export to remote url fails 2019-04-24 15:34:06 +00:00
after_export_strategy_builder.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
attribute_cleaner.rb Change prohibited_key to use regexes 2019-05-01 12:15:29 +12:00
attributes_finder.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
avatar_restorer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
avatar_saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
command_line_util.rb Fix persistent symlink in project import 2018-12-17 16:14:35 +01:00
config.rb Backport the EE schema and migrations to CE 2019-06-17 17:09:05 +02:00
error.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
file_importer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
group_project_object_builder.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
hash_util.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
import_export.yml Backport the EE schema and migrations to CE 2019-06-17 17:09:05 +02:00
importer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
json_hash_builder.rb Adds the Rubocop ReturnNil cop 2019-03-06 17:51:56 +02:00
lfs_restorer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
lfs_saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
members_mapper.rb Fix order dependency with user params during imports 2019-05-28 10:31:51 +00:00
merge_request_parser.rb Arbitrary file read via MergeRequestDiff 2019-03-04 18:36:34 +00:00
project_tree_restorer.rb Fix invalid visibility string comparison in project import 2019-05-22 11:32:23 -07:00
project_tree_saver.rb Rename project's pipelines relation 2018-12-05 14:39:15 +00:00
reader.rb Backport the EE schema and migrations to CE 2019-06-17 17:09:05 +02:00
relation_factory.rb Ignore legacy artifact columns in Project Import/Export 2019-06-11 18:39:29 +07:00
relation_rename_service.rb Rename project's pipelines relation 2018-12-05 14:39:15 +00:00
repo_restorer.rb Remove unnecessary includes of ShellAdapter 2018-12-05 23:19:27 -08:00
repo_saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
shared.rb Fix import_jid error on project import 2019-02-14 09:29:42 +01:00
statistics_restorer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
uploads_manager.rb Refactor upload service to return uploader 2019-01-07 11:16:58 +08:00
uploads_restorer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
uploads_saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
version_checker.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
version_saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
wiki_repo_saver.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00
wiki_restorer.rb Enable even more frozen string for lib/gitlab 2018-11-16 17:41:14 -08:00