bitrix_on_rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/test/get_dump.sh ADDED
@@ -0,0 +1 @@
1
+ mysqldump -u root kamin_icf1 b_iblock > dump.sql
data/test/helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- coding: utf-8 -*-
1
2
  require 'rubygems'
2
3
  require 'bundler'
3
4
  begin
@@ -7,12 +8,51 @@ rescue Bundler::BundlerError => e
7
8
  $stderr.puts "Run `bundle install` to install missing gems"
8
9
  exit e.status_code
9
10
  end
10
- require 'test/unit'
11
+ # require 'test/unit'
12
+ # require "test/unit/notify"
13
+ # require "test/unit/rr"
14
+
11
15
  require 'shoulda'
12
16
 
13
17
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
18
+ # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'app','models'))
14
19
  $LOAD_PATH.unshift(File.dirname(__FILE__))
20
+
15
21
  require 'bitrix_on_rails'
16
22
 
23
+ # Модели
24
+ #
25
+ Dir.glob('./app/models/*.rb').each { |file| require file }
26
+ # require 'iblock'
27
+ # require 'iblock_type'
28
+
29
+
30
+ ActiveRecord::Base.establish_connection(
31
+ :adapter => 'sqlite3',
32
+ :database => ":memory:"
33
+ )
34
+
35
+ require 'schema'
36
+
37
+ Iblock.new do |i|
38
+ i.id = 3
39
+ i.version = 2
40
+ i.name = 'Свойство блога'
41
+ i.timestamp_x = Time.now
42
+ i.iblock_type = IblockType.create
43
+ i.lid = 'lid'
44
+ i.save
45
+ end
46
+
47
+ Iblock.new do |i|
48
+ i.id = 7
49
+ i.version = 2
50
+ i.name = 'Эмитенты'
51
+ i.timestamp_x = Time.now
52
+ i.iblock_type = IblockType.create
53
+ i.lid = 'lid'
54
+ i.save
55
+ end
56
+
17
57
  class Test::Unit::TestCase
18
58
  end
