Removes database migrations up to 16-2-stable-ee
Compare changes
Remove database migrations up to 20230717200940
– until 16-2-stable-ee
.
Follow up from !139940 (merged)
Changes in this MR:
db/migrate
and db/post_migrate
introduced in 16-2-stable-ee
up to 20230717200940
16-1-stable-ee db/structure.sql
changes to init_structure.sql
16.3 - 20230718020825
We decided not to rename the 20211202041233_init_schema.rb
file, to avoid problems with migrations
I used the squash script: bundle exec rake gitlab:db:squash\[16-1-stable-ee\]
:
master
and 16-2-stable-ee
16-2-stable-ee
versionstructure.sql
file to init_structure.sql
(from 16-2-stable-ee
version)master
branchmaster
branch (revision 14b8b0416a0f27be331ae34b151b2702f4c80723
) — This revision makes sure that the same migrations are present in both branches, master
and 409574-remove-old-migrations-to-16-2
git checkout 14b8b0416a0f27be331ae34b151b2702f4c80723
gdk stop && gdk start db && bin/rails db:drop db:create
bin/rails db:migrate:main
structure.sql
the diff in a temp filecat db/structure.sql > tmp/master.diff
git reset --hard origin
409574-remove-old-migrations-to-16-2
branchgit checkout 409574-remove-old-migrations-to-16-2
gdk stop && gdk start db && bin/rails db:drop db:create
bin/rails db:migrate:main
structure.sql
the diff in a temp filecat db/structure.sql > tmp/squash.diff
git reset --hard origin/409574-remove-old-migrations-to-16-2
git diff --no-index tmp/master.diff tmp/squash.diff
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #409574 (closed)