sequel_tools 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sequel_tools/actions/schema_dump_postgres.rb +5 -2
- data/lib/sequel_tools/version.rb +1 -1
- data/lib/sequel_tools.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3668a069d02fe15d3bb54d054ad64dd0eab240ba4f6e65023aa8a6f92b3008cf
|
4
|
+
data.tar.gz: '019eefc9bf0565c54126fd54670da7623094a133dcddf34cbcaf75498f282c9e'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf9dcaa9cea96bbcec7afaf439e9b32d95baa36181769dd0a954e9a7da25a4f04594483757aedea620bd1fd2899e83d4553682c3e6e193e7463dc26615db03af
|
7
|
+
data.tar.gz: ef6078623ab39f8d58f78c1f836b08081b4c4ab1b94981cf9fea6d3a47efb7d1c887af77d381e55c9c79f8d9f9dcf695c401eec1a14906612f57b15a04c84885
|
@@ -15,8 +15,11 @@ class SequelTools::ActionsManager
|
|
15
15
|
migrations_table = c[:migrations_table]
|
16
16
|
if (migrations_table ? content.include?(migrations_table) :
|
17
17
|
(content =~ /schema_(migrations|info)/))
|
18
|
-
|
19
|
-
'
|
18
|
+
include_tables = migrations_table ? [migrations_table] :
|
19
|
+
['schema_migrations', 'schema_info']
|
20
|
+
extra_tables = c[:extra_tables_in_dump]
|
21
|
+
include_tables.concat extra_tables if extra_tables
|
22
|
+
table_options = include_tables.map{|t| "-t #{t}"}.join(' ')
|
20
23
|
stdout, stderr, success =
|
21
24
|
PgHelper.run_pg_command c, "#{pg_dump} -a #{table_options} --inserts"
|
22
25
|
unless success
|
data/lib/sequel_tools/version.rb
CHANGED
data/lib/sequel_tools.rb
CHANGED
@@ -21,6 +21,7 @@ module SequelTools
|
|
21
21
|
log_level: nil,
|
22
22
|
sql_log_level: :debug,
|
23
23
|
migrations_table: nil,
|
24
|
+
extra_tables_in_dump: nil,
|
24
25
|
} # unfrozen on purpose so that one might want to update the defaults
|
25
26
|
|
26
27
|
REQUIRED_KEYS = [ :project_root, :dbadapter, :dbname, :username ]
|