Commit 8bb7aacd authored by Toon Claes's avatar Toon Claes

Merge branch 'stop-spring-on-schema-regenerate' into 'master'

Stop spring before resetting DB in scripts/regenerate-schema

See merge request gitlab-org/gitlab!48645
parents 34788a54 24505d25
...@@ -33,6 +33,7 @@ class SchemaRegenerator ...@@ -33,6 +33,7 @@ class SchemaRegenerator
checkout_clean_schema checkout_clean_schema
hide_migrations hide_migrations
remove_schema_migration_files remove_schema_migration_files
stop_spring
reset_db reset_db
unhide_migrations unhide_migrations
migrate migrate
...@@ -148,6 +149,12 @@ class SchemaRegenerator ...@@ -148,6 +149,12 @@ class SchemaRegenerator
run(git_command).chomp.split("\n") run(git_command).chomp.split("\n")
end end
##
# Stop spring before modifying the database
def stop_spring
run %q[bin/spring stop]
end
## ##
# Run rake task to reset the database. # Run rake task to reset the database.
def reset_db def reset_db
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment