sequel-schema-sharding 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 316d15abfc27b676f2d97669aa76e20013432b8e
|
4
|
+
data.tar.gz: 746fea07e8d6e767f39593b989ebec6e329f2439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e351848ec31e3428c8a2a59e1088bf11874e0135c9ceb057e103417299089d11c2252bb0d1599eb412be6d8c0729ac2dd74180ecc9cf2a339072cc50a46075d1
|
7
|
+
data.tar.gz: 116a5e32059ec0cddb15ccaf16b08b296aa1de65b737d269db06b6338e12c17b14b2d96d430ae95b7017db53e6e49fa4524eed963593189e288a543040e3841e
|
@@ -90,6 +90,12 @@ module Sequel
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
+
def migrate_all(options)
|
94
|
+
config.table_names.each do |table_name|
|
95
|
+
migrate(table_name, options)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
93
99
|
def rollback(table_name, migration_options = {})
|
94
100
|
SchemaIterator.new.iterate_on(table_name) do |conn, schema_name, table_name|
|
95
101
|
Sequel::SchemaSharding.logger.warn "Rolling back #{table_name} in schema #{schema_name}.."
|
@@ -101,6 +107,12 @@ module Sequel
|
|
101
107
|
end
|
102
108
|
end
|
103
109
|
|
110
|
+
def rollback_all(options)
|
111
|
+
config.table_names.each do |table_name|
|
112
|
+
rollback(table_name, options)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
104
116
|
private
|
105
117
|
|
106
118
|
def migrator_for(connection, schema, table_name, options = {})
|