We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e29b07e + 4eb0bd2 commit bf2e50bCopy full SHA for bf2e50b
1 file changed
conf/deploydb.sh
@@ -48,9 +48,8 @@ url="jdbc:mysql://$host:$port/zstack"
48
bash $flyway -user=$user -password=$password -url=$url clean
49
50
# create baseline and clean its contents for 'beforeValidate.sql'
51
-mysql_run -se "SELECT table_name FROM information_schema.tables WHERE table_name = 'schema_version'" | \
52
- grep -wq schema_version || \
53
- ( bash $flyway -user=$user -password=$password -url=$url baseline; mysql_run zstack -e "DELETE FROM schema_version" )
+bash $flyway -user=$user -password=$password -url=$url baseline
+mysql_run zstack -e "DELETE FROM schema_version"
54
55
bash $flyway -user=$user -password=$password -url=$url migrate
56
0 commit comments