gitlab-org--gitlab-foss/lib/tasks
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
..
ci
gitlab Backport the EE schema and migrations to CE 2019-06-17 17:09:05 +02:00
migrate Run rubocop -a 2019-03-13 13:42:43 +00:00
brakeman.rake
cache.rake
config_lint.rake
dev.rake Reduce remaining diff with EE in app/services 2019-02-14 12:37:55 +01:00
downtime_check.rake
ee_compat_check.rake
eslint.rake
gemojione.rake Run rubocop -a on CE files 2019-05-05 03:24:28 -07:00
gettext.rake Show description of 'gettext:regenerate' task 2019-06-07 09:38:01 -05:00
grape.rake
haml-lint.rake Move files from lib/haml_lint to haml_lint 2019-05-21 19:49:14 -07:00
import.rake Removes all the irrelevant import related code and columns 2018-11-27 12:58:13 +00:00
karma.rake Removed also the in the meanwhile introduced rake task 2019-04-10 13:51:14 -07:00
lint.rake Avoid pipes so it doesn't overflow 2019-05-18 11:18:10 +08:00
plugins.rake
rubocop.rake
scss-lint.rake
services.rake
setup.rake
sidekiq.rake
spec.rake Revert "Merge branch 'revert-04c3c6dd' into 'master'" 2019-05-22 21:47:32 +02:00
test.rake
tokens.rake Document ApplicationRecord / pluck_primary_key 2019-03-29 20:54:06 +00:00
yarn.rake