GitLab Bot
c34e11bfe4
Add latest changes from gitlab-org/gitlab@master
2022-04-02 06:09:49 +00:00
GitLab Bot
1b6c8b34c1
Add latest changes from gitlab-org/gitlab@master
2022-03-28 18:07:56 +00:00
GitLab Bot
5316a9bca9
Add latest changes from gitlab-org/gitlab@master
2022-03-23 03:07:30 +00:00
GitLab Bot
705210af74
Add latest changes from gitlab-org/gitlab@master
2022-03-18 21:09:10 +00:00
GitLab Bot
5c2d8a7cbe
Add latest changes from gitlab-org/gitlab@master
2022-03-04 21:13:10 +00:00
GitLab Bot
e40c68997d
Add latest changes from gitlab-org/gitlab@master
2022-02-24 12:12:57 +00:00
GitLab Bot
b286069fdf
Add latest changes from gitlab-org/gitlab@master
2022-02-23 12:13:44 +00:00
GitLab Bot
a9fa13e4ba
Add latest changes from gitlab-org/gitlab@master
2022-02-23 03:17:13 +00:00
GitLab Bot
bad127a0f6
Add latest changes from gitlab-org/gitlab@master
2022-02-22 18:17:57 +00:00
GitLab Bot
0f50c47cd7
Add latest changes from gitlab-org/gitlab@master
2022-02-15 18:14:39 +00:00
GitLab Bot
66fc7ba6f3
Add latest changes from gitlab-org/gitlab@master
2022-02-15 06:17:51 +00:00
GitLab Bot
462b603802
Add latest changes from gitlab-org/gitlab@master
2022-01-12 15:13:54 +00:00
GitLab Bot
b330f7f0bf
Add latest changes from gitlab-org/gitlab@master
2022-01-11 18:16:38 +00:00
GitLab Bot
589ee0e419
Add latest changes from gitlab-org/gitlab@master
2021-12-22 06:13:39 +00:00
GitLab Bot
be4229fb3a
Add latest changes from gitlab-org/gitlab@master
2021-12-14 03:13:32 +00:00
GitLab Bot
ca5de52835
Add latest changes from gitlab-org/gitlab@master
2021-12-10 18:14:42 +00:00
GitLab Bot
886ecba0bd
Add latest changes from gitlab-org/gitlab@master
2021-12-08 12:13:04 +00:00
GitLab Bot
d6849cd8ae
Add latest changes from gitlab-org/gitlab@master
2021-12-03 21:13:58 +00:00
GitLab Bot
e5c7d631a8
Add latest changes from gitlab-org/gitlab@master
2021-11-15 15:10:57 +00:00
GitLab Bot
70a50740a2
Add latest changes from gitlab-org/gitlab@master
2021-11-03 15:13:48 +00:00
GitLab Bot
fe30694fcf
Add latest changes from gitlab-org/gitlab@master
2021-10-28 21:10:02 +00:00
GitLab Bot
046d6f5277
Add latest changes from gitlab-org/gitlab@master
2021-10-11 15:13:01 +00:00
GitLab Bot
85c68f14bf
Add latest changes from gitlab-org/gitlab@master
2021-10-06 00:11:56 +00:00
GitLab Bot
78a62a7c7a
Add latest changes from gitlab-org/gitlab@master
2021-09-16 18:11:32 +00:00
GitLab Bot
d0c0976efe
Add latest changes from gitlab-org/gitlab@master
2021-09-09 00:08:56 +00:00
GitLab Bot
42d930072f
Add latest changes from gitlab-org/gitlab@master
2021-08-03 09:15:56 +00:00
GitLab Bot
112fe349cb
Add latest changes from gitlab-org/gitlab@master
2021-07-28 21:08:53 +00:00
GitLab Bot
a8f5aaa708
Add latest changes from gitlab-org/gitlab@master
2021-07-21 15:08:52 +00:00
GitLab Bot
1072f96e34
Add latest changes from gitlab-org/gitlab@master
2021-07-19 12:10:08 +00:00
GitLab Bot
e1189e4c3b
Add latest changes from gitlab-org/gitlab@master
2021-07-13 15:08:38 +00:00
GitLab Bot
3462d7613f
Add latest changes from gitlab-org/gitlab@master
2021-07-07 00:07:23 +00:00
GitLab Bot
7c28a67789
Add latest changes from gitlab-org/gitlab@master
2021-06-30 12:07:58 +00:00
GitLab Bot
59469a1782
Add latest changes from gitlab-org/gitlab@master
2021-06-28 15:08:03 +00:00
GitLab Bot
0ebbf19f2d
Add latest changes from gitlab-org/gitlab@master
2021-06-08 15:10:00 +00:00
GitLab Bot
79f98200f8
Add latest changes from gitlab-org/gitlab@master
2021-06-07 15:09:56 +00:00
GitLab Bot
8e056c9ef3
Add latest changes from gitlab-org/gitlab@master
2021-05-21 21:10:56 +00:00
GitLab Bot
cf05fd7f39
Add latest changes from gitlab-org/gitlab@master
2021-05-05 15:10:05 +00:00
GitLab Bot
e5e0589e09
Add latest changes from gitlab-org/gitlab@master
2021-04-26 12:09:44 +00:00
GitLab Bot
bc62085601
Add latest changes from gitlab-org/gitlab@master
2021-04-23 18:10:18 +00:00
GitLab Bot
c9bef85d79
Add latest changes from gitlab-org/gitlab@master
2021-04-19 21:09:27 +00:00
GitLab Bot
418a39f6c2
Add latest changes from gitlab-org/gitlab@master
2021-04-07 00:09:26 +00:00
GitLab Bot
02c3b2af44
Add latest changes from gitlab-org/gitlab@master
2021-02-10 21:09:24 +00:00
GitLab Bot
64f7eb2b37
Add latest changes from gitlab-org/gitlab@master
2021-02-05 12:09:31 +00:00
GitLab Bot
b07852468f
Add latest changes from gitlab-org/gitlab@master
2020-12-15 18:10:06 +00:00
GitLab Bot
3e06afc4cd
Add latest changes from gitlab-org/gitlab@master
2020-12-10 12:09:43 +00:00
GitLab Bot
4fc6f62c16
Add latest changes from gitlab-org/gitlab@master
2020-11-25 00:09:24 +00:00
GitLab Bot
b4b6bff01d
Add latest changes from gitlab-org/gitlab@master
2020-10-13 18:08:58 +00:00
GitLab Bot
16515bdfcb
Add latest changes from gitlab-org/gitlab@master
2020-10-13 15:08:53 +00:00
GitLab Bot
251d3d2b23
Add latest changes from gitlab-org/gitlab@master
2020-10-02 09:08:33 +00:00
GitLab Bot
0b4bb101ea
Add latest changes from gitlab-org/gitlab@master
2020-10-01 18:10:20 +00:00
GitLab Bot
f4fb4d5948
Add latest changes from gitlab-org/gitlab@master
2020-09-25 15:09:36 +00:00
GitLab Bot
eb08c8e6f8
Add latest changes from gitlab-org/gitlab@master
2020-09-22 15:09:37 +00:00
GitLab Bot
7985071975
Add latest changes from gitlab-org/gitlab@master
2020-09-21 12:09:34 +00:00
GitLab Bot
80d252c8e2
Add latest changes from gitlab-org/gitlab@master
2020-09-18 15:09:22 +00:00
GitLab Bot
cf9694dd84
Add latest changes from gitlab-org/gitlab@master
2020-09-18 00:09:39 +00:00
GitLab Bot
8aab944cc5
Add latest changes from gitlab-org/gitlab@master
2020-07-15 00:09:23 +00:00
GitLab Bot
5d6119a1a4
Add latest changes from gitlab-org/gitlab@master
2020-06-25 00:09:26 +00:00
GitLab Bot
963838b90c
Add latest changes from gitlab-org/gitlab@master
2020-06-05 09:08:05 +00:00
GitLab Bot
a9ced7da44
Add latest changes from gitlab-org/gitlab@master
2020-04-09 12:09:24 +00:00
GitLab Bot
f2dfd9ee81
Add latest changes from gitlab-org/gitlab@master
2020-03-22 15:09:49 +00:00
GitLab Bot
0f8c2334f0
Add latest changes from gitlab-org/gitlab@master
2020-01-23 06:08:32 +00:00
Yorick Peterse
d7a4c1d2a5
Backport EE changes made to the scripts/ directory
...
This backport changes made by EE to the files in the scripts/ directory.
This comes with a few changes to some scripts to make them work in the
single codebase setup.
2019-07-29 13:53:20 +02:00
Heinrich Lee Yu
2b3d00a778
Remove unneeded monkey-patch
...
Changes all calls to data_source_exists? to table_exists?
since that is the intent of these calls
2019-07-25 12:21:38 +08:00
Nick Thomas
4aa76dddec
Remove dead MySQL code
...
None of this code can be reached any more, so it can all be removed
2019-07-23 16:53:03 +01:00
Wei-Meng Lee
cfc6d2528c
Fix attempting to drop views in PostgreSQL
2019-04-02 00:19:22 +00:00
Jose Torres
56c267e52c
Fix MySQL error when truncating a table that doesn't exist
...
This adds a conditional statement before truncating the
`schema_migrations` table.
This comit also ports this code to Rails 5.
2019-02-05 17:30:22 -08:00
DJ Mountney
76cfe4f1fd
Ensure the schema is loaded with post_migrations included
...
If doing a schema load, the post_migrations should also be marked as up,
even if SKIP_POST_DEPLOYMENT_MIGRATIONS was set, otherwise future
migration runs will be broken.
2018-09-11 18:41:14 -07:00
DJ Mountney
a9fcf96856
Fixes an issue where migrations instead of schema loading were run
...
If you called rake gitlab:db:drop_tables before running gitlab-ctl
reconfigure (or rake gitlab:db:configure)
2018-06-27 13:39:55 -07:00
Nick Thomas
1a168dc7a5
Fix caching large snippet HTML content on MySQL databases
2017-05-03 15:27:45 +01:00
Douwe Maan
e4551749c0
Only check new migrations in 'rake down_timecheck'
2017-03-08 17:33:53 -06:00
Douwe Maan
87c9df29ce
Don’t exclude some file in lib from rubocop
2017-02-23 09:32:42 -06:00
Drew Blessing
cfd103dbb5
Disable MySQL foreign key checks before dropping all tables
2016-07-25 21:16:54 -05:00
Yorick Peterse
a8bfe20d0d
Added checks for migration downtime
...
These new checks can be used to check if migrations require downtime or
not (as tagged by their authors). In CI this compares the current branch
with master so migrations added by merge requests are automatically
verified.
To check the migrations added since a Git reference simply run:
bundle exec rake gitlab:db:downtime_check[GIT_REF]
2016-07-20 12:41:56 +02:00
Stan Hu
bf92ea687f
Properly quote table name in Rake task for MySQL and PostgreSQL compatibility
...
!4318 broke the gitlab:db:drop_tables functionality for PostgreSQL.
Closes #15259
2016-06-09 15:06:19 -07:00
Stan Hu
4fbb284cfd
Merge branch 'fix_issue_15259' into 'master'
...
Fix bug with SQL syntax error during backup restoration
## What does this MR do?
It properly escapes the table name in the `DROP TABLE IF EXISTS ...` statement used during restore of a backup.
## Are there points in the code the reviewer needs to double check?
Please check compatibility with PostgreSQL
## Why was this MR needed?
Fix an issue with backups can not be restored if MySQL is used as database for GitLab.
## What are the relevant issue numbers?
#15259
## Screenshots (if relevant)
-
See merge request !4318
2016-06-09 21:44:10 +00:00
Connor Shea
903946c78a
Replace colorize gem with rainbow.
...
Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize.
The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance.
The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product.
An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded.
Rainbow library: https://github.com/sickill/rainbow
Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
2016-06-03 10:37:09 -06:00
Daniel Beyer
97aecdeade
Fix bug with SQL syntax error during backup restoration
...
closes #15259
2016-05-27 13:35:12 +02:00
DJ Mountney
1a7326ba9a
Switch the gitlab:db:configure task to use tables.any? instead of looking specifically for the schema_migrations table
2016-05-25 10:47:09 -07:00
DJ Mountney
24632d2150
Update hash syntax and add changelog for the gitlab:db:configure rake task
2016-05-25 10:44:22 -07:00
DJ Mountney
c6e7d826b2
Add a gitlab:db:configure rake task to handle conditionally seeding or migrating the database.
2016-05-25 10:44:22 -07:00
Drew Blessing
10d4d5842b
Add if exists to drop command
2016-05-09 12:20:18 -05:00
Drew Blessing
50d18a1e1d
Rake drop tables with cascade
2016-05-03 09:29:15 -05:00
Drew Blessing
5516b6c47f
Reload the schema before restoring a database backup
2016-03-21 21:16:34 -05:00