migsql 1.1.3 → 1.1.4

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
  SHA1:
3
- metadata.gz: b69fd973f7f0ae71bfdc9151aa1be701c99cfbf2
4
- data.tar.gz: f610ed6e2ccbf164246394b7fa88ec8105bf962e
3
+ metadata.gz: 14e6bb1a65fc1946acc2bf9fef9985e6d2a0689f
4
+ data.tar.gz: 6a6a2ee288e7d6209db8bc056fd0f725688267db
5
5
  SHA512:
6
- metadata.gz: aad4840c155cf9b05f5c709977a799281187022fb1006be07d1a1ea3bbd0c22bb9edcab4c71bcf552622b53d7e6de19077714a8bab08aa27bffb2fb14ca9a8df
7
- data.tar.gz: 845af8ac8995d0c84e2e4fbf90df26d8ba99338db8ac99180174d5d407ec34e11f7905467d814cce43e6e42df12285cf0e10e6446be9c34de0254bd1509652db
6
+ metadata.gz: 1891f297e4a680ef9b9e99f7c9470fd28b7326c2fc2da2a279ad97abe22b7d70de0086a6bebda0c6974d6022974b89138a2ac8d92a3dfc09f6d4d64e870f7832
7
+ data.tar.gz: a42bee77948295fe1aa7c4013a895655fe4631fbb8f71420ba3a5a955089c29375c18aa0e6e8faae9500055da0887bbc98e2abfeefe642da71c90e3773efdfb3
data/lib/migsql/app.rb CHANGED
@@ -36,7 +36,7 @@ class MigSql
36
36
  migration_server = get_migration_server(argv[4])
37
37
  migration_name = get_migration_target(migration_server, argv[1])
38
38
  return if migration_name.nil?
39
- migration_name = "#{migration_name}_#{argv[2]}.sql"
39
+ migration_name = "db/#{migration_server}/#{migration_name}_#{argv[2]}.sql"
40
40
  @migration.apply_migration(migration_server, migration_name)\
41
41
  unless migration_server.nil? || migration_name.nil?
42
42
  end
@@ -69,6 +69,6 @@ class SqlServer
69
69
  def apply_migration(path)
70
70
  client = get_client
71
71
  sql = File.read(path)
72
- client.execute(sql)
72
+ client.execute(sql).each
73
73
  end
74
74
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: migsql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Stoney