You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/capistrano-db-tasks/database.rb
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -199,8 +199,20 @@ def execute(cmd)
199
199
end
200
200
201
201
class << self
202
-
defcheck(local_db,remote_db)
203
-
raise'Only mysql or postgresql on remote and local server is supported'unless(local_db.mysql? && remote_db.mysql?) || (local_db.postgresql? && remote_db.postgresql?)
202
+
defcheck(local_db,remote_db=nil)
203
+
returnifmysql_db_valid?(local_db,remote_db)
204
+
returnifpostgresql_db_valid?(local_db,remote_db)
205
+
206
+
raise'Only mysql or postgresql on remote and local server is supported'
0 commit comments