or_create.sql 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. CREATE TABLE version (
  2. table_name string(32) NOT NULL,
  3. table_version int NOT NULL DEFAULT '0'
  4. );
  5. INSERT INTO version (table_name, table_version) values ('acc','3');
  6. CREATE TABLE acc (
  7. id int NOT NULL,
  8. from_uid string(64),
  9. to_uid string(64),
  10. to_did string(64),
  11. from_did string(64),
  12. sip_from string(255),
  13. sip_to string(255),
  14. sip_status string(128),
  15. sip_method string(16),
  16. in_ruri string(255),
  17. out_ruri string(255),
  18. from_uri string(255),
  19. to_uri string(255),
  20. sip_callid string(255),
  21. sip_cseq int,
  22. digest_username string(64),
  23. digest_realm string(255),
  24. from_tag string(128),
  25. to_tag string(128),
  26. src_ip int,
  27. src_port short,
  28. request_timestamp datetime NOT NULL,
  29. response_timestamp datetime NOT NULL,
  30. flags int NOT NULL DEFAULT '0',
  31. attrs string(255),
  32. acc_id_key UNIQUE (id, ),
  33. );
  34. INSERT INTO version (table_name, table_version) values ('missed_calls','3');
  35. CREATE TABLE missed_calls (
  36. id int NOT NULL,
  37. from_uid string(64),
  38. to_uid string(64),
  39. to_did string(64),
  40. from_did string(64),
  41. sip_from string(255),
  42. sip_to string(255),
  43. sip_status string(128),
  44. sip_method string(16),
  45. in_ruri string(255),
  46. out_ruri string(255),
  47. from_uri string(255),
  48. to_uri string(255),
  49. sip_callid string(255),
  50. sip_cseq int,
  51. digest_username string(64),
  52. digest_realm string(255),
  53. from_tag string(128),
  54. to_tag string(128),
  55. src_ip int,
  56. src_port short,
  57. request_timestamp datetime NOT NULL,
  58. response_timestamp datetime NOT NULL,
  59. flags int NOT NULL DEFAULT '0',
  60. attrs string(255),
  61. mc_id_key UNIQUE (id, ),
  62. );
  63. INSERT INTO version (table_name, table_version) values ('credentials','6');
  64. CREATE TABLE credentials (
  65. auth_username string(64) NOT NULL,
  66. realm string(64) NOT NULL,
  67. password string(28) NOT NULL DEFAULT '',
  68. flags int NOT NULL DEFAULT '0',
  69. ha1 string(32) NOT NULL,
  70. ha1b string(32) NOT NULL DEFAULT '',
  71. uid string(64) NOT NULL
  72. );
  73. INSERT INTO version (table_name, table_version) values ('attr_types','2');
  74. CREATE TABLE attr_types (
  75. name string(32) NOT NULL,
  76. rich_type string(32) NOT NULL DEFAULT 'string',
  77. raw_type int NOT NULL DEFAULT '2',
  78. type_spec string(255) DEFAULT NULL,
  79. description string(255) DEFAULT NULL,
  80. default_flags int NOT NULL DEFAULT '0',
  81. flags int NOT NULL DEFAULT '0',
  82. priority int NOT NULL DEFAULT '0',
  83. ordering int NOT NULL DEFAULT '0',
  84. upt_idx1 UNIQUE (name, )
  85. );
  86. INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2', '1');
  87. INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('did', '2', '1');
  88. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200');
  89. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('fr_timer', '0', 'int', '@ff_fr_timer', '33', '1073807616', '140');
  90. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('fr_inv_timer', '0', 'int', '@ff_fr_inv_timer', '33', '1073807616', '150');
  91. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('gflags', '0', 'int', 'global flags', '33', '1073741824', '0');
  92. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('digest_realm', '2', 'string', 'digest realm', '33', '65536', '0');
  93. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('acl', '2', 'string', 'access control list of user', '33', '1024', '0', '0');
  94. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('first_name', '2', 'string', '@ff_first_name', '32', '2048', '256', '10');
  95. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('last_name', '2', 'string', '@ff_last_name', '32', '2048', '256', '20');
  96. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('email', '2', 'email_adr', '@ff_email', '33', '6144', '256', '30');
  97. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('timezone', '2', 'timezone', '@ff_timezone', '32', '2048', '1073807616', '60');
  98. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_allow_find', '0', 'boolean', '@ff_allow_lookup_for_me', '32', '0', '256', '110');
  99. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('lang', '2', 'lang', '@ff_language', '33', '0', '1073807616', '50');
  100. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_show_status', '0', 'boolean', '@ff_status_visibility', '32', '0', '1073742080', '100');
  101. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_admin', '2', 'string', 'admin of domain', '32', '1024', '0');
  102. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_owner', '2', 'string', 'owner of domain', '32', '0', '0');
  103. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_domain_default_flags', '0', 'int', '@ff_domain_def_f', '32', '4096', '1073741824');
  104. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_deleted_ts', '0', 'int', 'deleted timestamp', '32', '0', '0');
  105. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('phone', '2', 'string', '@ff_phone', '32', '2048', '256', '40');
  106. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_acl_control', '2', 'string', 'acl control', '32', '1024', '0');
  107. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_credential_default_flags', '0', 'int', '@ff_credential_def_f', '32', '4096', '1073741824');
  108. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_uri_default_flags', '0', 'int', '@ff_uri_def_f', '32', '4096', '1073741824');
  109. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_is_admin', '0', 'boolean', 'admin privilege', '32', '0', '0');
  110. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_is_hostmaster', '0', 'boolean', 'hostmaster privilege', '32', '0', '0');
  111. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_confirmation', '2', 'string', 'registration confirmation', '32', '0', '0');
  112. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_pending_ts', '2', 'string', 'registration timestamp', '32', '0', '0');
  113. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_require_confirm', '0', 'boolean', '@ff_reg_confirmation', '32', '0', '1073807360', '120');
  114. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('sw_send_missed', '0', 'boolean', '@ff_send_daily_missed_calls', '32', '0', '1073807616', '130');
  115. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, type_spec) VALUES ('uid_format', '2', 'list', '@ff_uid_format', '32', '0', '1073741824', '160', 'a:3:{i:0;s:14:"username@realm";i:1;s:21:"integer (incremental)";i:2;s:15:"UUID by RFC4122";}');
  116. INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering, type_spec) VALUES ('did_format', '2', 'list', '@ff_did_format', '32', '0', '1073741824', '170', 'a:3:{i:0;s:11:"domain name";i:1;s:21:"integer (incremental)";i:2;s:15:"UUID by RFC4122";}');
  117. INSERT INTO version (table_name, table_version) values ('global_attrs','1');
  118. CREATE TABLE global_attrs (
  119. name string(32) NOT NULL,
  120. type int NOT NULL DEFAULT '0',
  121. value string(255),
  122. flags int NOT NULL DEFAULT '0',
  123. global_attrs_idx UNIQUE (name, value, )
  124. );
  125. INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
  126. INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_credential_default_flags', '0', '33', '32');
  127. INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
  128. INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
  129. INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
  130. INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');
  131. INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
  132. INSERT INTO global_attrs (name, type, value, flags) VALUES ('uid_format', '2', '0', '32');
  133. INSERT INTO global_attrs (name, type, value, flags) VALUES ('did_format', '2', '0', '32');
  134. INSERT INTO version (table_name, table_version) values ('domain_attrs','1');
  135. CREATE TABLE domain_attrs (
  136. did string(64),
  137. name string(32) NOT NULL,
  138. type int NOT NULL DEFAULT '0',
  139. value string(255),
  140. flags int NOT NULL DEFAULT '0',
  141. domain_attr_idx UNIQUE (did, name, value, ),
  142. );
  143. INSERT INTO version (table_name, table_version) values ('user_attrs','3');
  144. CREATE TABLE user_attrs (
  145. uid string(64) NOT NULL,
  146. name string(32) NOT NULL,
  147. value string(255),
  148. type int NOT NULL DEFAULT '0',
  149. flags int NOT NULL DEFAULT '0',
  150. userattrs_idx UNIQUE (uid, name, value, )
  151. );
  152. INSERT INTO version (table_name, table_version) values ('domain','2');
  153. CREATE TABLE domain (
  154. did string(64) NOT NULL,
  155. domain string(128) NOT NULL,
  156. flags int NOT NULL DEFAULT '0',
  157. domain_idx UNIQUE (domain, )
  158. );
  159. INSERT INTO version (table_name, table_version) values ('domain_settings','1');
  160. CREATE TABLE domain_settings (
  161. did string(64) NOT NULL,
  162. filename string(255) NOT NULL,
  163. version int NOT NULL,
  164. timestamp int,
  165. content binary,
  166. flags int NOT NULL DEFAULT '0',
  167. ds_id UNIQUE (did, filename, version, ),
  168. );
  169. INSERT INTO version (table_name, table_version) values ('location','8');
  170. CREATE TABLE location (
  171. uid string(64) NOT NULL,
  172. contact string(255) NOT NULL,
  173. received string(255),
  174. expires datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
  175. q float NOT NULL DEFAULT '1.0',
  176. callid string(255),
  177. cseq int,
  178. flags int NOT NULL DEFAULT '0',
  179. user_agent string(64),
  180. instance string(255),
  181. location_key UNIQUE (uid, contact, ),
  182. );
  183. INSERT INTO version (table_name, table_version) values ('trusted','1');
  184. CREATE TABLE trusted (
  185. src_ip string(39) NOT NULL,
  186. proto string(4) NOT NULL,
  187. from_pattern string(64) NOT NULL,
  188. trusted_idx UNIQUE (src_ip, proto, from_pattern, )
  189. );
  190. INSERT INTO version (table_name, table_version) values ('phonebook','1');
  191. CREATE TABLE phonebook (
  192. id int NOT NULL,
  193. uid string(64) NOT NULL,
  194. fname string(32),
  195. lname string(32),
  196. sip_uri string(255) NOT NULL,
  197. pb_idx UNIQUE (id, ),
  198. );
  199. INSERT INTO version (table_name, table_version) values ('gw','3');
  200. CREATE TABLE gw (
  201. gw_name string(128) NOT NULL,
  202. ip_addr int NOT NULL,
  203. port short,
  204. uri_scheme char,
  205. transport short,
  206. grp_id int NOT NULL,
  207. gw_idx1 UNIQUE (gw_name, ),
  208. );
  209. INSERT INTO version (table_name, table_version) values ('gw_grp','2');
  210. CREATE TABLE gw_grp (
  211. grp_id int NOT NULL,
  212. grp_name string(64) NOT NULL,
  213. gwgrp_idx UNIQUE (grp_id, )
  214. );
  215. INSERT INTO version (table_name, table_version) values ('lcr','1');
  216. CREATE TABLE lcr (
  217. prefix string(16) NOT NULL,
  218. from_uri string(255) NOT NULL DEFAULT '%',
  219. grp_id int,
  220. priority int
  221. );
  222. INSERT INTO version (table_name, table_version) values ('grp','3');
  223. CREATE TABLE grp (
  224. uid string(64) NOT NULL DEFAULT '',
  225. grp string(64) NOT NULL DEFAULT '',
  226. last_modified datetime NOT NULL DEFAULT '1970-01-01 00:00:00'
  227. );
  228. INSERT INTO version (table_name, table_version) values ('silo','4');
  229. CREATE TABLE silo (
  230. mid int NOT NULL,
  231. from_hdr string(255) NOT NULL,
  232. to_hdr string(255) NOT NULL,
  233. ruri string(255) NOT NULL,
  234. uid string(64) NOT NULL,
  235. inc_time datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
  236. exp_time datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
  237. ctype string(128) NOT NULL DEFAULT 'text/plain',
  238. body binary NOT NULL DEFAULT '',
  239. silo_idx1 UNIQUE (mid, )
  240. );
  241. INSERT INTO version (table_name, table_version) values ('uri','2');
  242. CREATE TABLE uri (
  243. uid string(64) NOT NULL,
  244. did string(64) NOT NULL,
  245. username string(64) NOT NULL,
  246. flags int NOT NULL DEFAULT '0'
  247. );
  248. INSERT INTO version (table_name, table_version) values ('speed_dial','2');
  249. CREATE TABLE speed_dial (
  250. id int NOT NULL,
  251. uid string(64) NOT NULL,
  252. dial_username string(64) NOT NULL,
  253. dial_did string(64) NOT NULL,
  254. new_uri string(255) NOT NULL,
  255. speeddial_idx1 UNIQUE (uid, dial_did, dial_username, ),
  256. speeddial_id UNIQUE (id, ),
  257. );
  258. INSERT INTO version (table_name, table_version) values ('sd_attrs','1');
  259. CREATE TABLE sd_attrs (
  260. id string(64) NOT NULL,
  261. name string(32) NOT NULL,
  262. value string(255),
  263. type int NOT NULL DEFAULT '0',
  264. flags int NOT NULL DEFAULT '0',
  265. sd_idx UNIQUE (id, name, value, )
  266. );
  267. INSERT INTO version (table_name, table_version) values ('presentity','1');
  268. CREATE TABLE presentity (
  269. presid int(10) NOT NULL,
  270. uri string(255) NOT NULL,
  271. uid string(64) NOT NULL,
  272. pdomain string(128) NOT NULL,
  273. presentity_key UNIQUE (presid, ),
  274. );
  275. INSERT INTO version (table_name, table_version) values ('presentity_notes','1');
  276. CREATE TABLE presentity_notes (
  277. dbid string(64) NOT NULL,
  278. presid int(10) NOT NULL,
  279. etag string(64) NOT NULL,
  280. note string(128) NOT NULL,
  281. lang string(64) NOT NULL,
  282. expires datetime NOT NULL DEFAULT '2005-12-07 08:13:15',
  283. pnotes_idx1 UNIQUE (dbid, )
  284. );
  285. INSERT INTO version (table_name, table_version) values ('presentity_persons','1');
  286. CREATE TABLE presentity_persons (
  287. dbid string(64) NOT NULL,
  288. presid int(10) NOT NULL,
  289. etag string(64) NOT NULL,
  290. person_element binary NOT NULL,
  291. id string(128) NOT NULL,
  292. expires datetime NOT NULL DEFAULT '2005-12-07 08:13:15',
  293. prespersons_idx1 UNIQUE (dbid, )
  294. );
  295. INSERT INTO version (table_name, table_version) values ('presentity_contact','1');
  296. CREATE TABLE presentity_contact (
  297. contactid int(10) NOT NULL,
  298. presid int(10) NOT NULL,
  299. basic string(32) NOT NULL DEFAULT 'offline',
  300. status string(32) NOT NULL,
  301. location string(128) NOT NULL,
  302. expires datetime NOT NULL DEFAULT '2004-05-28 21:32:15',
  303. placeid int(10),
  304. priority float NOT NULL DEFAULT '0.5',
  305. contact string(255),
  306. tupleid string(64) NOT NULL,
  307. prescaps int(10) NOT NULL,
  308. etag string(64) NOT NULL,
  309. published_id string(64) NOT NULL,
  310. pc_idx1 UNIQUE (contactid, ),
  311. );
  312. INSERT INTO version (table_name, table_version) values ('watcherinfo','1');
  313. CREATE TABLE watcherinfo (
  314. r_uri string(255) NOT NULL,
  315. w_uri string(255) NOT NULL,
  316. display_name string(128) NOT NULL,
  317. s_id string(64) NOT NULL,
  318. package string(32) NOT NULL DEFAULT 'presence',
  319. status string(32) NOT NULL DEFAULT 'pending',
  320. event string(32) NOT NULL,
  321. expires int NOT NULL,
  322. accepts int NOT NULL,
  323. presid int(10) NOT NULL,
  324. server_contact string(255) NOT NULL,
  325. dialog binary NOT NULL,
  326. doc_index int NOT NULL,
  327. wi_idx1 UNIQUE (s_id, ),
  328. );
  329. INSERT INTO version (table_name, table_version) values ('tuple_notes','1');
  330. CREATE TABLE tuple_notes (
  331. presid int(10) NOT NULL,
  332. tupleid string(64) NOT NULL,
  333. note string(128) NOT NULL,
  334. lang string(64) NOT NULL
  335. );
  336. INSERT INTO version (table_name, table_version) values ('offline_winfo','1');
  337. CREATE TABLE offline_winfo (
  338. uid string(64) NOT NULL,
  339. watcher string(255) NOT NULL,
  340. events string(64) NOT NULL,
  341. domain string(128),
  342. status string(32),
  343. created_on datetime NOT NULL DEFAULT '2006-01-31 13:13:13',
  344. expires_on datetime NOT NULL DEFAULT '2006-01-31 13:13:13',
  345. dbid int(10) NOT NULL
  346. );
  347. INSERT INTO version (table_name, table_version) values ('rls_subscription','1');
  348. CREATE TABLE rls_subscription (
  349. id string(48) NOT NULL,
  350. doc_version int NOT NULL,
  351. dialog binary NOT NULL,
  352. expires datetime NOT NULL DEFAULT '2005-12-02 09:00:13',
  353. status int NOT NULL,
  354. contact string(255) NOT NULL,
  355. uri string(255) NOT NULL,
  356. package string(128) NOT NULL,
  357. w_uri string(255) NOT NULL,
  358. xcap_root string(255) NOT NULL,
  359. rls_subscription_key UNIQUE (id, )
  360. );
  361. INSERT INTO version (table_name, table_version) values ('rls_vs','1');
  362. CREATE TABLE rls_vs (
  363. id string(48) NOT NULL,
  364. rls_id string(48) NOT NULL,
  365. uri string(255) NOT NULL,
  366. rls_vs_key UNIQUE (id, )
  367. );
  368. INSERT INTO version (table_name, table_version) values ('rls_vs_names','1');
  369. CREATE TABLE rls_vs_names (
  370. id string(48) NOT NULL,
  371. name string(64),
  372. lang string(64)
  373. );
  374. INSERT INTO version (table_name, table_version) values ('i18n','1');
  375. CREATE TABLE i18n (
  376. code int NOT NULL,
  377. reason_re string(255) DEFAULT NULL,
  378. lang string(32) NOT NULL,
  379. new_reason string(255)
  380. );
  381. INSERT INTO i18n (code, lang, new_reason) VALUES ('100', 'en_US.ascii', 'Trying');
  382. INSERT INTO i18n (code, lang, new_reason) VALUES ('180', 'en_US.ascii', 'Ringing');
  383. INSERT INTO i18n (code, lang, new_reason) VALUES ('181', 'en_US.ascii', 'Call Is Being Forwarded');
  384. INSERT INTO i18n (code, lang, new_reason) VALUES ('182', 'en_US.ascii', 'Queued');
  385. INSERT INTO i18n (code, lang, new_reason) VALUES ('183', 'en_US.ascii', 'Session Progress');
  386. INSERT INTO i18n (code, lang, new_reason) VALUES ('200', 'en_US.ascii', 'OK');
  387. INSERT INTO i18n (code, lang, new_reason) VALUES ('202', 'en_US.ascii', 'Pending');
  388. INSERT INTO i18n (code, lang, new_reason) VALUES ('300', 'en_US.ascii', 'Multiple Choices');
  389. INSERT INTO i18n (code, lang, new_reason) VALUES ('301', 'en_US.ascii', 'Moved Permanently');
  390. INSERT INTO i18n (code, lang, new_reason) VALUES ('302', 'en_US.ascii', 'Moved Temporarily');
  391. INSERT INTO i18n (code, lang, new_reason) VALUES ('305', 'en_US.ascii', 'Use Proxy');
  392. INSERT INTO i18n (code, lang, new_reason) VALUES ('380', 'en_US.ascii', 'Alternative Service');
  393. INSERT INTO i18n (code, lang, new_reason) VALUES ('400', 'en_US.ascii', 'Bad Request');
  394. INSERT INTO i18n (code, lang, new_reason) VALUES ('401', 'en_US.ascii', 'Unauthorized');
  395. INSERT INTO i18n (code, lang, new_reason) VALUES ('402', 'en_US.ascii', 'Payment Required');
  396. INSERT INTO i18n (code, lang, new_reason) VALUES ('403', 'en_US.ascii', 'Forbidden');
  397. INSERT INTO i18n (code, lang, new_reason) VALUES ('404', 'en_US.ascii', 'Not Found');
  398. INSERT INTO i18n (code, lang, new_reason) VALUES ('405', 'en_US.ascii', 'Method Not Allowed');
  399. INSERT INTO i18n (code, lang, new_reason) VALUES ('406', 'en_US.ascii', 'Not Acceptable');
  400. INSERT INTO i18n (code, lang, new_reason) VALUES ('407', 'en_US.ascii', 'Proxy Authentication Required');
  401. INSERT INTO i18n (code, lang, new_reason) VALUES ('408', 'en_US.ascii', 'Request Timeout');
  402. INSERT INTO i18n (code, lang, new_reason) VALUES ('410', 'en_US.ascii', 'Gone');
  403. INSERT INTO i18n (code, lang, new_reason) VALUES ('413', 'en_US.ascii', 'Request Entity Too Large');
  404. INSERT INTO i18n (code, lang, new_reason) VALUES ('414', 'en_US.ascii', 'Request-URI Too Long');
  405. INSERT INTO i18n (code, lang, new_reason) VALUES ('415', 'en_US.ascii', 'Unsupported Media Type');
  406. INSERT INTO i18n (code, lang, new_reason) VALUES ('416', 'en_US.ascii', 'Unsupported URI Scheme');
  407. INSERT INTO i18n (code, lang, new_reason) VALUES ('420', 'en_US.ascii', 'Bad Extension');
  408. INSERT INTO i18n (code, lang, new_reason) VALUES ('421', 'en_US.ascii', 'Extension Required');
  409. INSERT INTO i18n (code, lang, new_reason) VALUES ('423', 'en_US.ascii', 'Interval Too Brief');
  410. INSERT INTO i18n (code, lang, new_reason) VALUES ('480', 'en_US.ascii', 'Temporarily Unavailable');
  411. INSERT INTO i18n (code, lang, new_reason) VALUES ('481', 'en_US.ascii', 'Call/Transaction Does Not Exist');
  412. INSERT INTO i18n (code, lang, new_reason) VALUES ('482', 'en_US.ascii', 'Loop Detected');
  413. INSERT INTO i18n (code, lang, new_reason) VALUES ('483', 'en_US.ascii', 'Too Many Hops');
  414. INSERT INTO i18n (code, lang, new_reason) VALUES ('484', 'en_US.ascii', 'Address Incomplete');
  415. INSERT INTO i18n (code, lang, new_reason) VALUES ('485', 'en_US.ascii', 'Ambiguous');
  416. INSERT INTO i18n (code, lang, new_reason) VALUES ('486', 'en_US.ascii', 'Busy Here');
  417. INSERT INTO i18n (code, lang, new_reason) VALUES ('487', 'en_US.ascii', 'Request Terminated');
  418. INSERT INTO i18n (code, lang, new_reason) VALUES ('488', 'en_US.ascii', 'Not Acceptable Here');
  419. INSERT INTO i18n (code, lang, new_reason) VALUES ('491', 'en_US.ascii', 'Request Pending');
  420. INSERT INTO i18n (code, lang, new_reason) VALUES ('493', 'en_US.ascii', 'Undecipherable');
  421. INSERT INTO i18n (code, lang, new_reason) VALUES ('500', 'en_US.ascii', 'Server Internal Error');
  422. INSERT INTO i18n (code, lang, new_reason) VALUES ('501', 'en_US.ascii', 'Not Implemented');
  423. INSERT INTO i18n (code, lang, new_reason) VALUES ('502', 'en_US.ascii', 'Bad Gateway');
  424. INSERT INTO i18n (code, lang, new_reason) VALUES ('503', 'en_US.ascii', 'Service Unavailable');
  425. INSERT INTO i18n (code, lang, new_reason) VALUES ('504', 'en_US.ascii', 'Server Time-out');
  426. INSERT INTO i18n (code, lang, new_reason) VALUES ('505', 'en_US.ascii', 'Version Not Supported');
  427. INSERT INTO i18n (code, lang, new_reason) VALUES ('513', 'en_US.ascii', 'Message Too Large');
  428. INSERT INTO i18n (code, lang, new_reason) VALUES ('600', 'en_US.ascii', 'Busy Everywhere');
  429. INSERT INTO i18n (code, lang, new_reason) VALUES ('603', 'en_US.ascii', 'Decline');
  430. INSERT INTO i18n (code, lang, new_reason) VALUES ('604', 'en_US.ascii', 'Does Not Exist Anywhere');
  431. INSERT INTO i18n (code, lang, new_reason) VALUES ('606', 'en_US.ascii', 'Not Acceptable');
  432. INSERT INTO i18n (code, lang, new_reason) VALUES ('100', 'cs_CZ.ascii', 'Navazuji spojeni');
  433. INSERT INTO i18n (code, lang, new_reason) VALUES ('180', 'cs_CZ.ascii', 'Vyzvani');
  434. INSERT INTO i18n (code, lang, new_reason) VALUES ('181', 'cs_CZ.ascii', 'Hovor je presmerovan');
  435. INSERT INTO i18n (code, lang, new_reason) VALUES ('182', 'cs_CZ.ascii', 'Jste v poradi');
  436. INSERT INTO i18n (code, lang, new_reason) VALUES ('183', 'cs_CZ.ascii', 'Probiha navazovani spojeni');
  437. INSERT INTO i18n (code, lang, new_reason) VALUES ('200', 'cs_CZ.ascii', 'Uspesne provedeno');
  438. INSERT INTO i18n (code, lang, new_reason) VALUES ('202', 'cs_CZ.ascii', 'Bude vyrizeno pozdeji');
  439. INSERT INTO i18n (code, lang, new_reason) VALUES ('300', 'cs_CZ.ascii', 'Existuje vice moznosti');
  440. INSERT INTO i18n (code, lang, new_reason) VALUES ('301', 'cs_CZ.ascii', 'Trvale presmerovano');
  441. INSERT INTO i18n (code, lang, new_reason) VALUES ('302', 'cs_CZ.ascii', 'Docasne presmerovano');
  442. INSERT INTO i18n (code, lang, new_reason) VALUES ('305', 'cs_CZ.ascii', 'Pouzijte jiny server');
  443. INSERT INTO i18n (code, lang, new_reason) VALUES ('380', 'cs_CZ.ascii', 'Alternativni sluzba');
  444. INSERT INTO i18n (code, lang, new_reason) VALUES ('400', 'cs_CZ.ascii', 'Chyba protokolu');
  445. INSERT INTO i18n (code, lang, new_reason) VALUES ('401', 'cs_CZ.ascii', 'Overeni totoznosti');
  446. INSERT INTO i18n (code, lang, new_reason) VALUES ('402', 'cs_CZ.ascii', 'Placena sluzba');
  447. INSERT INTO i18n (code, lang, new_reason) VALUES ('403', 'cs_CZ.ascii', 'Zakazano');
  448. INSERT INTO i18n (code, lang, new_reason) VALUES ('404', 'cs_CZ.ascii', 'Nenalezeno');
  449. INSERT INTO i18n (code, lang, new_reason) VALUES ('405', 'cs_CZ.ascii', 'Nepovoleny prikaz');
  450. INSERT INTO i18n (code, lang, new_reason) VALUES ('406', 'cs_CZ.ascii', 'Neni povoleno');
  451. INSERT INTO i18n (code, lang, new_reason) VALUES ('407', 'cs_CZ.ascii', 'Server vyzaduje overeni totoznosti');
  452. INSERT INTO i18n (code, lang, new_reason) VALUES ('408', 'cs_CZ.ascii', 'Casovy limit vyprsel');
  453. INSERT INTO i18n (code, lang, new_reason) VALUES ('410', 'cs_CZ.ascii', 'Nenalezeno');
  454. INSERT INTO i18n (code, lang, new_reason) VALUES ('413', 'cs_CZ.ascii', 'Prilis dlouhy identifikator');
  455. INSERT INTO i18n (code, lang, new_reason) VALUES ('414', 'cs_CZ.ascii', 'Request-URI je prilis dlouhe');
  456. INSERT INTO i18n (code, lang, new_reason) VALUES ('415', 'cs_CZ.ascii', 'Nepodporovany typ dat');
  457. INSERT INTO i18n (code, lang, new_reason) VALUES ('416', 'cs_CZ.ascii', 'Nepodporovany typ identifikatoru');
  458. INSERT INTO i18n (code, lang, new_reason) VALUES ('420', 'cs_CZ.ascii', 'Neplatne cislo linky');
  459. INSERT INTO i18n (code, lang, new_reason) VALUES ('421', 'cs_CZ.ascii', 'Zadejte cislo linky');
  460. INSERT INTO i18n (code, lang, new_reason) VALUES ('423', 'cs_CZ.ascii', 'Prilis kratky interval');
  461. INSERT INTO i18n (code, lang, new_reason) VALUES ('480', 'cs_CZ.ascii', 'Docasne nedostupne');
  462. INSERT INTO i18n (code, lang, new_reason) VALUES ('481', 'cs_CZ.ascii', 'Spojeni nenalezeno');
  463. INSERT INTO i18n (code, lang, new_reason) VALUES ('482', 'cs_CZ.ascii', 'Zprava se zacyklila');
  464. INSERT INTO i18n (code, lang, new_reason) VALUES ('483', 'cs_CZ.ascii', 'Prilis mnoho kroku');
  465. INSERT INTO i18n (code, lang, new_reason) VALUES ('484', 'cs_CZ.ascii', 'Neuplna adresa');
  466. INSERT INTO i18n (code, lang, new_reason) VALUES ('485', 'cs_CZ.ascii', 'Nejednoznacne');
  467. INSERT INTO i18n (code, lang, new_reason) VALUES ('486', 'cs_CZ.ascii', 'Volany je zaneprazdnen');
  468. INSERT INTO i18n (code, lang, new_reason) VALUES ('487', 'cs_CZ.ascii', 'Prikaz predcasne ukoncen');
  469. INSERT INTO i18n (code, lang, new_reason) VALUES ('488', 'cs_CZ.ascii', 'Nebylo akceptovano');
  470. INSERT INTO i18n (code, lang, new_reason) VALUES ('491', 'cs_CZ.ascii', 'Cekam na odpoved');
  471. INSERT INTO i18n (code, lang, new_reason) VALUES ('493', 'cs_CZ.ascii', 'Nelze dekodovat');
  472. INSERT INTO i18n (code, lang, new_reason) VALUES ('500', 'cs_CZ.ascii', 'Interni chyba serveru');
  473. INSERT INTO i18n (code, lang, new_reason) VALUES ('501', 'cs_CZ.ascii', 'Neni implementovano');
  474. INSERT INTO i18n (code, lang, new_reason) VALUES ('502', 'cs_CZ.ascii', 'Chybna brana');
  475. INSERT INTO i18n (code, lang, new_reason) VALUES ('503', 'cs_CZ.ascii', 'Sluzba neni dostupna');
  476. INSERT INTO i18n (code, lang, new_reason) VALUES ('504', 'cs_CZ.ascii', 'Casovy limit serveru vyprsel');
  477. INSERT INTO i18n (code, lang, new_reason) VALUES ('505', 'cs_CZ.ascii', 'Nepodporovana verze protokolu');
  478. INSERT INTO i18n (code, lang, new_reason) VALUES ('513', 'cs_CZ.ascii', 'Zprava je prilis dlouha');
  479. INSERT INTO i18n (code, lang, new_reason) VALUES ('600', 'cs_CZ.ascii', 'Uzivatel je zaneprazdnen');
  480. INSERT INTO i18n (code, lang, new_reason) VALUES ('603', 'cs_CZ.ascii', 'Odmitnuto');
  481. INSERT INTO i18n (code, lang, new_reason) VALUES ('604', 'cs_CZ.ascii', 'Neexistujici uzivatel nebo sluzba');
  482. INSERT INTO i18n (code, lang, new_reason) VALUES ('606', 'cs_CZ.ascii', 'Nelze akceptovat');
  483. INSERT INTO version (table_name, table_version) values ('pdt','1');
  484. CREATE TABLE pdt (
  485. prefix string(32) NOT NULL,
  486. domain string(255) NOT NULL,
  487. pdt_idx UNIQUE (prefix, )
  488. );
  489. INSERT INTO version (table_name, table_version) values ('cpl','2');
  490. CREATE TABLE cpl (
  491. uid string(64) NOT NULL,
  492. cpl_xml binary,
  493. cpl_bin binary,
  494. cpl_key UNIQUE (uid, )
  495. );
  496. INSERT INTO version (table_name, table_version) values ('customers','1');
  497. CREATE TABLE customers (
  498. cid int NOT NULL,
  499. name string(128) NOT NULL,
  500. address string(255),
  501. phone string(64),
  502. email string(255),
  503. cu_idx UNIQUE (cid, )
  504. );