schema-evolution-manager 0.9.47 → 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: ed6b170d492bc54dae6e23bec8915bc63ee60cf623cc58d7fe501513e5ac51cb
4
- data.tar.gz: d8cc588c9fdbf909b7f74d0caf5733f2e19fb42904ed5162e884fdca07e520a4
3
+ metadata.gz: c1ebef51ccd28b9694b2799876ecaa9e6f79fb9dcfa69ddd12359c363a44154e
4
+ data.tar.gz: 821166a2c3237ccf910b6c4f434f425040bbc73d20b7209eba6aae5232814346
5
5
  SHA512:
6
- metadata.gz: c49a71d7e017ba6a8a2b16dc817e7e02df007e2f715a102daf9d291beb9085145d5ec2fd9da1f769c169df7aef8bdec968d7bda3ce597bf61ec2f9efdac6a4af
7
- data.tar.gz: 0b7fafcd88dab54fbdfab0bed71763c5c2cfc206514f78bbf25e73cc687f6882282b102729958b90b0775ebce993d2fb0a95c80d78545af606d8b7ab299b10b9
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.47
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 = timezone('utc', now())::timestamptz;
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.47
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: 2023-01-26 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