schema-evolution-manager 0.9.48 → 0.9.50

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
  SHA256:
3
- metadata.gz: 58e86f551aece63467cc6d3ec7ac74480c090ab1c77ad6f0268854ca85025fde
4
- data.tar.gz: cb65ffe76d6fc722bcca3278fa2a9373dccb21e4e77b66309bef3dbe5efb29dd
3
+ metadata.gz: c1ebef51ccd28b9694b2799876ecaa9e6f79fb9dcfa69ddd12359c363a44154e
4
+ data.tar.gz: 821166a2c3237ccf910b6c4f434f425040bbc73d20b7209eba6aae5232814346
5
5
  SHA512:
6
- metadata.gz: ae7d0c49249b5a955b7c682cdcb71f7852d94f6ee05bd8efb296225c1c97da03002f9609fa6b5f24aaaf1493d6cbd0878cf11337fd9b6781203f2911a4c50006
7
- data.tar.gz: 809ee6619f8206da240bc931cded77a7865a6ad744a744f47447abb32486df6677480149b59da3fa1e33b7752a3303f250f1c8b29349eb5569a42956fd565098
6
+ metadata.gz: dc1295f1c05354de9f8f85bc00691773433cfd25bc398776343970110d0de9c0305d1bd939a1b8b380da75d0aaba995a481183cc50b5e7f61430da315770990a
7
+ data.tar.gz: f2c776e3ea0b813d1db1b8aa12331fa06ffe6b7a033f2647d4dc4f17cbd7c2b475939e562542244b7ffb4006188b7b45a1c821ea619694e487442638c8436a3b
data/README.md CHANGED
@@ -133,7 +133,7 @@ There are three ways to install schema evolution manager:
133
133
 
134
134
  git clone git@github.com:mbryzek/schema-evolution-manager.git
135
135
  cd schema-evolution-manager
136
- git checkout 0.9.48
136
+ git checkout 0.9.50
137
137
  ruby ./configure.rb
138
138
  sudo ./install.rb
139
139
 
@@ -21,9 +21,23 @@ module SchemaEvolutionManager
21
21
  Preconditions.check_state(File.directory?(dir),
22
22
  "Dir[%s] does not exist" % dir)
23
23
 
24
- count = 0
24
+ pending_scripts = []
25
25
  @scripts.each_pending(dir) do |filename, path|
26
- count += 1
26
+ pending_scripts << [filename, path]
27
+ end
28
+
29
+ if pending_scripts.size > 1 && !@dry_run
30
+ puts "Please confirm that you would like to apply all (#{pending_scripts.size}) of the pending scripts:"
31
+ pending_scripts.each do |filename, path|
32
+ puts " #{filename}"
33
+ end
34
+ continue = SchemaEvolutionManager::Ask.for_boolean("Continue?")
35
+ if !continue
36
+ return 0
37
+ end
38
+ end
39
+
40
+ pending_scripts.each do |filename, path|
27
41
  if @dry_run
28
42
  puts "[DRY RUN] Applying #{filename}"
29
43
  puts path
@@ -35,7 +49,7 @@ module SchemaEvolutionManager
35
49
  puts " Done"
36
50
  end
37
51
  end
38
- count
52
+ pending_scripts.size
39
53
  end
40
54
 
41
55
  end
@@ -84,7 +84,7 @@ CREATE OR REPLACE FUNCTION set_updated_at_trigger_function() RETURNS trigger
84
84
  AS $$
85
85
  begin
86
86
  if (new.updated_at = old.updated_at) then
87
- new.updated_at = now();;
87
+ new.updated_at = now();
88
88
  end if;
89
89
  return new;
90
90
  end;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema-evolution-manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.48
4
+ version: 0.9.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bryzek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-01 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: '["Michael Bryzek"]'
14
14
  email: mbryzek@alum.mit.edu