Skip to content
Snippets Groups Projects
Commit 97aecdea authored by Daniel Beyer's avatar Daniel Beyer
Browse files

Fix bug with SQL syntax error during backup restoration

closes #15259
parent 61072a02
Branches
Tags
1 merge request!4318Fix bug with SQL syntax error during backup restoration
Loading
Loading
@@ -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'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment