caboose-cms 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/models/caboose/schema.rb +3 -3
- data/app/models/caboose/utilities/schema.rb +1 -0
- 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
|
+
ZWE5ZmYyYjlkZmJlNjI4NzYxMmFiODUyZWNjYWUyYmI3NTg1MDI4Yw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Y2UzN2VjMDMxZTg1ZjQ1N2I3YzhhNjg4NDBhYWI5NmVmMGUxNmI1ZQ==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
OTIwYmE3NmU1ZDA4NDkyODUwMTM3OTNlZWUzMDIwYTRkODE3ZWM4NDJlZGI0
|
|
10
|
+
YzJlOWQzZDVlNjk0MTM5ZDAyZGE1ZDgwYjIwM2NmN2U0ZmNjYjk1ODZlNGYy
|
|
11
|
+
NDY1NGQ0OGY5OGM4N2VkNzVmM2VlZWJhYjExNjJmYzA3NjE2OTQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NjJiOGMyZTIxYjI5MDY2MmQyNjVlOGZlOTk5MjYwY2Y4Y2UwNjY2YzYwNTA2
|
|
14
|
+
YTYyMDc3NDUyNzRmZjcwZGU0MGJiZjdhMmI0MmU3NDlmMzE1NDdjZDdjYjk2
|
|
15
|
+
NjJjYmE0MzBlM2FmYjNjOTRkMzU2NzcwYWQxZmU1ZTJhNmRmZjI=
|
|
@@ -246,13 +246,13 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
|
246
246
|
|
|
247
247
|
if !Caboose::BlockType.where(:name => 'heading').exists?
|
|
248
248
|
bt = Caboose::BlockType.create(:name => 'heading', :description => 'Heading')
|
|
249
|
-
Caboose::
|
|
250
|
-
Caboose::
|
|
249
|
+
Caboose::BlockType.create(:parent_id => bt.id, :name => 'text', :field_type => 'text', :description => 'Text', :default => '', :width => 800, :fixed_placeholder => false)
|
|
250
|
+
Caboose::BlockType.create(:parent_id => bt.id, :name => 'size', :field_type => 'text', :description => 'Size', :default => 1, :width => 800, :fixed_placeholder => false, :options => "1|2|3|4|5|6")
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
if !Caboose::BlockType.where(:name => 'richtext').exists?
|
|
254
254
|
bt = Caboose::BlockType.create(:name => 'richtext', :description => 'Rich Text')
|
|
255
|
-
Caboose::
|
|
255
|
+
Caboose::BlockType.create(:parent_id => bt.id, :name => 'text', :field_type => 'richtext', :description => 'Text', :default => '', :width => 800, :height => 400, :fixed_placeholder => false)
|
|
256
256
|
end
|
|
257
257
|
|
|
258
258
|
admin_user = nil
|
|
@@ -121,6 +121,7 @@ class Caboose::Utilities::Schema
|
|
|
121
121
|
return if self.removed_columns.nil?
|
|
122
122
|
c = ActiveRecord::Base.connection
|
|
123
123
|
self.removed_columns.each do |model, columns|
|
|
124
|
+
next if !c.table_exists?(model.table_name)
|
|
124
125
|
columns.each do |col|
|
|
125
126
|
c.remove_column model.table_name, col if c.column_exists?(model.table_name, col)
|
|
126
127
|
end
|
data/lib/caboose/version.rb
CHANGED