summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Beyer <ymc-dabe@vcs.ymc.ch>2016-05-27 13:35:12 +0200
committerDaniel Beyer <ymc-dabe@vcs.ymc.ch>2016-05-27 13:35:12 +0200
commit97aecdeadeb85383a793135f92677daf99c6183e (patch)
tree2f07ba9620c4bfa9e6d266963ff3f177e4b1172f
parent61072a02444092040fcabdc582f029670ccd4ae2 (diff)
downloadgitlab-ce-97aecdeadeb85383a793135f92677daf99c6183e.tar.gz
Fix bug with SQL syntax error during backup restoration
closes #15259
-rw-r--r--lib/tasks/gitlab/db.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/db.rake b/lib/tasks/gitlab/db.rake
index 86f5d65f128..60234c872ed 100644
--- a/lib/tasks/gitlab/db.rake
+++ b/lib/tasks/gitlab/db.rake
@@ -34,7 +34,7 @@ namespace :gitlab do
# PG: http://www.postgresql.org/docs/current/static/ddl-depend.html
# MySQL: http://dev.mysql.com/doc/refman/5.7/en/drop-table.html
# Add `IF EXISTS` because cascade could have already deleted a table.
- tables.each { |t| connection.execute("DROP TABLE IF EXISTS #{t} CASCADE") }
+ tables.each { |t| connection.execute("DROP TABLE IF EXISTS `#{t}` CASCADE") }
end
desc 'Configures the database by running migrate, or by loading the schema and seeding if needed'