dohmysql 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/doh/mysql/database_creator.rb +0 -12
- metadata +2 -2
|
@@ -106,18 +106,6 @@ private
|
|
|
106
106
|
|
|
107
107
|
def apply_migrates(dbh, source_db)
|
|
108
108
|
apply_files = find_files("#{source_db}/migrate/*_apply.sql")
|
|
109
|
-
migrates = apply_files.collect {|path| File.basename(path).slice(0..-11)}
|
|
110
|
-
|
|
111
|
-
migrates.each do |name|
|
|
112
|
-
base, divider, _ = name.partition('_after')
|
|
113
|
-
next if divider.empty?
|
|
114
|
-
|
|
115
|
-
if migrates.include?("#{base}_before")
|
|
116
|
-
file_ending = "#{name}_apply.sql"
|
|
117
|
-
apply_files.delete_if {|path| path.end_with?(file_ending)}
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
|
|
121
109
|
load_sql(dbh, apply_files)
|
|
122
110
|
apply_files.each do |path|
|
|
123
111
|
migrate_name = File.basename(path).slice(0..-11)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dohmysql
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.17
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2013-04-
|
|
13
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: dohroot
|