sequel_tools 0.1.7 → 0.1.8
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.
- checksums.yaml +4 -4
- data/lib/sequel_tools.rb +1 -0
- data/lib/sequel_tools/actions/migrate.rb +1 -0
- data/lib/sequel_tools/migration_utils.rb +1 -0
- data/lib/sequel_tools/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17bb9b0da66eb5b99c648c41d902e56e2cb93348d7a1b50d6ab447bfab0cabe8
|
|
4
|
+
data.tar.gz: 2c066a0179cd2a67127cca5812cc37abb40b02b63ceef28186376540ec2798fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3f10ee727d2b6ae3b8a3b7c0ead5947817fa6f6b9238d3c7708553534936c303bd09665a45519ff4b6cf0041f64c348b5eb117267d22b24b814cb21c8f33057
|
|
7
|
+
data.tar.gz: 65493ac56d38975f0857a0db28007fd06036c668a035e7de6e1694902025ea2df77d4b6b3e0f82a18115cf77684cd6451035a3d7c71174296b98ef4987be928a
|
data/lib/sequel_tools.rb
CHANGED
|
@@ -20,6 +20,7 @@ module SequelTools
|
|
|
20
20
|
dump_schema_on_migrate: false,
|
|
21
21
|
log_level: nil,
|
|
22
22
|
sql_log_level: :debug,
|
|
23
|
+
migrations_table: nil,
|
|
23
24
|
} # unfrozen on purpose so that one might want to update the defaults
|
|
24
25
|
|
|
25
26
|
REQUIRED_KEYS = [ :project_root, :dbadapter, :dbname, :username ]
|
|
@@ -12,6 +12,7 @@ class SequelTools::ActionsManager
|
|
|
12
12
|
Sequel.extension :migration unless Sequel.respond_to? :migration
|
|
13
13
|
options = {}
|
|
14
14
|
options[:target] = args[:version].to_i if args[:version]
|
|
15
|
+
options[:table] = config[:migrations_table] if config[:migrations_table]
|
|
15
16
|
Sequel::Migrator.run db, config[:migrations_location], options
|
|
16
17
|
Action[:schema_dump].run({}, context) if config[:dump_schema_on_migrate]
|
|
17
18
|
end
|
|
@@ -22,6 +22,7 @@ class MigrationUtils
|
|
|
22
22
|
options = { allow_missing_migration_files: true }
|
|
23
23
|
options[:target] = 0 if direction == :down
|
|
24
24
|
config = context[:config]
|
|
25
|
+
options[:table] = config[:migrations_table] if config[:migrations_table]
|
|
25
26
|
Sequel::Migrator.migrator_class(config[:migrations_location]).
|
|
26
27
|
new(context[:db], config[:migrations_location], options)
|
|
27
28
|
end
|
data/lib/sequel_tools/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel_tools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rodrigo Rosenfeld Rosas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sequel
|
|
@@ -154,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
155
|
version: '0'
|
|
156
156
|
requirements: []
|
|
157
|
-
|
|
158
|
-
rubygems_version: 2.7.6
|
|
157
|
+
rubygems_version: 3.2.3
|
|
159
158
|
signing_key:
|
|
160
159
|
specification_version: 4
|
|
161
160
|
summary: Add Rake tasks to manage Sequel migrations
|