db_schema 0.2.5 → 0.3.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -3
- data/README.md +2 -2
- data/lib/db_schema.rb +81 -38
- data/lib/db_schema/awesome_print.rb +37 -36
- data/lib/db_schema/changes.rb +68 -217
- data/lib/db_schema/configuration.rb +34 -15
- data/lib/db_schema/definitions.rb +7 -252
- data/lib/db_schema/definitions/check_constraint.rb +17 -0
- data/lib/db_schema/definitions/enum.rb +21 -0
- data/lib/db_schema/definitions/extension.rb +12 -0
- data/lib/db_schema/definitions/field/base.rb +6 -0
- data/lib/db_schema/definitions/foreign_key.rb +41 -0
- data/lib/db_schema/definitions/index.rb +56 -0
- data/lib/db_schema/definitions/index/column.rb +32 -0
- data/lib/db_schema/definitions/index/expression.rb +19 -0
- data/lib/db_schema/definitions/index/table_field.rb +19 -0
- data/lib/db_schema/definitions/schema.rb +36 -0
- data/lib/db_schema/definitions/table.rb +115 -0
- data/lib/db_schema/dsl.rb +96 -76
- data/lib/db_schema/dsl/migration.rb +24 -0
- data/lib/db_schema/migration.rb +12 -0
- data/lib/db_schema/migrator.rb +177 -0
- data/lib/db_schema/normalizer.rb +19 -17
- data/lib/db_schema/operations.rb +211 -0
- data/lib/db_schema/reader.rb +46 -36
- data/lib/db_schema/runner.rb +147 -171
- data/lib/db_schema/version.rb +1 -1
- metadata +18 -4
data/lib/db_schema/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: db_schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vsevolod Romashov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -189,6 +189,9 @@ files:
|
|
189
189
|
- lib/db_schema/changes.rb
|
190
190
|
- lib/db_schema/configuration.rb
|
191
191
|
- lib/db_schema/definitions.rb
|
192
|
+
- lib/db_schema/definitions/check_constraint.rb
|
193
|
+
- lib/db_schema/definitions/enum.rb
|
194
|
+
- lib/db_schema/definitions/extension.rb
|
192
195
|
- lib/db_schema/definitions/field.rb
|
193
196
|
- lib/db_schema/definitions/field/array.rb
|
194
197
|
- lib/db_schema/definitions/field/base.rb
|
@@ -213,8 +216,19 @@ files:
|
|
213
216
|
- lib/db_schema/definitions/field/range.rb
|
214
217
|
- lib/db_schema/definitions/field/text_search.rb
|
215
218
|
- lib/db_schema/definitions/field/uuid.rb
|
219
|
+
- lib/db_schema/definitions/foreign_key.rb
|
220
|
+
- lib/db_schema/definitions/index.rb
|
221
|
+
- lib/db_schema/definitions/index/column.rb
|
222
|
+
- lib/db_schema/definitions/index/expression.rb
|
223
|
+
- lib/db_schema/definitions/index/table_field.rb
|
224
|
+
- lib/db_schema/definitions/schema.rb
|
225
|
+
- lib/db_schema/definitions/table.rb
|
216
226
|
- lib/db_schema/dsl.rb
|
227
|
+
- lib/db_schema/dsl/migration.rb
|
228
|
+
- lib/db_schema/migration.rb
|
229
|
+
- lib/db_schema/migrator.rb
|
217
230
|
- lib/db_schema/normalizer.rb
|
231
|
+
- lib/db_schema/operations.rb
|
218
232
|
- lib/db_schema/reader.rb
|
219
233
|
- lib/db_schema/runner.rb
|
220
234
|
- lib/db_schema/utils.rb
|
@@ -235,9 +249,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
235
249
|
version: '0'
|
236
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
251
|
requirements:
|
238
|
-
- - "
|
252
|
+
- - ">"
|
239
253
|
- !ruby/object:Gem::Version
|
240
|
-
version:
|
254
|
+
version: 1.3.1
|
241
255
|
requirements: []
|
242
256
|
rubyforge_project:
|
243
257
|
rubygems_version: 2.5.2
|