gitlab-org--gitlab-foss/lib/tasks/gitlab
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
..
artifacts Run rubocop -a 2019-03-13 13:42:43 +00:00
lfs Run rubocop -a 2019-03-13 13:42:43 +00:00
uploads Rake task for removing exif from uploads 2019-04-02 07:48:35 +00:00
assets.rake Build visual_review_toolbar with webpack 2019-05-29 20:24:15 +00:00
backup.rake Add warning that gitlab-secrets isn't included 2019-05-08 12:39:04 -05:00
bulk_add_permission.rake Enable the Layout/ExtraSpacing cop 2019-01-24 13:05:45 +01:00
check.rake Extract system check rake task logic 2018-12-03 13:51:46 -08:00
cleanup.rake Update cleanup.rake to fix a typo in the error message 2019-03-07 23:37:16 +00:00
db.rake Fix attempting to drop views in PostgreSQL 2019-04-02 00:19:22 +00:00
dev.rake
exclusive_lease.rake
features.rake delete feature flag when disabling Rugged 2019-05-13 08:57:10 +00:00
git.rake
gitaly.rake
helpers.rake
import.rake
import_export.rake Backport the EE schema and migrations to CE 2019-06-17 17:09:05 +02:00
info.rake Backport EE changes to gitlab:env:info 2019-04-02 14:57:44 +02:00
ldap.rake Use gitlab_environment for ldap rake task 2018-10-25 13:56:39 -05:00
list_repos.rake
pages.rake
seed.rake Provide a new gitlab:seed:issues task 2019-04-23 11:43:53 +02:00
setup.rake Move terminate_all_connections into setup Rake task 2019-02-11 21:30:57 -08:00
shell.rake Remove hook directory requirement from Shell 2019-05-30 20:04:08 +02:00
storage.rake Prevent storage migration and rollback running at the same time 2019-03-12 17:51:05 +01:00
tcp_check.rake
test.rake
traces.rake Run rubocop -a 2019-03-13 13:42:43 +00:00
track_deployment.rake
two_factor.rake
update_templates.rake Forbid the use of `#reload` and prefer `#reset` 2019-04-15 13:05:14 +02:00
web_hook.rake Fix gitlab:web_hook tasks 2018-12-06 18:37:05 +00:00
workhorse.rake