hayabusa 0.0.25 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,118 +2,118 @@ class Hayabusa::Database
2
2
  SCHEMA = {
3
3
  "tables" => {
4
4
  "Log" => {
5
- "columns" => [
6
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
7
- {"name" => "text_value_id", "type" => "bigint"},
8
- {"name" => "date_saved", "type" => "datetime"},
9
- {"name" => "get_keys_data_id", "type" => "bigint"},
10
- {"name" => "get_values_data_id", "type" => "bigint"},
11
- {"name" => "post_keys_data_id", "type" => "bigint"},
12
- {"name" => "post_values_data_id", "type" => "bigint"},
13
- {"name" => "cookie_keys_data_id", "type" => "bigint"},
14
- {"name" => "cookie_values_data_id", "type" => "bigint"},
15
- {"name" => "meta_keys_data_id", "type" => "bigint"},
16
- {"name" => "meta_values_data_id", "type" => "bigint"},
17
- {"name" => "session_keys_data_id", "type" => "bigint"},
18
- {"name" => "session_values_data_id", "type" => "bigint"},
19
- {"name" => "tag_data_id", "type" => "bigint"},
20
- {"name" => "comment_data_id", "type" => "bigint"}
5
+ columns: [
6
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
7
+ {name: "text_value_id", type: "bigint"},
8
+ {name: "date_saved", type: "datetime"},
9
+ {name: "get_keys_data_id", type: "bigint"},
10
+ {name: "get_values_data_id", type: "bigint"},
11
+ {name: "post_keys_data_id", type: "bigint"},
12
+ {name: "post_values_data_id", type: "bigint"},
13
+ {name: "cookie_keys_data_id", type: "bigint"},
14
+ {name: "cookie_values_data_id", type: "bigint"},
15
+ {name: "meta_keys_data_id", type: "bigint"},
16
+ {name: "meta_values_data_id", type: "bigint"},
17
+ {name: "session_keys_data_id", type: "bigint"},
18
+ {name: "session_values_data_id", type: "bigint"},
19
+ {name: "tag_data_id", type: "bigint"},
20
+ {name: "comment_data_id", type: "bigint"}
21
21
  ],
22
- "indexes" => [
23
- {"name" => "text_value_id", "columns" => ["text_value_id"]},
24
- {"name" => "tag_data_id", "columns" => ["tag_data_id"]},
25
- {"name" => "comment_data_id", "columns" => ["comment_data_id"]}
22
+ indexes: [
23
+ {name: "text_value_id", columns: ["text_value_id"]},
24
+ {name: "tag_data_id", columns: ["tag_data_id"]},
25
+ {name: "comment_data_id", columns: ["comment_data_id"]}
26
26
  ]
27
27
  },
28
28
  "Log_access" => {
29
- "columns" => [
30
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
31
- {"name" => "session_id", "type" => "bigint"},
32
- {"name" => "date_request", "type" => "datetime"},
33
- {"name" => "ip_data_id", "type" => "bigint"},
34
- {"name" => "get_keys_data_id", "type" => "bigint"},
35
- {"name" => "get_values_data_id", "type" => "bigint"},
36
- {"name" => "post_keys_data_id", "type" => "bigint"},
37
- {"name" => "post_values_data_id", "type" => "bigint"},
38
- {"name" => "cookie_keys_data_id", "type" => "bigint"},
39
- {"name" => "cookie_values_data_id", "type" => "bigint"},
40
- {"name" => "meta_keys_data_id", "type" => "bigint"},
41
- {"name" => "meta_values_data_id", "type" => "bigint"}
29
+ columns: [
30
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
31
+ {name: "session_id", type: "bigint"},
32
+ {name: "date_request", type: "datetime"},
33
+ {name: "ip_data_id", type: "bigint"},
34
+ {name: "get_keys_data_id", type: "bigint"},
35
+ {name: "get_values_data_id", type: "bigint"},
36
+ {name: "post_keys_data_id", type: "bigint"},
37
+ {name: "post_values_data_id", type: "bigint"},
38
+ {name: "cookie_keys_data_id", type: "bigint"},
39
+ {name: "cookie_values_data_id", type: "bigint"},
40
+ {name: "meta_keys_data_id", type: "bigint"},
41
+ {name: "meta_values_data_id", type: "bigint"}
42
42
  ],
43
- "indexes" => [
44
- {"name" => "session_id", "columns" => ["session_id"]},
45
- {"name" => "date_request", "columns" => ["date_request"]}
43
+ indexes: [
44
+ {name: "session_id", columns: ["session_id"]},
45
+ {name: "date_request", columns: ["date_request"]}
46
46
  ]
47
47
  },
48
48
  "Log_data" => {
49
- "columns" => [
50
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
51
- {"name" => "id_hash", "type" => "varchar"}
49
+ columns: [
50
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
51
+ {name: "id_hash", type: "varchar"}
52
52
  ],
53
- "indexes" => [
54
- {"name" => "id_hash", "columns" => ["id_hash"]}
53
+ indexes: [
54
+ {name: "id_hash", columns: ["id_hash"]}
55
55
  ]
56
56
  },
57
57
  "Log_data_link" => {
58
- "columns" => [
59
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
60
- {"name" => "no", "type" => "int"},
61
- {"name" => "data_id", "type" => "bigint"},
62
- {"name" => "value_id", "type" => "bigint"}
58
+ columns: [
59
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
60
+ {name: "no", type: "int"},
61
+ {name: "data_id", type: "bigint"},
62
+ {name: "value_id", type: "bigint"}
63
63
  ],
64
- "indexes" => [
65
- {"name" => "data_id", "columns" => ["data_id"]},
66
- {"name" => "value_id", "columns" => ["value_id"]}
64
+ indexes: [
65
+ {name: "data_id", columns: ["data_id"]},
66
+ {name: "value_id", columns: ["value_id"]}
67
67
  ]
68
68
  },
69
69
  "Log_data_value" => {
70
- "columns" => [
71
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
72
- {"name" => "value", "type" => "text"}
70
+ columns: [
71
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
72
+ {name: "value", type: "text"}
73
73
  ]
74
74
  },
75
75
  "Log_link" => {
76
- "columns" => [
77
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
78
- {"name" => "log_id", "type" => "bigint"},
79
- {"name" => "object_class_value_id", "type" => "bigint"},
80
- {"name" => "object_id", "type" => "bigint"}
76
+ columns: [
77
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
78
+ {name: "log_id", type: "bigint"},
79
+ {name: "object_class_value_id", type: "bigint"},
80
+ {name: "object_id", type: "bigint"}
81
81
  ],
82
- "indexes" => [
83
- {"name" => "log_id", "columns" => ["log_id"]},
84
- {"name" => "object_id", "columns" => ["object_id"]},
85
- {"name" => "object_class_value_id", "columns" => ["object_class_value_id"]},
86
- {"name" => "object_lookup", "columns" => ["object_class_value_id", "object_id"]},
87
- {"name" => "log_lookup", "columns" => ["object_class_value_id", "object_id", "log_id"]}
82
+ indexes: [
83
+ {name: "log_id", columns: ["log_id"]},
84
+ {name: "object_id", columns: ["object_id"]},
85
+ {name: "object_class_value_id", columns: ["object_class_value_id"]},
86
+ {name: "object_lookup", columns: ["object_class_value_id", "object_id"]},
87
+ {name: "log_lookup", columns: ["object_class_value_id", "object_id", "log_id"]}
88
88
  ]
89
89
  },
90
90
  "Session" => {
91
- "columns" => [
92
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
93
- {"name" => "idhash", "type" => "varchar"},
94
- {"name" => "sess_data", "type" => "text"},
95
- {"name" => "date_added", "type" => "datetime"},
96
- {"name" => "date_lastused", "type" => "datetime", "on_created" => proc{|d| d["db"].query("UPDATE Session SET date_lastused = '#{Datet.new.dbstr}'")}},
97
- {"name" => "ip", "type" => "varchar", "maxlength" => 15},
98
- {"name" => "user_agent", "type" => "text"},
99
- {"name" => "remember", "type" => "enum", "maxlength" => "'0','1'", "default" => 0, "comment" => "If the session should be remembered or not."}
91
+ columns: [
92
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
93
+ {name: "idhash", type: "varchar"},
94
+ {name: "sess_data", type: "text"},
95
+ {name: "date_added", type: "datetime"},
96
+ {name: "date_lastused", type: "datetime", on_created: proc{|d| d["db"].query("UPDATE Session SET date_lastused = '#{Datet.new.dbstr}'")}},
97
+ {name: "ip", type: "varchar", maxlength: 15},
98
+ {name: "user_agent", type: "text"},
99
+ {name: "remember", type: "enum", maxlength: "'0','1'", default: 0, comment: "If the session should be remembered or not."}
100
100
  ],
101
- "indexes" => [
102
- {"name" => "date_added", "columns" => ["date_added"]},
103
- {"name" => "idhash", "columns" => ["idhash"]}
101
+ indexes: [
102
+ {name: "date_added", columns: ["date_added"]},
103
+ {name: "idhash", columns: ["idhash"]}
104
104
  ]
105
105
  },
106
106
  "Translation" => {
107
- "columns" => [
108
- {"name" => "id", "type" => "bigint", "autoincr" => true, "primarykey" => true},
109
- {"name" => "object_class", "type" => "varchar", "maxlength" => 50},
110
- {"name" => "object_id", "type" => "bigint"},
111
- {"name" => "key", "type" => "varchar", "maxlength" => 50},
112
- {"name" => "locale", "type" => "varchar", "maxlength" => 5},
113
- {"name" => "value", "type" => "text"}
107
+ columns: [
108
+ {name: "id", type: "bigint", autoincr: true, primarykey: true},
109
+ {name: "object_class", type: "varchar", maxlength: 50},
110
+ {name: "object_id", type: "bigint"},
111
+ {name: "key", type: "varchar", maxlength: 50},
112
+ {name: "locale", type: "varchar", maxlength: 5},
113
+ {name: "value", type: "text"}
114
114
  ],
115
- "indexes" => [
116
- {"name" => "lookup", "columns" => ["object_class", "object_id", "key", "locale"]}
115
+ indexes: [
116
+ {name: "lookup", columns: ["object_class", "object_id", "key", "locale"]}
117
117
  ]
118
118
  }
119
119
  }