data/test/schema.rb ADDED
@@ -0,0 +1,1431 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended to check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(:version => 20110725170841) do
14
+ create_table "b_blog_post", :force => true do |t|
15
+ t.string "title", :null => false
16
+ t.integer "blog_id", :null => false
17
+ t.integer "author_id", :null => false
18
+ t.text "preview_text"
19
+ t.string "preview_text_type", :limit => 4, :default => "text", :null => false
20
+ t.text "detail_text", :null => false
21
+ t.string "detail_text_type", :limit => 4, :default => "text", :null => false
22
+ t.datetime "date_create", :null => false
23
+ t.datetime "date_publish", :null => false
24
+ t.string "keywords"
25
+ t.string "publish_status", :limit => 1, :default => "P", :null => false
26
+ t.string "category_id", :limit => 100
27
+ t.string "atribute"
28
+ t.string "enable_trackback", :limit => 1, :default => "Y", :null => false
29
+ t.string "enable_comments", :limit => 1, :default => "Y", :null => false
30
+ t.integer "attach_img"
31
+ t.integer "num_comments", :default => 0, :null => false
32
+ t.integer "num_trackbacks", :default => 0, :null => false
33
+ t.integer "views"
34
+ t.integer "favorite_sort"
35
+ t.string "path"
36
+ t.string "code"
37
+ t.integer "uniqueness"
38
+ t.string "image"
39
+ end
40
+
41
+ create_table "b_iblock", :force => true do |t|
42
+ t.timestamp "timestamp_x", :null => false
43
+ t.string "iblock_type_id", :limit => 50, :null => false
44
+ t.string "lid", :limit => 2, :null => false
45
+ t.string "code", :limit => 50
46
+ t.string "name", :null => false
47
+ t.string "active", :limit => 1, :default => "Y", :null => false
48
+ t.integer "sort", :default => 500, :null => false
49
+ t.string "list_page_url"
50
+ t.string "detail_page_url"
51
+ t.string "section_page_url"
52
+ t.integer "picture"
53
+ t.text "description"
54
+ t.string "description_type", :limit => 4, :default => "text", :null => false
55
+ t.integer "rss_ttl", :default => 24, :null => false
56
+ t.string "rss_active", :limit => 1, :default => "Y", :null => false
57
+ t.string "rss_file_active", :limit => 1, :default => "N", :null => false
58
+ t.integer "rss_file_limit"
59
+ t.integer "rss_file_days"
60
+ t.string "rss_yandex_active", :limit => 1, :default => "N", :null => false
61
+ t.string "xml_id"
62
+ t.string "tmp_id", :limit => 40
63
+ t.string "index_element", :limit => 1, :default => "Y", :null => false
64
+ t.string "index_section", :limit => 1, :default => "N", :null => false
65
+ t.string "workflow", :limit => 1, :default => "Y", :null => false
66
+ t.string "section_chooser", :limit => 1
67
+ t.integer "version", :default => 1, :null => false
68
+ t.integer "last_conv_element", :default => 0, :null => false
69
+ t.string "edit_file_before"
70
+ t.string "edit_file_after"
71
+ t.string "sections_name", :limit => 100
72
+ t.string "section_name", :limit => 100
73
+ t.string "elements_name", :limit => 100
74
+ t.string "element_name", :limit => 100
75
+ t.string "bizproc", :limit => 1, :default => "N", :null => false
76
+ t.string "list_mode", :limit => 1
77
+ t.integer "socnet_group_id"
78
+ end
79
+
80
+ add_index "b_iblock", ["IBLOCK_TYPE_ID", "LID", "ACTIVE"], :name => "ix_iblock"
81
+
82
+ create_table "b_iblock_cache", :primary_key => "cache_key", :force => true do |t|
83
+ t.text "cache", :limit => 2147483647
84
+ t.datetime "cache_date", :null => false
85
+ end
86
+
87
+ create_table "b_iblock_element", :force => true do |t|
88
+ t.datetime "timestamp_x"
89
+ t.integer "modified_by"
90
+ t.datetime "date_create"
91
+ t.integer "created_by"
92
+ t.integer "iblock_id", :default => 0, :null => false
93
+ t.integer "iblock_section_id"
94
+ t.string "active", :limit => 1, :default => "Y", :null => false
95
+ t.datetime "active_from"
96
+ t.datetime "active_to"
97
+ t.integer "sort", :default => 500, :null => false
98
+ t.string "name", :null => false
99
+ t.integer "preview_picture"
100
+ t.text "preview_text"
101
+ t.string "preview_text_type", :limit => 4, :default => "text", :null => false
102
+ t.integer "detail_picture"
103
+ t.text "detail_text", :limit => 2147483647
104
+ t.string "detail_text_type", :limit => 4, :default => "text", :null => false
105
+ t.text "searchable_content"
106
+ t.integer "wf_status_id", :default => 1
107
+ t.integer "wf_parent_element_id"
108
+ t.string "wf_new", :limit => 1
109
+ t.integer "wf_locked_by"
110
+ t.datetime "wf_date_lock"
111
+ t.text "wf_comments"
112
+ t.string "in_sections", :limit => 1, :default => "N", :null => false
113
+ t.string "xml_id"
114
+ t.string "code"
115
+ t.string "tags"
116
+ t.string "tmp_id", :limit => 40
117
+ t.integer "wf_last_history_id"
118
+ t.integer "show_counter"
119
+ t.datetime "show_counter_start"
120
+ end
121
+
122
+ add_index "b_iblock_element", ["IBLOCK_ID", "IBLOCK_SECTION_ID"], :name => "ix_iblock_element_1"
123
+ add_index "b_iblock_element", ["IBLOCK_ID", "XML_ID", "WF_PARENT_ELEMENT_ID"], :name => "ix_iblock_element_4"
124
+ add_index "b_iblock_element", ["WF_PARENT_ELEMENT_ID"], :name => "ix_iblock_element_3"
125
+
126
+ create_table "b_iblock_element_lock", :primary_key => "iblock_element_id", :force => true do |t|
127
+ t.datetime "date_lock"
128
+ t.string "locked_by", :limit => 32
129
+ end
130
+
131
+ create_table "b_iblock_element_prop_m11", :force => true do |t|
132
+ t.integer "iblock_element_id", :null => false
133
+ t.integer "iblock_property_id", :null => false
134
+ t.text "value", :null => false
135
+ t.integer "value_enum"
136
+ t.decimal "value_num", :precision => 18, :scale => 4
137
+ t.string "description"
138
+ end
139
+
140
+ add_index "b_iblock_element_prop_m11", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m11_1"
141
+ add_index "b_iblock_element_prop_m11", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m11_2"
142
+ add_index "b_iblock_element_prop_m11", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m11_3"
143
+
144
+ create_table "b_iblock_element_prop_m12", :force => true do |t|
145
+ t.integer "iblock_element_id", :null => false
146
+ t.integer "iblock_property_id", :null => false
147
+ t.text "value", :null => false
148
+ t.integer "value_enum"
149
+ t.decimal "value_num", :precision => 18, :scale => 4
150
+ t.string "description"
151
+ end
152
+
153
+ add_index "b_iblock_element_prop_m12", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m12_1"
154
+ add_index "b_iblock_element_prop_m12", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m12_2"
155
+ add_index "b_iblock_element_prop_m12", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m12_3"
156
+
157
+ create_table "b_iblock_element_prop_m16", :force => true do |t|
158
+ t.integer "iblock_element_id", :null => false
159
+ t.integer "iblock_property_id", :null => false
160
+ t.text "value", :null => false
161
+ t.integer "value_enum"
162
+ t.decimal "value_num", :precision => 18, :scale => 4
163
+ t.string "description"
164
+ end
165
+
166
+ add_index "b_iblock_element_prop_m16", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m16_1"
167
+ add_index "b_iblock_element_prop_m16", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m16_2"
168
+ add_index "b_iblock_element_prop_m16", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m16_3"
169
+
170
+ create_table "b_iblock_element_prop_m18", :force => true do |t|
171
+ t.integer "iblock_element_id", :null => false
172
+ t.integer "iblock_property_id", :null => false
173
+ t.text "value", :null => false
174
+ t.integer "value_enum"
175
+ t.decimal "value_num", :precision => 18, :scale => 4
176
+ t.string "description"
177
+ end
178
+
179
+ add_index "b_iblock_element_prop_m18", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m18_1"
180
+ add_index "b_iblock_element_prop_m18", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m18_2"
181
+ add_index "b_iblock_element_prop_m18", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m18_3"
182
+
183
+ create_table "b_iblock_element_prop_m19", :force => true do |t|
184
+ t.integer "iblock_element_id", :null => false
185
+ t.integer "iblock_property_id", :null => false
186
+ t.text "value", :null => false
187
+ t.integer "value_enum"
188
+ t.decimal "value_num", :precision => 18, :scale => 4
189
+ t.string "description"
190
+ end
191
+
192
+ add_index "b_iblock_element_prop_m19", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m19_1"
193
+ add_index "b_iblock_element_prop_m19", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m19_2"
194
+ add_index "b_iblock_element_prop_m19", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m19_3"
195
+
196
+ create_table "b_iblock_element_prop_m2", :force => true do |t|
197
+ t.integer "iblock_element_id", :null => false
198
+ t.integer "iblock_property_id", :null => false
199
+ t.text "value", :null => false
200
+ t.integer "value_enum"
201
+ t.decimal "value_num", :precision => 18, :scale => 4
202
+ t.string "description"
203
+ end
204
+
205
+ add_index "b_iblock_element_prop_m2", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m2_1"
206
+ add_index "b_iblock_element_prop_m2", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m2_2"
207
+ add_index "b_iblock_element_prop_m2", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m2_3"
208
+
209
+ create_table "b_iblock_element_prop_m21", :force => true do |t|
210
+ t.integer "iblock_element_id", :null => false
211
+ t.integer "iblock_property_id", :null => false
212
+ t.text "value", :null => false
213
+ t.integer "value_enum"
214
+ t.decimal "value_num", :precision => 18, :scale => 4
215
+ t.string "description"
216
+ end
217
+
218
+ add_index "b_iblock_element_prop_m21", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m21_1"
219
+ add_index "b_iblock_element_prop_m21", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m21_2"
220
+ add_index "b_iblock_element_prop_m21", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m21_3"
221
+
222
+ create_table "b_iblock_element_prop_m22", :force => true do |t|
223
+ t.integer "iblock_element_id", :null => false
224
+ t.integer "iblock_property_id", :null => false
225
+ t.text "value", :null => false
226
+ t.integer "value_enum"
227
+ t.decimal "value_num", :precision => 18, :scale => 4
228
+ t.string "description"
229
+ end
230
+
231
+ add_index "b_iblock_element_prop_m22", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m22_1"
232
+ add_index "b_iblock_element_prop_m22", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m22_2"
233
+ add_index "b_iblock_element_prop_m22", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m22_3"
234
+
235
+ create_table "b_iblock_element_prop_m24", :force => true do |t|
236
+ t.integer "iblock_element_id", :null => false
237
+ t.integer "iblock_property_id", :null => false
238
+ t.text "value", :null => false
239
+ t.integer "value_enum"
240
+ t.decimal "value_num", :precision => 18, :scale => 4
241
+ t.string "description"
242
+ end
243
+
244
+ add_index "b_iblock_element_prop_m24", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m24_1"
245
+ add_index "b_iblock_element_prop_m24", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m24_2"
246
+ add_index "b_iblock_element_prop_m24", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m24_3"
247
+
248
+ create_table "b_iblock_element_prop_m3", :force => true do |t|
249
+ t.integer "iblock_element_id", :null => false
250
+ t.integer "iblock_property_id", :null => false
251
+ t.text "value", :null => false
252
+ t.integer "value_enum"
253
+ t.decimal "value_num", :precision => 18, :scale => 4
254
+ t.string "description"
255
+ end
256
+
257
+ add_index "b_iblock_element_prop_m3", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m3_1"
258
+ add_index "b_iblock_element_prop_m3", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m3_2"
259
+ add_index "b_iblock_element_prop_m3", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m3_3"
260
+
261
+ create_table "b_iblock_element_prop_m30", :force => true do |t|
262
+ t.integer "iblock_element_id", :null => false
263
+ t.integer "iblock_property_id", :null => false
264
+ t.text "value", :null => false
265
+ t.integer "value_enum"
266
+ t.decimal "value_num", :precision => 18, :scale => 4
267
+ t.string "description"
268
+ end
269
+
270
+ add_index "b_iblock_element_prop_m30", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m30_1"
271
+ add_index "b_iblock_element_prop_m30", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m30_2"
272
+ add_index "b_iblock_element_prop_m30", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m30_3"
273
+
274
+ create_table "b_iblock_element_prop_m32", :force => true do |t|
275
+ t.integer "iblock_element_id", :null => false
276
+ t.integer "iblock_property_id", :null => false
277
+ t.text "value", :null => false
278
+ t.integer "value_enum"
279
+ t.decimal "value_num", :precision => 18, :scale => 4
280
+ t.string "description"
281
+ end
282
+
283
+ add_index "b_iblock_element_prop_m32", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m32_1"
284
+ add_index "b_iblock_element_prop_m32", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m32_2"
285
+ add_index "b_iblock_element_prop_m32", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m32_3"
286
+
287
+ create_table "b_iblock_element_prop_m34", :force => true do |t|
288
+ t.integer "iblock_element_id", :null => false
289
+ t.integer "iblock_property_id", :null => false
290
+ t.text "value", :null => false
291
+ t.integer "value_enum"
292
+ t.decimal "value_num", :precision => 18, :scale => 4
293
+ t.string "description"
294
+ end
295
+
296
+ add_index "b_iblock_element_prop_m34", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m34_1"
297
+ add_index "b_iblock_element_prop_m34", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m34_2"
298
+ add_index "b_iblock_element_prop_m34", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m34_3"
299
+
300
+ create_table "b_iblock_element_prop_m35", :force => true do |t|
301
+ t.integer "iblock_element_id", :null => false
302
+ t.integer "iblock_property_id", :null => false
303
+ t.text "value", :null => false
304
+ t.integer "value_enum"
305
+ t.decimal "value_num", :precision => 18, :scale => 4
306
+ t.string "description"
307
+ end
308
+
309
+ add_index "b_iblock_element_prop_m35", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m35_1"
310
+ add_index "b_iblock_element_prop_m35", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m35_2"
311
+ add_index "b_iblock_element_prop_m35", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m35_3"
312
+
313
+ create_table "b_iblock_element_prop_m37", :force => true do |t|
314
+ t.integer "iblock_element_id", :null => false
315
+ t.integer "iblock_property_id", :null => false
316
+ t.text "value", :null => false
317
+ t.integer "value_enum"
318
+ t.decimal "value_num", :precision => 18, :scale => 4
319
+ t.string "description"
320
+ end
321
+
322
+ add_index "b_iblock_element_prop_m37", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m37_1"
323
+ add_index "b_iblock_element_prop_m37", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m37_2"
324
+ add_index "b_iblock_element_prop_m37", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m37_3"
325
+
326
+ create_table "b_iblock_element_prop_m38", :force => true do |t|
327
+ t.integer "iblock_element_id", :null => false
328
+ t.integer "iblock_property_id", :null => false
329
+ t.text "value", :null => false
330
+ t.integer "value_enum"
331
+ t.decimal "value_num", :precision => 18, :scale => 4
332
+ t.string "description"
333
+ end
334
+
335
+ add_index "b_iblock_element_prop_m38", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m38_1"
336
+ add_index "b_iblock_element_prop_m38", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m38_2"
337
+ add_index "b_iblock_element_prop_m38", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m38_3"
338
+
339
+ create_table "b_iblock_element_prop_m39", :force => true do |t|
340
+ t.integer "iblock_element_id", :null => false
341
+ t.integer "iblock_property_id", :null => false
342
+ t.text "value", :null => false
343
+ t.integer "value_enum"
344
+ t.decimal "value_num", :precision => 18, :scale => 4
345
+ t.string "description"
346
+ end
347
+
348
+ add_index "b_iblock_element_prop_m39", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m39_1"
349
+ add_index "b_iblock_element_prop_m39", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m39_2"
350
+ add_index "b_iblock_element_prop_m39", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m39_3"
351
+
352
+ create_table "b_iblock_element_prop_m4", :force => true do |t|
353
+ t.integer "iblock_element_id", :null => false
354
+ t.integer "iblock_property_id", :null => false
355
+ t.text "value", :null => false
356
+ t.integer "value_enum"
357
+ t.decimal "value_num", :precision => 18, :scale => 4
358
+ t.string "description"
359
+ end
360
+
361
+ add_index "b_iblock_element_prop_m4", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m4_1"
362
+ add_index "b_iblock_element_prop_m4", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m4_2"
363
+ add_index "b_iblock_element_prop_m4", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m4_3"
364
+
365
+ create_table "b_iblock_element_prop_m40", :force => true do |t|
366
+ t.integer "iblock_element_id", :null => false
367
+ t.integer "iblock_property_id", :null => false
368
+ t.text "value", :null => false
369
+ t.integer "value_enum"
370
+ t.decimal "value_num", :precision => 18, :scale => 4
371
+ t.string "description"
372
+ end
373
+
374
+ add_index "b_iblock_element_prop_m40", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m40_1"
375
+ add_index "b_iblock_element_prop_m40", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m40_2"
376
+ add_index "b_iblock_element_prop_m40", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m40_3"
377
+
378
+ create_table "b_iblock_element_prop_m41", :force => true do |t|
379
+ t.integer "iblock_element_id", :null => false
380
+ t.integer "iblock_property_id", :null => false
381
+ t.text "value", :null => false
382
+ t.integer "value_enum"
383
+ t.decimal "value_num", :precision => 18, :scale => 4
384
+ t.string "description"
385
+ end
386
+
387
+ add_index "b_iblock_element_prop_m41", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m41_1"
388
+ add_index "b_iblock_element_prop_m41", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m41_2"
389
+ add_index "b_iblock_element_prop_m41", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m41_3"
390
+
391
+ create_table "b_iblock_element_prop_m44", :force => true do |t|
392
+ t.integer "iblock_element_id", :null => false
393
+ t.integer "iblock_property_id", :null => false
394
+ t.text "value", :null => false
395
+ t.integer "value_enum"
396
+ t.decimal "value_num", :precision => 18, :scale => 4
397
+ t.string "description"
398
+ end
399
+
400
+ add_index "b_iblock_element_prop_m44", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m44_1"
401
+ add_index "b_iblock_element_prop_m44", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m44_2"
402
+ add_index "b_iblock_element_prop_m44", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m44_3"
403
+
404
+ create_table "b_iblock_element_prop_m47", :force => true do |t|
405
+ t.integer "iblock_element_id", :null => false
406
+ t.integer "iblock_property_id", :null => false
407
+ t.text "value", :null => false
408
+ t.integer "value_enum"
409
+ t.decimal "value_num", :precision => 18, :scale => 4
410
+ t.string "description"
411
+ end
412
+
413
+ add_index "b_iblock_element_prop_m47", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m47_1"
414
+ add_index "b_iblock_element_prop_m47", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m47_2"
415
+ add_index "b_iblock_element_prop_m47", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m47_3"
416
+
417
+ create_table "b_iblock_element_prop_m48", :force => true do |t|
418
+ t.integer "iblock_element_id", :null => false
419
+ t.integer "iblock_property_id", :null => false
420
+ t.text "value", :null => false
421
+ t.integer "value_enum"
422
+ t.decimal "value_num", :precision => 18, :scale => 4
423
+ t.string "description"
424
+ end
425
+
426
+ add_index "b_iblock_element_prop_m48", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m48_1"
427
+ add_index "b_iblock_element_prop_m48", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m48_2"
428
+ add_index "b_iblock_element_prop_m48", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m48_3"
429
+
430
+ create_table "b_iblock_element_prop_m49", :force => true do |t|
431
+ t.integer "iblock_element_id", :null => false
432
+ t.integer "iblock_property_id", :null => false
433
+ t.text "value", :null => false
434
+ t.integer "value_enum"
435
+ t.decimal "value_num", :precision => 18, :scale => 4
436
+ t.string "description"
437
+ end
438
+
439
+ add_index "b_iblock_element_prop_m49", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m49_1"
440
+ add_index "b_iblock_element_prop_m49", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m49_2"
441
+ add_index "b_iblock_element_prop_m49", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m49_3"
442
+
443
+ create_table "b_iblock_element_prop_m5", :force => true do |t|
444
+ t.integer "iblock_element_id", :null => false
445
+ t.integer "iblock_property_id", :null => false
446
+ t.text "value", :null => false
447
+ t.integer "value_enum"
448
+ t.decimal "value_num", :precision => 18, :scale => 4
449
+ t.string "description"
450
+ end
451
+
452
+ add_index "b_iblock_element_prop_m5", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m5_1"
453
+ add_index "b_iblock_element_prop_m5", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m5_2"
454
+ add_index "b_iblock_element_prop_m5", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m5_3"
455
+
456
+ create_table "b_iblock_element_prop_m50", :force => true do |t|
457
+ t.integer "iblock_element_id", :null => false
458
+ t.integer "iblock_property_id", :null => false
459
+ t.text "value", :null => false
460
+ t.integer "value_enum"
461
+ t.decimal "value_num", :precision => 18, :scale => 4
462
+ t.string "description"
463
+ end
464
+
465
+ add_index "b_iblock_element_prop_m50", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m50_1"
466
+ add_index "b_iblock_element_prop_m50", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m50_2"
467
+ add_index "b_iblock_element_prop_m50", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m50_3"
468
+
469
+ create_table "b_iblock_element_prop_m51", :force => true do |t|
470
+ t.integer "iblock_element_id", :null => false
471
+ t.integer "iblock_property_id", :null => false
472
+ t.text "value", :null => false
473
+ t.integer "value_enum"
474
+ t.decimal "value_num", :precision => 18, :scale => 4
475
+ t.string "description"
476
+ end
477
+
478
+ add_index "b_iblock_element_prop_m51", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m51_1"
479
+ add_index "b_iblock_element_prop_m51", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m51_2"
480
+ add_index "b_iblock_element_prop_m51", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m51_3"
481
+
482
+ create_table "b_iblock_element_prop_m52", :force => true do |t|
483
+ t.integer "iblock_element_id", :null => false
484
+ t.integer "iblock_property_id", :null => false
485
+ t.text "value", :null => false
486
+ t.integer "value_enum"
487
+ t.decimal "value_num", :precision => 18, :scale => 4
488
+ t.string "description"
489
+ end
490
+
491
+ add_index "b_iblock_element_prop_m52", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m52_1"
492
+ add_index "b_iblock_element_prop_m52", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m52_2"
493
+ add_index "b_iblock_element_prop_m52", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m52_3"
494
+
495
+ create_table "b_iblock_element_prop_m55", :force => true do |t|
496
+ t.integer "iblock_element_id", :null => false
497
+ t.integer "iblock_property_id", :null => false
498
+ t.text "value", :null => false
499
+ t.integer "value_enum"
500
+ t.decimal "value_num", :precision => 18, :scale => 4
501
+ t.string "description"
502
+ end
503
+
504
+ add_index "b_iblock_element_prop_m55", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m55_1"
505
+ add_index "b_iblock_element_prop_m55", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m55_2"
506
+ add_index "b_iblock_element_prop_m55", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m55_3"
507
+
508
+ create_table "b_iblock_element_prop_m56", :force => true do |t|
509
+ t.integer "iblock_element_id", :null => false
510
+ t.integer "iblock_property_id", :null => false
511
+ t.text "value", :null => false
512
+ t.integer "value_enum"
513
+ t.decimal "value_num", :precision => 18, :scale => 4
514
+ t.string "description"
515
+ end
516
+
517
+ add_index "b_iblock_element_prop_m56", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m56_1"
518
+ add_index "b_iblock_element_prop_m56", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m56_2"
519
+ add_index "b_iblock_element_prop_m56", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m56_3"
520
+
521
+ create_table "b_iblock_element_prop_m57", :force => true do |t|
522
+ t.integer "iblock_element_id", :null => false
523
+ t.integer "iblock_property_id", :null => false
524
+ t.text "value", :null => false
525
+ t.integer "value_enum"
526
+ t.decimal "value_num", :precision => 18, :scale => 4
527
+ t.string "description"
528
+ end
529
+
530
+ add_index "b_iblock_element_prop_m57", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m57_1"
531
+ add_index "b_iblock_element_prop_m57", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m57_2"
532
+ add_index "b_iblock_element_prop_m57", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m57_3"
533
+
534
+ create_table "b_iblock_element_prop_m58", :force => true do |t|
535
+ t.integer "iblock_element_id", :null => false
536
+ t.integer "iblock_property_id", :null => false
537
+ t.text "value", :null => false
538
+ t.integer "value_enum"
539
+ t.decimal "value_num", :precision => 18, :scale => 4
540
+ t.string "description"
541
+ end
542
+
543
+ add_index "b_iblock_element_prop_m58", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m58_1"
544
+ add_index "b_iblock_element_prop_m58", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m58_2"
545
+ add_index "b_iblock_element_prop_m58", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m58_3"
546
+
547
+ create_table "b_iblock_element_prop_m59", :force => true do |t|
548
+ t.integer "iblock_element_id", :null => false
549
+ t.integer "iblock_property_id", :null => false
550
+ t.text "value", :null => false
551
+ t.integer "value_enum"
552
+ t.decimal "value_num", :precision => 18, :scale => 4
553
+ t.string "description"
554
+ end
555
+
556
+ add_index "b_iblock_element_prop_m59", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m59_1"
557
+ add_index "b_iblock_element_prop_m59", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m59_2"
558
+ add_index "b_iblock_element_prop_m59", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m59_3"
559
+
560
+ create_table "b_iblock_element_prop_m6", :force => true do |t|
561
+ t.integer "iblock_element_id", :null => false
562
+ t.integer "iblock_property_id", :null => false
563
+ t.text "value", :null => false
564
+ t.integer "value_enum"
565
+ t.decimal "value_num", :precision => 18, :scale => 4
566
+ t.string "description"
567
+ end
568
+
569
+ add_index "b_iblock_element_prop_m6", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m6_1"
570
+ add_index "b_iblock_element_prop_m6", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m6_2"
571
+ add_index "b_iblock_element_prop_m6", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m6_3"
572
+
573
+ create_table "b_iblock_element_prop_m7", :force => true do |t|
574
+ t.integer "iblock_element_id", :null => false
575
+ t.integer "iblock_property_id", :null => false
576
+ t.text "value", :null => false
577
+ t.integer "value_enum"
578
+ t.decimal "value_num", :precision => 18, :scale => 4
579
+ t.string "description"
580
+ end
581
+
582
+ add_index "b_iblock_element_prop_m7", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m7_1"
583
+ add_index "b_iblock_element_prop_m7", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m7_2"
584
+ add_index "b_iblock_element_prop_m7", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m7_3"
585
+
586
+ create_table "b_iblock_element_prop_m8", :force => true do |t|
587
+ t.integer "iblock_element_id", :null => false
588
+ t.integer "iblock_property_id", :null => false
589
+ t.text "value", :null => false
590
+ t.integer "value_enum"
591
+ t.decimal "value_num", :precision => 18, :scale => 4
592
+ t.string "description"
593
+ end
594
+
595
+ add_index "b_iblock_element_prop_m8", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m8_1"
596
+ add_index "b_iblock_element_prop_m8", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m8_2"
597
+ add_index "b_iblock_element_prop_m8", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m8_3"
598
+
599
+ create_table "b_iblock_element_prop_m9", :force => true do |t|
600
+ t.integer "iblock_element_id", :null => false
601
+ t.integer "iblock_property_id", :null => false
602
+ t.text "value", :null => false
603
+ t.integer "value_enum"
604
+ t.decimal "value_num", :precision => 18, :scale => 4
605
+ t.string "description"
606
+ end
607
+
608
+ add_index "b_iblock_element_prop_m9", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m9_1"
609
+ add_index "b_iblock_element_prop_m9", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m9_2"
610
+ add_index "b_iblock_element_prop_m9", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_elem_prop_m9_3"
611
+
612
+ create_table "b_iblock_element_prop_s11", :primary_key => "iblock_element_id", :force => true do |t|
613
+ end
614
+
615
+ create_table "b_iblock_element_prop_s12", :primary_key => "iblock_element_id", :force => true do |t|
616
+ end
617
+
618
+ create_table "b_iblock_element_prop_s16", :primary_key => "iblock_element_id", :force => true do |t|
619
+ t.text "property_69"
620
+ t.string "description_69"
621
+ t.text "property_70"
622
+ t.string "description_70"
623
+ t.decimal "property_71", :precision => 18, :scale => 4
624
+ t.string "description_71"
625
+ t.integer "property_226"
626
+ t.string "description_226"
627
+ t.text "property_325"
628
+ t.string "description_325"
629
+ t.decimal "property_398", :precision => 18, :scale => 4
630
+ t.string "description_398"
631
+ t.text "property_432"
632
+ t.string "description_432"
633
+ t.text "property_433"
634
+ t.string "description_433"
635
+ t.text "property_435"
636
+ t.string "description_435"
637
+ end
638
+
639
+ create_table "b_iblock_element_prop_s18", :primary_key => "iblock_element_id", :force => true do |t|
640
+ t.text "property_82"
641
+ t.string "description_82"
642
+ t.text "property_83"
643
+ t.string "description_83"
644
+ t.integer "property_84"
645
+ t.string "description_84"
646
+ t.integer "property_85"
647
+ t.string "description_85"
648
+ t.decimal "property_284", :precision => 18, :scale => 4
649
+ t.string "description_284"
650
+ t.integer "property_285"
651
+ t.string "description_285"
652
+ end
653
+
654
+ create_table "b_iblock_element_prop_s19", :primary_key => "iblock_element_id", :force => true do |t|
655
+ t.decimal "property_89", :precision => 18, :scale => 4
656
+ t.string "description_89"
657
+ t.decimal "property_168", :precision => 18, :scale => 4
658
+ t.string "description_168"
659
+ end
660
+
661
+ create_table "b_iblock_element_prop_s2", :primary_key => "iblock_element_id", :force => true do |t|
662
+ t.text "property_7"
663
+ t.string "description_7"
664
+ t.decimal "property_8", :precision => 18, :scale => 4
665
+ t.string "description_8"
666
+ end
667
+
668
+ create_table "b_iblock_element_prop_s21", :primary_key => "iblock_element_id", :force => true do |t|
669
+ t.text "property_97"
670
+ t.string "description_97"
671
+ t.decimal "property_98", :precision => 18, :scale => 4
672
+ t.string "description_98"
673
+ t.decimal "property_146", :precision => 18, :scale => 4
674
+ t.string "description_146"
675
+ t.text "property_434"
676
+ t.string "description_434"
677
+ end
678
+
679
+ create_table "b_iblock_element_prop_s22", :primary_key => "iblock_element_id", :force => true do |t|
680
+ t.integer "property_117"
681
+ t.string "description_117"
682
+ t.integer "property_118"
683
+ t.string "description_118"
684
+ t.text "property_119"
685
+ t.string "description_119"
686
+ t.integer "property_369"
687
+ t.string "description_369"
688
+ t.integer "property_370"
689
+ t.string "description_370"
690
+ t.integer "property_371"
691
+ t.string "description_371"
692
+ t.integer "property_372"
693
+ t.string "description_372"
694
+ end
695
+
696
+ create_table "b_iblock_element_prop_s24", :primary_key => "iblock_element_id", :force => true do |t|
697
+ t.decimal "property_328", :precision => 18, :scale => 4
698
+ t.string "description_328"
699
+ end
700
+
701
+ create_table "b_iblock_element_prop_s3", :primary_key => "iblock_element_id", :force => true do |t|
702
+ t.decimal "property_9", :precision => 18, :scale => 4
703
+ t.string "description_9"
704
+ t.text "property_11"
705
+ t.string "description_11"
706
+ t.decimal "property_13", :precision => 18, :scale => 4
707
+ t.string "description_13"
708
+ t.integer "property_15"
709
+ t.string "description_15"
710
+ t.integer "property_16"
711
+ t.string "description_16"
712
+ t.integer "property_17"
713
+ t.string "description_17"
714
+ t.integer "property_18"
715
+ t.string "description_18"
716
+ t.text "property_20"
717
+ t.string "description_20"
718
+ t.integer "property_21"
719
+ t.string "description_21"
720
+ t.integer "property_37"
721
+ t.string "description_37"
722
+ t.integer "property_38"
723
+ t.string "description_38"
724
+ t.text "property_123"
725
+ t.string "description_123"
726
+ t.integer "property_124"
727
+ t.string "description_124"
728
+ t.decimal "property_152", :precision => 18, :scale => 4
729
+ t.string "description_152"
730
+ t.integer "property_193"
731
+ t.string "description_193"
732
+ t.integer "property_280"
733
+ t.string "description_280"
734
+ t.integer "property_290"
735
+ t.string "description_290"
736
+ t.decimal "property_309", :precision => 18, :scale => 4
737
+ t.string "description_309"
738
+ t.decimal "property_327", :precision => 18, :scale => 4
739
+ t.string "description_327"
740
+ t.text "property_341"
741
+ t.string "description_341"
742
+ t.text "property_342"
743
+ t.string "description_342"
744
+ t.decimal "property_349", :precision => 18, :scale => 4
745
+ t.string "description_349"
746
+ t.decimal "property_410", :precision => 18, :scale => 4
747
+ t.string "description_410"
748
+ t.text "property_421"
749
+ t.string "description_421"
750
+ t.text "property_422"
751
+ t.string "description_422"
752
+ t.integer "property_430"
753
+ t.string "description_430"
754
+ t.text "property_438"
755
+ t.string "description_438"
756
+ end
757
+
758
+ create_table "b_iblock_element_prop_s30", :primary_key => "iblock_element_id", :force => true do |t|
759
+ t.text "property_200"
760
+ t.string "description_200"
761
+ t.integer "property_201"
762
+ t.string "description_201"
763
+ t.decimal "property_202", :precision => 18, :scale => 4
764
+ t.string "description_202"
765
+ t.decimal "property_204", :precision => 18, :scale => 4
766
+ t.string "description_204"
767
+ t.integer "property_223"
768
+ t.string "description_223"
769
+ t.integer "property_360"
770
+ t.string "description_360"
771
+ t.decimal "property_361", :precision => 18, :scale => 4
772
+ t.string "description_361"
773
+ t.integer "property_393"
774
+ t.string "description_393"
775
+ end
776
+
777
+ create_table "b_iblock_element_prop_s32", :primary_key => "iblock_element_id", :force => true do |t|
778
+ t.decimal "property_227", :precision => 18, :scale => 4
779
+ t.string "description_227"
780
+ t.text "property_228"
781
+ t.string "description_228"
782
+ t.text "property_316"
783
+ t.string "description_316"
784
+ t.integer "property_320"
785
+ t.string "description_320"
786
+ end
787
+
788
+ create_table "b_iblock_element_prop_s34", :primary_key => "iblock_element_id", :force => true do |t|
789
+ t.decimal "property_254", :precision => 18, :scale => 4
790
+ t.string "description_254"
791
+ t.integer "property_255"
792
+ t.string "description_255"
793
+ t.integer "property_256"
794
+ t.string "description_256"
795
+ t.text "property_257"
796
+ t.string "description_257"
797
+ t.text "property_258"
798
+ t.string "description_258"
799
+ t.integer "property_283"
800
+ t.string "description_283"
801
+ t.text "property_292"
802
+ t.string "description_292"
803
+ t.integer "property_293"
804
+ t.string "description_293"
805
+ end
806
+
807
+ create_table "b_iblock_element_prop_s35", :primary_key => "iblock_element_id", :force => true do |t|
808
+ t.text "property_234"
809
+ t.string "description_234"
810
+ t.decimal "property_237", :precision => 18, :scale => 4
811
+ t.string "description_237"
812
+ t.decimal "property_244", :precision => 18, :scale => 4
813
+ t.string "description_244"
814
+ t.decimal "property_261", :precision => 18, :scale => 4
815
+ t.string "description_261"
816
+ t.integer "property_298"
817
+ t.string "description_298"
818
+ end
819
+
820
+ create_table "b_iblock_element_prop_s37", :primary_key => "iblock_element_id", :force => true do |t|
821
+ t.text "property_245"
822
+ t.string "description_245"
823
+ t.text "property_246"
824
+ t.string "description_246"
825
+ t.decimal "property_247", :precision => 18, :scale => 4
826
+ t.string "description_247"
827
+ t.integer "property_248"
828
+ t.string "description_248"
829
+ t.integer "property_253"
830
+ t.string "description_253"
831
+ t.integer "property_259"
832
+ t.string "description_259"
833
+ t.integer "property_260"
834
+ t.string "description_260"
835
+ t.integer "property_264"
836
+ t.string "description_264"
837
+ t.integer "property_265"
838
+ t.string "description_265"
839
+ t.integer "property_266"
840
+ t.string "description_266"
841
+ t.integer "property_335"
842
+ t.string "description_335"
843
+ end
844
+
845
+ create_table "b_iblock_element_prop_s38", :primary_key => "iblock_element_id", :force => true do |t|
846
+ t.text "property_262"
847
+ t.string "description_262"
848
+ t.integer "property_263"
849
+ t.string "description_263"
850
+ end
851
+
852
+ create_table "b_iblock_element_prop_s39", :primary_key => "iblock_element_id", :force => true do |t|
853
+ t.text "property_267"
854
+ t.string "description_267"
855
+ t.text "property_268"
856
+ t.string "description_268"
857
+ end
858
+
859
+ create_table "b_iblock_element_prop_s4", :primary_key => "iblock_element_id", :force => true do |t|
860
+ t.text "property_6"
861
+ t.string "description_6"
862
+ t.integer "property_42"
863
+ t.string "description_42"
864
+ t.text "property_43"
865
+ t.string "description_43"
866
+ t.decimal "property_44", :precision => 18, :scale => 4
867
+ t.string "description_44"
868
+ t.decimal "property_49", :precision => 18, :scale => 4
869
+ t.string "description_49"
870
+ t.decimal "property_50", :precision => 18, :scale => 4
871
+ t.string "description_50"
872
+ t.integer "property_51"
873
+ t.string "description_51"
874
+ t.text "property_52"
875
+ t.string "description_52"
876
+ t.text "property_54"
877
+ t.string "description_54"
878
+ t.text "property_55"
879
+ t.string "description_55"
880
+ t.text "property_57"
881
+ t.string "description_57"
882
+ t.integer "property_58"
883
+ t.string "description_58"
884
+ t.integer "property_59"
885
+ t.string "description_59"
886
+ t.decimal "property_60", :precision => 18, :scale => 4
887
+ t.string "description_60"
888
+ t.integer "property_61"
889
+ t.string "description_61"
890
+ t.integer "property_62"
891
+ t.string "description_62"
892
+ t.integer "property_63"
893
+ t.string "description_63"
894
+ t.text "property_64"
895
+ t.string "description_64"
896
+ t.text "property_65"
897
+ t.string "description_65"
898
+ t.integer "property_66"
899
+ t.string "description_66"
900
+ t.integer "property_67"
901
+ t.string "description_67"
902
+ t.text "property_68"
903
+ t.string "description_68"
904
+ t.text "property_74"
905
+ t.string "description_74"
906
+ t.text "property_77"
907
+ t.string "description_77"
908
+ t.text "property_80"
909
+ t.string "description_80"
910
+ t.decimal "property_86", :precision => 18, :scale => 4
911
+ t.string "description_86"
912
+ t.decimal "property_87", :precision => 18, :scale => 4
913
+ t.string "description_87"
914
+ t.decimal "property_88", :precision => 18, :scale => 4
915
+ t.string "description_88"
916
+ t.text "property_90"
917
+ t.string "description_90"
918
+ t.text "property_91"
919
+ t.string "description_91"
920
+ t.decimal "property_92", :precision => 18, :scale => 4
921
+ t.string "description_92"
922
+ t.decimal "property_207", :precision => 18, :scale => 4
923
+ t.string "description_207"
924
+ t.decimal "property_221", :precision => 18, :scale => 4
925
+ t.string "description_221"
926
+ t.integer "property_233"
927
+ t.string "description_233"
928
+ t.text "property_270"
929
+ t.string "description_270"
930
+ t.text "property_271"
931
+ t.string "description_271"
932
+ t.text "property_272"
933
+ t.string "description_272"
934
+ t.text "property_275"
935
+ t.string "description_275"
936
+ t.text "property_276"
937
+ t.string "description_276"
938
+ t.text "property_277"
939
+ t.string "description_277"
940
+ t.integer "property_295"
941
+ t.string "description_295"
942
+ t.decimal "property_310", :precision => 18, :scale => 4
943
+ t.string "description_310"
944
+ t.decimal "property_311", :precision => 18, :scale => 4
945
+ t.string "description_311"
946
+ t.text "property_312"
947
+ t.string "description_312"
948
+ t.decimal "property_313", :precision => 18, :scale => 4
949
+ t.string "description_313"
950
+ t.decimal "property_314", :precision => 18, :scale => 4
951
+ t.string "description_314"
952
+ t.decimal "property_315", :precision => 18, :scale => 4
953
+ t.string "description_315"
954
+ t.decimal "property_317", :precision => 18, :scale => 4
955
+ t.string "description_317"
956
+ t.decimal "property_322", :precision => 18, :scale => 4
957
+ t.string "description_322"
958
+ t.text "property_323"
959
+ t.string "description_323"
960
+ t.decimal "property_329", :precision => 18, :scale => 4
961
+ t.string "description_329"
962
+ t.decimal "property_330", :precision => 18, :scale => 4
963
+ t.string "description_330"
964
+ t.decimal "property_331", :precision => 18, :scale => 4
965
+ t.string "description_331"
966
+ t.decimal "property_332", :precision => 18, :scale => 4
967
+ t.string "description_332"
968
+ t.decimal "property_333", :precision => 18, :scale => 4
969
+ t.string "description_333"
970
+ t.decimal "property_343", :precision => 18, :scale => 4
971
+ t.string "description_343"
972
+ t.decimal "property_344", :precision => 18, :scale => 4
973
+ t.string "description_344"
974
+ t.decimal "property_366", :precision => 18, :scale => 4
975
+ t.string "description_366"
976
+ t.text "property_367"
977
+ t.string "description_367"
978
+ t.text "property_368"
979
+ t.string "description_368"
980
+ t.decimal "property_390", :precision => 18, :scale => 4
981
+ t.string "description_390"
982
+ t.decimal "property_391", :precision => 18, :scale => 4
983
+ t.string "description_391"
984
+ t.decimal "property_392", :precision => 18, :scale => 4
985
+ t.string "description_392"
986
+ t.text "property_399"
987
+ t.string "description_399"
988
+ t.decimal "property_411", :precision => 18, :scale => 4
989
+ t.string "description_411"
990
+ t.text "property_423"
991
+ t.string "description_423"
992
+ t.integer "property_431"
993
+ t.string "description_431"
994
+ end
995
+
996
+ create_table "b_iblock_element_prop_s40", :primary_key => "iblock_element_id", :force => true do |t|
997
+ t.text "property_273"
998
+ t.string "description_273"
999
+ t.integer "property_274"
1000
+ t.string "description_274"
1001
+ end
1002
+
1003
+ create_table "b_iblock_element_prop_s41", :primary_key => "iblock_element_id", :force => true do |t|
1004
+ t.integer "property_281"
1005
+ t.string "description_281"
1006
+ t.text "property_282"
1007
+ t.string "description_282"
1008
+ end
1009
+
1010
+ create_table "b_iblock_element_prop_s44", :primary_key => "iblock_element_id", :force => true do |t|
1011
+ t.integer "property_299"
1012
+ t.string "description_299"
1013
+ t.text "property_300"
1014
+ t.string "description_300"
1015
+ t.text "property_301"
1016
+ t.string "description_301"
1017
+ t.integer "property_302"
1018
+ t.string "description_302"
1019
+ end
1020
+
1021
+ create_table "b_iblock_element_prop_s47", :primary_key => "iblock_element_id", :force => true do |t|
1022
+ end
1023
+
1024
+ create_table "b_iblock_element_prop_s48", :primary_key => "iblock_element_id", :force => true do |t|
1025
+ t.decimal "property_348", :precision => 18, :scale => 4
1026
+ t.string "description_348"
1027
+ end
1028
+
1029
+ create_table "b_iblock_element_prop_s49", :primary_key => "iblock_element_id", :force => true do |t|
1030
+ t.integer "property_334"
1031
+ t.string "description_334"
1032
+ end
1033
+
1034
+ create_table "b_iblock_element_prop_s5", :primary_key => "iblock_element_id", :force => true do |t|
1035
+ end
1036
+
1037
+ create_table "b_iblock_element_prop_s50", :primary_key => "iblock_element_id", :force => true do |t|
1038
+ t.decimal "property_351", :precision => 18, :scale => 4
1039
+ t.string "description_351"
1040
+ t.decimal "property_352", :precision => 18, :scale => 4
1041
+ t.string "description_352"
1042
+ end
1043
+
1044
+ create_table "b_iblock_element_prop_s51", :primary_key => "iblock_element_id", :force => true do |t|
1045
+ t.decimal "property_353", :precision => 18, :scale => 4
1046
+ t.string "description_353"
1047
+ t.decimal "property_354", :precision => 18, :scale => 4
1048
+ t.string "description_354"
1049
+ t.text "property_355"
1050
+ t.string "description_355"
1051
+ end
1052
+
1053
+ create_table "b_iblock_element_prop_s52", :primary_key => "iblock_element_id", :force => true do |t|
1054
+ t.integer "property_362"
1055
+ t.string "description_362"
1056
+ t.decimal "property_363", :precision => 18, :scale => 4
1057
+ t.string "description_363"
1058
+ t.decimal "property_364", :precision => 18, :scale => 4
1059
+ t.string "description_364"
1060
+ t.integer "property_365"
1061
+ t.string "description_365"
1062
+ t.integer "property_397"
1063
+ t.string "description_397"
1064
+ t.decimal "property_407", :precision => 18, :scale => 4
1065
+ t.string "description_407"
1066
+ t.decimal "property_408", :precision => 18, :scale => 4
1067
+ t.string "description_408"
1068
+ end
1069
+
1070
+ create_table "b_iblock_element_prop_s55", :primary_key => "iblock_element_id", :force => true do |t|
1071
+ t.decimal "property_386", :precision => 18, :scale => 4
1072
+ t.string "description_386"
1073
+ t.decimal "property_387", :precision => 18, :scale => 4
1074
+ t.string "description_387"
1075
+ t.text "property_388"
1076
+ t.string "description_388"
1077
+ t.text "property_389"
1078
+ t.string "description_389"
1079
+ end
1080
+
1081
+ create_table "b_iblock_element_prop_s56", :primary_key => "iblock_element_id", :force => true do |t|
1082
+ t.decimal "property_394", :precision => 18, :scale => 4
1083
+ t.string "description_394"
1084
+ t.decimal "property_395", :precision => 18, :scale => 4
1085
+ t.string "description_395"
1086
+ t.decimal "property_396", :precision => 18, :scale => 4
1087
+ t.string "description_396"
1088
+ end
1089
+
1090
+ create_table "b_iblock_element_prop_s57", :primary_key => "iblock_element_id", :force => true do |t|
1091
+ t.text "property_400"
1092
+ t.string "description_400"
1093
+ t.text "property_401"
1094
+ t.string "description_401"
1095
+ t.decimal "property_402", :precision => 18, :scale => 4
1096
+ t.string "description_402"
1097
+ t.decimal "property_403", :precision => 18, :scale => 4
1098
+ t.string "description_403"
1099
+ t.decimal "property_404", :precision => 18, :scale => 4
1100
+ t.string "description_404"
1101
+ t.decimal "property_405", :precision => 18, :scale => 4
1102
+ t.string "description_405"
1103
+ t.decimal "property_406", :precision => 18, :scale => 4
1104
+ t.string "description_406"
1105
+ t.decimal "property_409", :precision => 18, :scale => 4
1106
+ t.string "description_409"
1107
+ end
1108
+
1109
+ create_table "b_iblock_element_prop_s58", :primary_key => "iblock_element_id", :force => true do |t|
1110
+ t.integer "property_437"
1111
+ t.string "description_437"
1112
+ end
1113
+
1114
+ create_table "b_iblock_element_prop_s59", :primary_key => "iblock_element_id", :force => true do |t|
1115
+ t.integer "property_425"
1116
+ t.string "description_425"
1117
+ t.integer "property_426"
1118
+ t.string "description_426"
1119
+ t.text "property_428"
1120
+ t.string "description_428"
1121
+ t.text "property_429"
1122
+ t.string "description_429"
1123
+ end
1124
+
1125
+ create_table "b_iblock_element_prop_s6", :primary_key => "iblock_element_id", :force => true do |t|
1126
+ t.decimal "property_10", :precision => 18, :scale => 4
1127
+ t.string "description_10"
1128
+ end
1129
+
1130
+ create_table "b_iblock_element_prop_s7", :primary_key => "iblock_element_id", :force => true do |t|
1131
+ t.integer "property_120"
1132
+ t.string "description_120"
1133
+ t.text "property_182"
1134
+ t.string "description_182"
1135
+ t.text "property_183"
1136
+ t.string "description_183"
1137
+ t.text "property_184"
1138
+ t.string "description_184"
1139
+ t.text "property_185"
1140
+ t.string "description_185"
1141
+ t.text "property_186"
1142
+ t.string "description_186"
1143
+ t.text "property_187"
1144
+ t.string "description_187"
1145
+ t.text "property_188"
1146
+ t.string "description_188"
1147
+ t.text "property_189"
1148
+ t.string "description_189"
1149
+ t.text "property_190"
1150
+ t.string "description_190"
1151
+ t.text "property_191"
1152
+ t.string "description_191"
1153
+ t.text "property_192"
1154
+ t.string "description_192"
1155
+ t.text "property_287"
1156
+ t.string "description_287"
1157
+ t.text "property_288"
1158
+ t.string "description_288"
1159
+ t.text "property_289"
1160
+ t.string "description_289"
1161
+ t.decimal "property_291", :precision => 18, :scale => 4
1162
+ t.string "description_291"
1163
+ t.decimal "property_350", :precision => 18, :scale => 4
1164
+ t.string "description_350"
1165
+ t.text "property_356"
1166
+ t.string "description_356"
1167
+ t.text "property_357"
1168
+ t.string "description_357"
1169
+ t.text "property_358"
1170
+ t.string "description_358"
1171
+ t.text "property_359"
1172
+ t.string "description_359"
1173
+ t.decimal "property_373", :precision => 18, :scale => 4
1174
+ t.string "description_373"
1175
+ t.decimal "property_374", :precision => 18, :scale => 4
1176
+ t.string "description_374"
1177
+ t.decimal "property_375", :precision => 18, :scale => 4
1178
+ t.string "description_375"
1179
+ t.text "property_376"
1180
+ t.string "description_376"
1181
+ t.text "property_412"
1182
+ t.string "description_412"
1183
+ t.text "property_413"
1184
+ t.string "description_413"
1185
+ t.text "property_414"
1186
+ t.string "description_414"
1187
+ t.text "property_415"
1188
+ t.string "description_415"
1189
+ t.text "property_416"
1190
+ t.string "description_416"
1191
+ t.text "property_417"
1192
+ t.string "description_417"
1193
+ t.text "property_418"
1194
+ t.string "description_418"
1195
+ t.text "property_419"
1196
+ t.string "description_419"
1197
+ t.text "property_420"
1198
+ t.string "description_420"
1199
+ t.text "property_439"
1200
+ t.string "description_439"
1201
+ t.text "property_440"
1202
+ t.string "description_440"
1203
+ t.text "property_441"
1204
+ t.string "description_441"
1205
+ t.text "property_442"
1206
+ t.string "description_442"
1207
+ t.text "property_443"
1208
+ t.string "description_443"
1209
+ t.text "property_444"
1210
+ t.string "description_444"
1211
+ end
1212
+
1213
+ create_table "b_iblock_element_prop_s8", :primary_key => "iblock_element_id", :force => true do |t|
1214
+ t.text "property_22"
1215
+ t.string "description_22"
1216
+ t.decimal "property_23", :precision => 18, :scale => 4
1217
+ t.string "description_23"
1218
+ t.decimal "property_24", :precision => 18, :scale => 4
1219
+ t.string "description_24"
1220
+ t.decimal "property_25", :precision => 18, :scale => 4
1221
+ t.string "description_25"
1222
+ t.decimal "property_32", :precision => 18, :scale => 4
1223
+ t.string "description_32"
1224
+ end
1225
+
1226
+ create_table "b_iblock_element_prop_s9", :primary_key => "iblock_element_id", :force => true do |t|
1227
+ t.text "property_29"
1228
+ t.string "description_29"
1229
+ t.decimal "property_30", :precision => 18, :scale => 4
1230
+ t.string "description_30"
1231
+ t.integer "property_31"
1232
+ t.string "description_31"
1233
+ t.decimal "property_33", :precision => 18, :scale => 4
1234
+ t.string "description_33"
1235
+ end
1236
+
1237
+ create_table "b_iblock_element_property", :force => true do |t|
1238
+ t.integer "iblock_property_id", :null => false
1239
+ t.integer "iblock_element_id", :null => false
1240
+ t.text "value", :null => false
1241
+ t.string "value_type", :limit => 4, :default => "text", :null => false
1242
+ t.integer "value_enum"
1243
+ t.decimal "value_num", :precision => 18, :scale => 4
1244
+ t.string "description"
1245
+ end
1246
+
1247
+ add_index "b_iblock_element_property", ["IBLOCK_ELEMENT_ID", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_element_property_1"
1248
+ add_index "b_iblock_element_property", ["IBLOCK_PROPERTY_ID"], :name => "ix_iblock_element_property_2"
1249
+ add_index "b_iblock_element_property", ["VALUE_ENUM", "IBLOCK_PROPERTY_ID"], :name => "ix_iblock_element_prop_enum"
1250
+
1251
+ create_table "b_iblock_elements_wf", :force => true do |t|
1252
+ t.string "name", :null => false
1253
+ t.datetime "active_from", :null => false
1254
+ t.integer "created_by"
1255
+ t.datetime "date_create", :null => false
1256
+ t.text "detail_text", :limit => 2147483647
1257
+ t.text "preview_text"
1258
+ t.string "tags"
1259
+ t.datetime "timestamp_x"
1260
+ t.integer "show_counter"
1261
+ t.integer "id_blog"
1262
+ t.integer "file"
1263
+ t.integer "status"
1264
+ t.integer "post_id"
1265
+ t.text "glob_class"
1266
+ t.text "user_class"
1267
+ t.boolean "post_analitik"
1268
+ t.boolean "auto_rubric"
1269
+ t.boolean "link_change"
1270
+ t.text "comment"
1271
+ t.text "comment_bloger"
1272
+ t.integer "user_id", :null => false
1273
+ t.integer "user_id_check"
1274
+ t.boolean "old"
1275
+ t.integer "change_cnt", :null => false
1276
+ t.integer "theme"
1277
+ t.string "name2"
1278
+ t.text "preview_mpage", :limit => 2147483647
1279
+ t.integer "detail_picture"
1280
+ t.string "is_main_anons", :limit => 1
1281
+ t.integer "preview_picture_mp"
1282
+ t.string "mainp_preview_title"
1283
+ t.text "mainp_preview_text_1", :limit => 2147483647
1284
+ t.text "mainp_preview_text_2", :limit => 2147483647
1285
+ t.integer "use_article_title"
1286
+ t.integer "use_article_text1"
1287
+ t.integer "use_article_text2"
1288
+ t.integer "use_article_text3"
1289
+ end
1290
+
1291
+ add_index "b_iblock_elements_wf", ["ACTIVE_FROM"], :name => "ACTIVE_FROM"
1292
+ add_index "b_iblock_elements_wf", ["ID_BLOG"], :name => "ID_BLOG"
1293
+ add_index "b_iblock_elements_wf", ["OLD"], :name => "OLD"
1294
+ add_index "b_iblock_elements_wf", ["POST_ID"], :name => "POST_ID"
1295
+ add_index "b_iblock_elements_wf", ["USER_ID"], :name => "USER_ID"
1296
+
1297
+ create_table "b_iblock_fields", :id => false, :force => true do |t|
1298
+ t.integer "iblock_id", :null => false
1299
+ t.string "field_id", :limit => 50, :null => false
1300
+ t.string "is_required", :limit => 1
1301
+ t.text "default_value", :limit => 2147483647
1302
+ end
1303
+
1304
+ create_table "b_iblock_group", :id => false, :force => true do |t|
1305
+ t.integer "iblock_id", :null => false
1306
+ t.integer "group_id", :null => false
1307
+ t.string "permission", :limit => 1, :null => false
1308
+ end
1309
+
1310
+ add_index "b_iblock_group", ["IBLOCK_ID", "GROUP_ID"], :name => "ux_iblock_group_1", :unique => true
1311
+
1312
+ create_table "b_iblock_messages", :id => false, :force => true do |t|
1313
+ t.integer "iblock_id", :null => false
1314
+ t.string "message_id", :limit => 50, :null => false
1315
+ t.string "message_text"
1316
+ end
1317
+
1318
+ create_table "b_iblock_property", :force => true do |t|
1319
+ t.timestamp "timestamp_x", :null => false
1320
+ t.integer "iblock_id", :null => false
1321
+ t.string "name", :limit => 100, :null => false
1322
+ t.string "active", :limit => 1, :default => "Y", :null => false
1323
+ t.integer "sort", :default => 500, :null => false
1324
+ t.string "code", :limit => 50
1325
+ t.text "default_value"
1326
+ t.string "property_type", :limit => 1, :default => "S", :null => false
1327
+ t.integer "row_count", :default => 1, :null => false
1328
+ t.integer "col_count", :default => 30, :null => false
1329
+ t.string "list_type", :limit => 1, :default => "L", :null => false
1330
+ t.string "multiple", :limit => 1, :default => "N", :null => false
1331
+ t.string "xml_id", :limit => 100
1332
+ t.string "file_type", :limit => 200
1333
+ t.integer "multiple_cnt"
1334
+ t.string "tmp_id", :limit => 40
1335
+ t.integer "link_iblock_id"
1336
+ t.string "with_description", :limit => 1
1337
+ t.string "searchable", :limit => 1, :default => "N", :null => false
1338
+ t.string "filtrable", :limit => 1, :default => "N", :null => false
1339
+ t.string "is_required", :limit => 1
1340
+ t.integer "version", :default => 1, :null => false
1341
+ t.string "user_type"
1342
+ t.text "user_type_settings"
1343
+ end
1344
+
1345
+ add_index "b_iblock_property", ["CODE"], :name => "ix_iblock_property_2"
1346
+ add_index "b_iblock_property", ["IBLOCK_ID"], :name => "ix_iblock_property_1"
1347
+
1348
+ create_table "b_iblock_property_enum", :force => true do |t|
1349
+ t.integer "property_id", :null => false
1350
+ t.string "value", :null => false
1351
+ t.string "def", :limit => 1, :default => "N", :null => false
1352
+ t.integer "sort", :default => 500, :null => false
1353
+ t.string "xml_id", :limit => 200, :null => false
1354
+ t.string "tmp_id", :limit => 40
1355
+ end
1356
+
1357
+ add_index "b_iblock_property_enum", ["PROPERTY_ID", "XML_ID"], :name => "ux_iblock_property_enum", :unique => true
1358
+
1359
+ create_table "b_iblock_rss", :force => true do |t|
1360
+ t.integer "iblock_id", :null => false
1361
+ t.string "node", :limit => 50, :null => false
1362
+ t.string "node_value", :limit => 250
1363
+ end
1364
+
1365
+ create_table "b_iblock_section", :force => true do |t|
1366
+ t.timestamp "timestamp_x", :null => false
1367
+ t.integer "modified_by"
1368
+ t.datetime "date_create"
1369
+ t.integer "created_by"
1370
+ t.integer "iblock_id", :null => false
1371
+ t.integer "iblock_section_id"
1372
+ t.string "active", :limit => 1, :default => "Y", :null => false
1373
+ t.string "global_active", :limit => 1, :default => "Y", :null => false
1374
+ t.integer "sort", :default => 500, :null => false
1375
+ t.string "name", :null => false
1376
+ t.integer "picture"
1377
+ t.integer "left_margin"
1378
+ t.integer "right_margin"
1379
+ t.integer "depth_level"
1380
+ t.text "description"
1381
+ t.string "description_type", :limit => 4, :default => "text", :null => false
1382
+ t.text "searchable_content"
1383
+ t.string "code"
1384
+ t.string "xml_id"
1385
+ t.string "tmp_id", :limit => 40
1386
+ t.integer "detail_picture"
1387
+ t.integer "socnet_group_id"
1388
+ end
1389
+
1390
+ add_index "b_iblock_section", ["IBLOCK_ID", "DEPTH_LEVEL"], :name => "ix_iblock_section_depth_level"
1391
+ add_index "b_iblock_section", ["IBLOCK_ID", "IBLOCK_SECTION_ID"], :name => "ix_iblock_section_1"
1392
+ add_index "b_iblock_section", ["IBLOCK_ID", "LEFT_MARGIN", "RIGHT_MARGIN"], :name => "ix_iblock_section_left_margin"
1393
+ add_index "b_iblock_section", ["IBLOCK_ID", "RIGHT_MARGIN", "LEFT_MARGIN"], :name => "ix_iblock_section_right_margin"
1394
+
1395
+ create_table "b_iblock_section_element", :id => false, :force => true do |t|
1396
+ t.integer "iblock_section_id", :null => false
1397
+ t.integer "iblock_element_id", :null => false
1398
+ t.integer "additional_property_id"
1399
+ end
1400
+
1401
+ add_index "b_iblock_section_element", ["IBLOCK_ELEMENT_ID"], :name => "UX_IBLOCK_SECTION_ELEMENT2"
1402
+ add_index "b_iblock_section_element", ["IBLOCK_SECTION_ID", "IBLOCK_ELEMENT_ID", "ADDITIONAL_PROPERTY_ID"], :name => "ux_iblock_section_element", :unique => true
1403
+
1404
+ create_table "b_iblock_sequence", :id => false, :force => true do |t|
1405
+ t.integer "iblock_id", :null => false
1406
+ t.string "code", :limit => 50, :null => false
1407
+ t.integer "seq_value"
1408
+ end
1409
+
1410
+ create_table "b_iblock_site", :id => false, :force => true do |t|
1411
+ t.integer "iblock_id", :null => false
1412
+ t.string "site_id", :limit => 2, :null => false
1413
+ end
1414
+
1415
+ create_table "b_iblock_type", :force => true do |t|
1416
+ t.string "sections", :limit => 1, :default => "Y", :null => false
1417
+ t.string "edit_file_before"
1418
+ t.string "edit_file_after"
1419
+ t.string "in_rss", :limit => 1, :default => "N", :null => false
1420
+ t.integer "sort", :default => 500, :null => false
1421
+ end
1422
+
1423
+ create_table "b_iblock_type_lang", :id => false, :force => true do |t|
1424
+ t.string "iblock_type_id", :limit => 50, :null => false
1425
+ t.string "lid", :limit => 2, :null => false
1426
+ t.string "name", :limit => 100, :null => false
1427
+ t.string "section_name", :limit => 100
1428
+ t.string "element_name", :limit => 100, :null => false
1429
+ end
1430
+
1431
+ end