tapsoob 0.3.13-java → 0.3.14-java

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: cb8a00a3e0e55eebdd6fe0fadd07b36f728f6e7339484ca1dafe33672e08d72a
4
- data.tar.gz: 61e763aae7ca21507d9558f652f1ed600dcce77bf53b1b72ceff81990b9b2d85
3
+ metadata.gz: b603f0745ce072e4794e745abe8f372df0f6632aaef4e8a3a0918773ee85f0dc
4
+ data.tar.gz: dc2f5837094c55a142957f0a5a32443a80198cb3dd709186d94afd4f09849d28
5
5
  SHA512:
6
- metadata.gz: 8fa22198dfbfbcfb103e7f217a83f6bb7160280d38ecca7fb595573563ac2ebc243a39fa63cd97d67422e08d38cb602b84544db74d6817e415e185e980fad3a5
7
- data.tar.gz: 60c9d09e6218b649793a79b38ef521938dade0c4dc072864cd0fc37bbc9aeb46a9d9f6631cf98f2f8e9b7ccf2c7f53b6aed7b4cb6549cd7f20bff33047e7001c
6
+ metadata.gz: f7eb3cf9383f59b0609a03e153857e628b6fd03f9bc0db7bdf74c5363c26c6e8729040ea7292495b97f0e67ac132b867d51b25dbfc8a4320af832a7da947130f
7
+ data.tar.gz: a28a0568eb91932fe6d1a0c37a92d3a33bbbff8b061b260f4f71a3602bceeeb287253d505f843c83b17047c82bff5b96cefe366985a9ffab787023d046238f43
@@ -84,7 +84,16 @@ END_MIG
84
84
  Sequel.connect(database_url) do |db|
85
85
  db.extension :schema_dumper
86
86
  klass = eval(schema)
87
- klass.apply(db, :down) if options[:drop]
87
+ if options[:drop]
88
+ # Start special hack for MySQL
89
+ db.run("SET foreign_key_checks = 0") if [:mysql, :mysql2].include?(db.adapter_scheme)
90
+
91
+ # Run down migration
92
+ klass.apply(db, :down)
93
+
94
+ # End special hack for MySQL
95
+ db.run("SET foreign_key_checks = 1") if [:mysql, :mysql2].include?(db.adapter_scheme)
96
+ end
88
97
  klass.apply(db, :up)
89
98
  end
90
99
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.3.13".freeze
3
+ VERSION = "0.3.14".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapsoob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.13
4
+ version: 0.3.14
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-03-27 00:00:00.000000000 Z
12
+ date: 2020-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement