caboose-cms 0.2.97 → 0.2.98
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/utilities/schema.rb +7 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTllOTM4NTc2MzRmMjczYjE2Mzk5ZTRhZTc0ODM5ZTBiNjc1YjY5OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmIwNzdmZmRiMWEzNTc2YmU2NTQ5NmI2MGQzMjMxMjk0MzE4OTIzMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGMxNGMyYmQwMDQ4ODAxM2VlNWI3NzE0OWY1MjQ2YzVlNDA2NTJjZDVmMTAw
|
10
|
+
N2UzYzFkYzE4NjdmZDZhYTg0OTdkOTJlNDA1Yzc1MzJlZTQ1MTNlMzYwM2Nh
|
11
|
+
MzExNDRmM2E2MjE5M2U4ZjdmNjg0YzJmYjVmNjg0MzUwZTIwZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTVlZTVlYTlhNThmNjg1YTI3NzRiOWMyYWZiOGQzMzFiOWI0OGJmMTliNTRl
|
14
|
+
ODQ2MTE4Y2M4ZjgyZGZkOTJkYmQxM2ViYmFmMTVjZDUxYWZlZjVhYjNiMjI3
|
15
|
+
NWRjZDYwOTFkYWI0ZGFlM2ZmZDk1YjBlMTgwMWI4NzkxM2NlNWQ=
|
@@ -50,7 +50,7 @@ class Caboose::Utilities::Schema
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# Column exists, but not with the correct data type, try to change it
|
53
|
-
else
|
53
|
+
else
|
54
54
|
|
55
55
|
# Add a temp column
|
56
56
|
if col.count > 2
|
@@ -75,12 +75,16 @@ class Caboose::Utilities::Schema
|
|
75
75
|
|
76
76
|
# Remove the old column and rename the new one
|
77
77
|
c.remove_column tbl, col[0]
|
78
|
-
c.rename_column tbl, "#{col[0]}_temp", col[0]
|
78
|
+
c.rename_column tbl, "#{col[0]}_temp", col[0]
|
79
79
|
|
80
80
|
end
|
81
81
|
end
|
82
|
-
end
|
82
|
+
end
|
83
83
|
create_indexes
|
84
|
+
|
85
|
+
self.schema.each do |model, columns|
|
86
|
+
model.reset_column_information
|
87
|
+
end
|
84
88
|
end
|
85
89
|
|
86
90
|
# Verifies (non-destructively) that the given indexes exist in the database.
|
data/lib/caboose/version.rb
CHANGED