strong_migrations 0.6.0 → 0.6.1

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: 858552e31803f119fa4df371348a710c20db26107ad55f66a553192fddefac47
4
- data.tar.gz: a7646d2969c0051e9362103b037f6e46d0a878d521aa63e7811b5b23818cdb64
3
+ metadata.gz: 1582962294cb36c9572db9c0d3a2e5f69cba1877a436d2398451805ec1ebf47d
4
+ data.tar.gz: e6b923b652f75aa8d83183b963e98a39c6706b6287406858e782554a9374921e
5
5
  SHA512:
6
- metadata.gz: 3127959b63c1f846a3bd4caf213fa1edc52ad3dc5fdec3d45fde1ffb8028f5e0a2c5b3fb4db2a696ffb26862262d2e866acc2ccb1eba80600fea2e5c16b43f22
7
- data.tar.gz: 14a4fc2f946cfa05bfe86b2fcc390633691c354495f83eb9382ec8a0dfad7be0b72c1fdf813ea76522981b73336d2cd3cf15d2b3bd5a8004eed3d87d5b7e0327
6
+ metadata.gz: 44d7cd56ccec5832637a577c885ec6975f8824d177e7ddd03e02a7721afce687f554782714cddd02e4fcee7c2af2a74dbd95b3a65f27ef39a0a7c5cd3d484bdd
7
+ data.tar.gz: b5139304f500b21c0da482ee19b31408215b2e975f5be0036f2c24084bd704a885aaf8d3c10e2bbfe652bb6b31b8c3f5efad94cba2909f98312f8057f9bc8e0f
@@ -1,3 +1,7 @@
1
+ ## 0.6.1 (2020-01-28)
2
+
3
+ - Fixed timeouts for PostgreSQL
4
+
1
5
  ## 0.6.0 (2020-01-24)
2
6
 
3
7
  - Added `statement_timeout` and `lock_timeout`
@@ -212,7 +212,7 @@ Then add the NOT NULL constraint."
212
212
  if StrongMigrations.statement_timeout
213
213
  statement =
214
214
  if postgresql?
215
- "SET statement_timeout TO #{connection.quote(StrongMigrations.statement_timeout)}"
215
+ "SET statement_timeout TO #{connection.quote(StrongMigrations.statement_timeout.to_i * 1000)}"
216
216
  elsif mysql?
217
217
  "SET max_execution_time = #{connection.quote(StrongMigrations.statement_timeout.to_i * 1000)}"
218
218
  elsif mariadb?
@@ -227,7 +227,7 @@ Then add the NOT NULL constraint."
227
227
  if StrongMigrations.lock_timeout
228
228
  statement =
229
229
  if postgresql?
230
- "SET lock_timeout TO #{connection.quote(StrongMigrations.lock_timeout)}"
230
+ "SET lock_timeout TO #{connection.quote(StrongMigrations.lock_timeout.to_i * 1000)}"
231
231
  elsif mysql? || mariadb?
232
232
  "SET lock_wait_timeout = #{connection.quote(StrongMigrations.lock_timeout)}"
233
233
  else
@@ -1,3 +1,3 @@
1
1
  module StrongMigrations
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-01-24 00:00:00.000000000 Z
13
+ date: 2020-01-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord