blue-shift 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blueshift/version.rb +1 -1
- data/lib/sequel/extensions/schema_dumper_ext.rb +3 -1
- data/lib/tasks/schema.rake +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f08f528b72fb07122fc5ad99a01f63c2c7a9ceae
|
4
|
+
data.tar.gz: e8e92411017effb0f76ce135ff5852e0ebfddc04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94a782bf567eace61d3538e18ff461c6668ad5dd31d5e0e9ab95949edd07eb79b9a721f5774dfbe5085629271e8561eacf8f25aefe4037c398997a2b77616dc1
|
7
|
+
data.tar.gz: f6c9574934c71434abeb1e368ad67f011fa9d79d41775d573459f200962ad598b4a65221d7cd3110629afdf164a30db012e2a81320d23ca608db3f379fa46692
|
data/lib/blueshift/version.rb
CHANGED
@@ -11,7 +11,9 @@ module Sequel
|
|
11
11
|
def column_schema_to_ruby_type(schema)
|
12
12
|
case schema[:db_type].downcase
|
13
13
|
when 'uuid'
|
14
|
-
{type: :uuid}
|
14
|
+
{ type: :uuid }
|
15
|
+
when /char(?:acter)?\(36\)/
|
16
|
+
{ type: Suuid }
|
15
17
|
else
|
16
18
|
column_schema_to_ruby_type_without_uuid(schema)
|
17
19
|
end
|
data/lib/tasks/schema.rake
CHANGED
@@ -32,7 +32,7 @@ namespace :pg do
|
|
32
32
|
task :migrate do
|
33
33
|
Blueshift::POSTGRES_DB.logger = logger
|
34
34
|
Blueshift::Migration.run_pg!
|
35
|
-
|
35
|
+
Rake::Task['pg:schema:dump'].invoke
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
@@ -59,17 +59,14 @@ namespace :redshift do
|
|
59
59
|
task :migrate do
|
60
60
|
Blueshift::REDSHIFT_DB.logger = logger
|
61
61
|
Blueshift::Migration.run_redshift!
|
62
|
-
|
62
|
+
Rake::Task['redshift:schema:dump'].invoke
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
66
|
namespace :blueshift do
|
67
|
-
desc 'Runs migrations for both Postgres and Redshift'
|
67
|
+
desc 'Runs migrations for both Postgres and Redshift. Not really that useful most of the time...'
|
68
68
|
task :migrate => ['pg:migrate', 'redshift:migrate'] do
|
69
69
|
puts 'Running migrations for Postgres and Redshift...', ''
|
70
70
|
end
|
71
|
-
|
72
|
-
desc 'dummy'
|
73
|
-
task(:dummy) {}
|
74
71
|
end
|
75
72
|
|