Selaa lähdekoodia

- new version of database scripts generated

Jan Janak 19 vuotta sitten
vanhempi
commit
0aaa6f74fe
2 muutettua tiedostoa jossa 443 lisäystä ja 432 poistoa
  1. 299 288
      scripts/oracle/or_create.sql
  2. 144 144
      scripts/oracle/or_data.sql

+ 299 - 288
scripts/oracle/or_create.sql

@@ -1,444 +1,455 @@
 CREATE TABLE version (
-    table_name string(32) NOT NULL,
-    table_version int NOT NULL DEFAULT '0'
+    table_name VARCHAR(32) NOT NULL,
+    table_version INT UNSIGNED NOT NULL DEFAULT '0'
 );
 
 INSERT INTO version (table_name, table_version) values ('acc','3');
 CREATE TABLE acc (
-    id int NOT NULL,
-    from_uid string(64),
-    to_uid string(64),
-    to_did string(64),
-    from_did string(64),
-    sip_from string(255),
-    sip_to string(255),
-    sip_status string(128),
-    sip_method string(16),
-    in_ruri string(255),
-    out_ruri string(255),
-    from_uri string(255),
-    to_uri string(255),
-    sip_callid string(255),
-    sip_cseq int,
-    digest_username string(64),
-    digest_realm string(255),
-    from_tag string(128),
-    to_tag string(128),
-    src_ip int,
-    src_port short,
-    request_timestamp datetime NOT NULL,
-    response_timestamp datetime NOT NULL,
-    flags int NOT NULL DEFAULT '0',
-    attrs string(255),
-    acc_id_key UNIQUE (id, ),
-
+    id INT NOT NULL,
+    from_uid VARCHAR(64),
+    to_uid VARCHAR(64),
+    to_did VARCHAR(64),
+    from_did VARCHAR(64),
+    sip_from VARCHAR(255),
+    sip_to VARCHAR(255),
+    sip_status VARCHAR(128),
+    sip_method VARCHAR(16),
+    in_ruri VARCHAR(255),
+    out_ruri VARCHAR(255),
+    from_uri VARCHAR(255),
+    to_uri VARCHAR(255),
+    sip_callid VARCHAR(255),
+    sip_cseq INT,
+    digest_username VARCHAR(64),
+    digest_realm VARCHAR(255),
+    from_tag VARCHAR(128),
+    to_tag VARCHAR(128),
+    src_ip INT UNSIGNED,
+    src_port SMALLINT UNSIGNED,
+    request_timestamp DATETIME NOT NULL,
+    response_timestamp DATETIME NOT NULL,
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    attrs VARCHAR(255),
+    UNIQUE KEY acc_id_key (id),
+    KEY acc_cid_key (sip_callid)
 );
 
 INSERT INTO version (table_name, table_version) values ('missed_calls','3');
 CREATE TABLE missed_calls (
-    id int NOT NULL,
-    from_uid string(64),
-    to_uid string(64),
-    to_did string(64),
-    from_did string(64),
-    sip_from string(255),
-    sip_to string(255),
-    sip_status string(128),
-    sip_method string(16),
-    in_ruri string(255),
-    out_ruri string(255),
-    from_uri string(255),
-    to_uri string(255),
-    sip_callid string(255),
-    sip_cseq int,
-    digest_username string(64),
-    digest_realm string(255),
-    from_tag string(128),
-    to_tag string(128),
-    src_ip int,
-    src_port short,
-    request_timestamp datetime NOT NULL,
-    response_timestamp datetime NOT NULL,
-    flags int NOT NULL DEFAULT '0',
-    attrs string(255),
-    mc_id_key UNIQUE (id, ),
-
+    id INT NOT NULL,
+    from_uid VARCHAR(64),
+    to_uid VARCHAR(64),
+    to_did VARCHAR(64),
+    from_did VARCHAR(64),
+    sip_from VARCHAR(255),
+    sip_to VARCHAR(255),
+    sip_status VARCHAR(128),
+    sip_method VARCHAR(16),
+    in_ruri VARCHAR(255),
+    out_ruri VARCHAR(255),
+    from_uri VARCHAR(255),
+    to_uri VARCHAR(255),
+    sip_callid VARCHAR(255),
+    sip_cseq INT,
+    digest_username VARCHAR(64),
+    digest_realm VARCHAR(255),
+    from_tag VARCHAR(128),
+    to_tag VARCHAR(128),
+    src_ip INT UNSIGNED,
+    src_port SMALLINT UNSIGNED,
+    request_timestamp DATETIME NOT NULL,
+    response_timestamp DATETIME NOT NULL,
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    attrs VARCHAR(255),
+    UNIQUE KEY mc_id_key (id),
+    KEY mc_cid_key (sip_callid)
 );
 
 INSERT INTO version (table_name, table_version) values ('credentials','7');
 CREATE TABLE credentials (
-    auth_username string(64) NOT NULL,
-    did string(64) NOT NULL DEFAULT '_default',
-    realm string(64) NOT NULL,
-    password string(28) NOT NULL DEFAULT '',
-    flags int NOT NULL DEFAULT '0',
-    ha1 string(32) NOT NULL,
-    ha1b string(32) NOT NULL DEFAULT '',
-    uid string(64) NOT NULL
+    auth_username VARCHAR(64) NOT NULL,
+    did VARCHAR(64) NOT NULL DEFAULT '_default',
+    realm VARCHAR(64) NOT NULL,
+    password VARCHAR(28) NOT NULL DEFAULT '',
+    flags INT NOT NULL DEFAULT '0',
+    ha1 VARCHAR(32) NOT NULL,
+    ha1b VARCHAR(32) NOT NULL DEFAULT '',
+    uuid VARCHAR(64) NOT NULL,
+    KEY cred_idx (auth_username, did),
+    KEY uuid (uuid)
 );
 
 INSERT INTO version (table_name, table_version) values ('attr_types','3');
 CREATE TABLE attr_types (
-    name string(32) NOT NULL,
-    rich_type string(32) NOT NULL DEFAULT 'string',
-    raw_type int NOT NULL DEFAULT '2',
-    type_spec string(255) DEFAULT NULL,
-    description string(255) DEFAULT NULL,
-    default_flags int NOT NULL DEFAULT '0',
-    flags int NOT NULL DEFAULT '0',
-    priority int NOT NULL DEFAULT '0',
-    access int NOT NULL DEFAULT '0',
-    ordering int NOT NULL DEFAULT '0',
-    upt_idx1 UNIQUE (name, )
+    name VARCHAR(32) NOT NULL,
+    rich_type VARCHAR(32) NOT NULL DEFAULT 'string',
+    raw_type INT NOT NULL DEFAULT '2',
+    type_spec VARCHAR(255) DEFAULT NULL,
+    description VARCHAR(255) DEFAULT NULL,
+    default_flags INT NOT NULL DEFAULT '0',
+    flags INT NOT NULL DEFAULT '0',
+    priority INT NOT NULL DEFAULT '0',
+    access INT NOT NULL DEFAULT '0',
+    ordering INT NOT NULL DEFAULT '0',
+    UNIQUE KEY upt_idx1 (name)
 );
 
 INSERT INTO version (table_name, table_version) values ('global_attrs','1');
 CREATE TABLE global_attrs (
-    name string(32) NOT NULL,
-    type int NOT NULL DEFAULT '0',
-    value string(255),
-    flags int NOT NULL DEFAULT '0',
-    global_attrs_idx UNIQUE (name, value, )
+    name VARCHAR(32) NOT NULL,
+    type INT NOT NULL DEFAULT '0',
+    value VARCHAR(255),
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY global_attrs_idx (name, value)
 );
 
 INSERT INTO version (table_name, table_version) values ('domain_attrs','1');
 CREATE TABLE domain_attrs (
-    did string(64),
-    name string(32) NOT NULL,
-    type int NOT NULL DEFAULT '0',
-    value string(255),
-    flags int NOT NULL DEFAULT '0',
-    domain_attr_idx UNIQUE (did, name, value, ),
-
+    did VARCHAR(64),
+    name VARCHAR(32) NOT NULL,
+    type INT NOT NULL DEFAULT '0',
+    value VARCHAR(255),
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY domain_attr_idx (did, name, value),
+    KEY domain_did (did, flags)
 );
 
 INSERT INTO version (table_name, table_version) values ('user_attrs','3');
 CREATE TABLE user_attrs (
-    uid string(64) NOT NULL,
-    name string(32) NOT NULL,
-    value string(255),
-    type int NOT NULL DEFAULT '0',
-    flags int NOT NULL DEFAULT '0',
-    userattrs_idx UNIQUE (uid, name, value, )
+    uuid VARCHAR(64) NOT NULL,
+    name VARCHAR(32) NOT NULL,
+    value VARCHAR(255),
+    type INT NOT NULL DEFAULT '0',
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY userattrs_idx (uuid, name, value)
 );
 
 INSERT INTO version (table_name, table_version) values ('uri_attrs','2');
 CREATE TABLE uri_attrs (
-    username string(64) NOT NULL,
-    did string(64) NOT NULL,
-    name string(32) NOT NULL,
-    value string(255),
-    type int NOT NULL DEFAULT '0',
-    flags int NOT NULL DEFAULT '0',
-    scheme string(8) NOT NULL DEFAULT 'sip',
-    uriattrs_idx UNIQUE (username, did, name, value, scheme, )
+    username VARCHAR(64) NOT NULL,
+    did VARCHAR(64) NOT NULL,
+    name VARCHAR(32) NOT NULL,
+    value VARCHAR(255),
+    type INT NOT NULL DEFAULT '0',
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    scheme VARCHAR(8) NOT NULL DEFAULT 'sip',
+    UNIQUE KEY uriattrs_idx (username, did, name, value, scheme)
 );
 
 INSERT INTO version (table_name, table_version) values ('domain','2');
 CREATE TABLE domain (
-    did string(64) NOT NULL,
-    domain string(128) NOT NULL,
-    flags int NOT NULL DEFAULT '0',
-    domain_idx UNIQUE (domain, )
+    did VARCHAR(64) NOT NULL,
+    domain VARCHAR(128) NOT NULL,
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY domain_idx (domain)
 );
 
 INSERT INTO version (table_name, table_version) values ('domain_settings','1');
 CREATE TABLE domain_settings (
-    did string(64) NOT NULL,
-    filename string(255) NOT NULL,
-    version int NOT NULL,
-    timestamp int,
-    content binary,
-    flags int NOT NULL DEFAULT '0',
-    ds_id UNIQUE (did, filename, version, ),
-
+    did VARCHAR(64) NOT NULL,
+    filename VARCHAR(255) NOT NULL,
+    version INT UNSIGNED NOT NULL,
+    timestamp INT UNSIGNED,
+    content BLOB,
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY ds_id (did, filename, version),
+    KEY ds_df (did, filename)
 );
 
 INSERT INTO version (table_name, table_version) values ('location','9');
 CREATE TABLE location (
-    uid string(64) NOT NULL,
-    aor string(255) NOT NULL,
-    contact string(255) NOT NULL,
-    received string(255),
-    expires datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-    q float NOT NULL DEFAULT '1.0',
-    callid string(255),
-    cseq int,
-    flags int NOT NULL DEFAULT '0',
-    user_agent string(64),
-    instance string(255),
-    location_key UNIQUE (uid, contact, ),
-
+    uuid VARCHAR(64) NOT NULL,
+    aor VARCHAR(255) NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    received VARCHAR(255),
+    expires DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00',
+    q FLOAT NOT NULL DEFAULT '1.0',
+    callid VARCHAR(255),
+    cseq INT UNSIGNED,
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    user_agent VARCHAR(64),
+    instance VARCHAR(255),
+    UNIQUE KEY location_key (uuid, contact),
+    KEY location_contact (contact)
 );
 
 INSERT INTO version (table_name, table_version) values ('contact_attrs','1');
 CREATE TABLE contact_attrs (
-    uid string(64) NOT NULL,
-    contact string(255) NOT NULL,
-    name string(32) NOT NULL,
-    value string(255),
-    type int NOT NULL DEFAULT '0',
-    flags int NOT NULL DEFAULT '0',
-    contactattrs_idx UNIQUE (uid, contact, name, )
+    uuid VARCHAR(64) NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    name VARCHAR(32) NOT NULL,
+    value VARCHAR(255),
+    type INT NOT NULL DEFAULT '0',
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY contactattrs_idx (uuid, contact, name)
 );
 
 INSERT INTO version (table_name, table_version) values ('trusted','1');
 CREATE TABLE trusted (
-    src_ip string(39) NOT NULL,
-    proto string(4) NOT NULL,
-    from_pattern string(64) NOT NULL,
-    trusted_idx UNIQUE (src_ip, proto, from_pattern, )
+    src_ip VARCHAR(39) NOT NULL,
+    proto VARCHAR(4) NOT NULL,
+    from_pattern VARCHAR(64) NOT NULL,
+    UNIQUE KEY trusted_idx (src_ip, proto, from_pattern)
 );
 
 INSERT INTO version (table_name, table_version) values ('ipmatch','1');
 CREATE TABLE ipmatch (
-    ip string(50) NOT NULL DEFAULT '',
-    avp_val string(30) DEFAULT NULL,
-    mark int(10) NOT NULL DEFAULT '1',
-    flags int(10) NOT NULL DEFAULT '0',
-    ipmatch_idx UNIQUE (ip, mark, )
+    ip VARCHAR(50) NOT NULL DEFAULT '',
+    avp_val VARCHAR(30) DEFAULT NULL,
+    mark INT(10) UNSIGNED NOT NULL DEFAULT '1',
+    flags INT(10) UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY ipmatch_idx (ip, mark)
 );
 
 INSERT INTO version (table_name, table_version) values ('phonebook','1');
 CREATE TABLE phonebook (
-    id int NOT NULL,
-    uid string(64) NOT NULL,
-    fname string(32),
-    lname string(32),
-    sip_uri string(255) NOT NULL,
-    pb_idx UNIQUE (id, ),
-
+    id INT UNSIGNED NOT NULL,
+    uuid VARCHAR(64) NOT NULL,
+    fname VARCHAR(32),
+    lname VARCHAR(32),
+    sip_uri VARCHAR(255) NOT NULL,
+    UNIQUE KEY pb_idx (id),
+    KEY pb_uid (uuid)
 );
 
 INSERT INTO version (table_name, table_version) values ('gw','3');
 CREATE TABLE gw (
-    gw_name string(128) NOT NULL,
-    ip_addr int NOT NULL,
-    port short,
-    uri_scheme char,
-    transport short,
-    grp_id int NOT NULL,
-    gw_idx1 UNIQUE (gw_name, ),
-
+    gw_name VARCHAR(128) NOT NULL,
+    ip_addr INT UNSIGNED NOT NULL,
+    port SMALLINT UNSIGNED,
+    uri_scheme TINYINT UNSIGNED,
+    transport SMALLINT UNSIGNED,
+    grp_id INT NOT NULL,
+    UNIQUE KEY gw_idx1 (gw_name),
+    KEY gw_idx2 (grp_id)
 );
 
 INSERT INTO version (table_name, table_version) values ('gw_grp','2');
 CREATE TABLE gw_grp (
-    grp_id int NOT NULL,
-    grp_name string(64) NOT NULL,
-    gwgrp_idx UNIQUE (grp_id, )
+    grp_id INT NOT NULL,
+    grp_name VARCHAR(64) NOT NULL,
+    UNIQUE KEY gwgrp_idx (grp_id)
 );
 
 INSERT INTO version (table_name, table_version) values ('lcr','1');
 CREATE TABLE lcr (
-    prefix string(16) NOT NULL,
-    from_uri string(255) NOT NULL DEFAULT '%',
-    grp_id int,
-    priority int
+    prefix VARCHAR(16) NOT NULL,
+    from_uri VARCHAR(255) NOT NULL DEFAULT '%',
+    grp_id INT,
+    priority INT,
+    KEY lcr_idx1 (prefix),
+    KEY lcr_idx2 (from_uri),
+    KEY lcr_idx3 (grp_id)
 );
 
 INSERT INTO version (table_name, table_version) values ('grp','3');
 CREATE TABLE grp (
-    uid string(64) NOT NULL DEFAULT '',
-    grp string(64) NOT NULL DEFAULT '',
-    last_modified datetime NOT NULL DEFAULT '1970-01-01 00:00:00'
+    uuid VARCHAR(64) NOT NULL DEFAULT '',
+    grp VARCHAR(64) NOT NULL DEFAULT '',
+    last_modified DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00',
+    KEY grp_idx (uuid, grp)
 );
 
 INSERT INTO version (table_name, table_version) values ('silo','4');
 CREATE TABLE silo (
-    mid int NOT NULL,
-    from_hdr string(255) NOT NULL,
-    to_hdr string(255) NOT NULL,
-    ruri string(255) NOT NULL,
-    uid string(64) NOT NULL,
-    inc_time datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-    exp_time datetime NOT NULL DEFAULT '1970-01-01 00:00:00',
-    ctype string(128) NOT NULL DEFAULT 'text/plain',
-    body binary NOT NULL DEFAULT '',
-    silo_idx1 UNIQUE (mid, )
+    mid INT NOT NULL,
+    from_hdr VARCHAR(255) NOT NULL,
+    to_hdr VARCHAR(255) NOT NULL,
+    ruri VARCHAR(255) NOT NULL,
+    uuid VARCHAR(64) NOT NULL,
+    inc_time DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00',
+    exp_time DATETIME NOT NULL DEFAULT '1970-01-01 00:00:00',
+    ctype VARCHAR(128) NOT NULL DEFAULT 'text/plain',
+    body BLOB NOT NULL DEFAULT '',
+    UNIQUE KEY silo_idx1 (mid)
 );
 
 INSERT INTO version (table_name, table_version) values ('uri','3');
 CREATE TABLE uri (
-    uid string(64) NOT NULL,
-    did string(64) NOT NULL,
-    username string(64) NOT NULL,
-    flags int NOT NULL DEFAULT '0',
-    scheme string(8) NOT NULL DEFAULT 'sip'
+    uuid VARCHAR(64) NOT NULL,
+    did VARCHAR(64) NOT NULL,
+    username VARCHAR(64) NOT NULL,
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    scheme VARCHAR(8) NOT NULL DEFAULT 'sip',
+    KEY uri_idx1 (username, did, scheme),
+    KEY uri_uid (uuid)
 );
 
 INSERT INTO version (table_name, table_version) values ('speed_dial','2');
 CREATE TABLE speed_dial (
-    id int NOT NULL,
-    uid string(64) NOT NULL,
-    dial_username string(64) NOT NULL,
-    dial_did string(64) NOT NULL,
-    new_uri string(255) NOT NULL,
-    speeddial_idx1 UNIQUE (uid, dial_did, dial_username, ),
-    speeddial_id UNIQUE (id, ),
-
+    id INT NOT NULL,
+    uuid VARCHAR(64) NOT NULL,
+    dial_username VARCHAR(64) NOT NULL,
+    dial_did VARCHAR(64) NOT NULL,
+    new_uri VARCHAR(255) NOT NULL,
+    UNIQUE KEY speeddial_idx1 (uuid, dial_did, dial_username),
+    UNIQUE KEY speeddial_id (id),
+    KEY speeddial_uid (uuid)
 );
 
 INSERT INTO version (table_name, table_version) values ('sd_attrs','1');
 CREATE TABLE sd_attrs (
-    id string(64) NOT NULL,
-    name string(32) NOT NULL,
-    value string(255),
-    type int NOT NULL DEFAULT '0',
-    flags int NOT NULL DEFAULT '0',
-    sd_idx UNIQUE (id, name, value, )
+    id VARCHAR(64) NOT NULL,
+    name VARCHAR(32) NOT NULL,
+    value VARCHAR(255),
+    type INT NOT NULL DEFAULT '0',
+    flags INT UNSIGNED NOT NULL DEFAULT '0',
+    UNIQUE KEY sd_idx (id, name, value)
 );
 
 INSERT INTO version (table_name, table_version) values ('presentity','5');
 CREATE TABLE presentity (
-    pres_id string(64) NOT NULL,
-    uri string(255) NOT NULL,
-    uid string(64) NOT NULL,
-    pdomain string(128) NOT NULL,
-    xcap_params binary NOT NULL,
-    presentity_key UNIQUE (pres_id, )
+    pres_id VARCHAR(64) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    uuid VARCHAR(64) NOT NULL,
+    pdomain VARCHAR(128) NOT NULL,
+    xcap_params BLOB NOT NULL,
+    UNIQUE KEY presentity_key (pres_id)
 );
 
 INSERT INTO version (table_name, table_version) values ('presentity_notes','5');
 CREATE TABLE presentity_notes (
-    dbid string(64) NOT NULL,
-    pres_id string(64) NOT NULL,
-    etag string(64) NOT NULL,
-    note string(128) NOT NULL,
-    lang string(64) NOT NULL,
-    expires datetime NOT NULL DEFAULT '2005-12-07 08:13:15',
-    pnotes_idx1 UNIQUE (dbid, )
+    dbid VARCHAR(64) NOT NULL,
+    pres_id VARCHAR(64) NOT NULL,
+    etag VARCHAR(64) NOT NULL,
+    note VARCHAR(128) NOT NULL,
+    lang VARCHAR(64) NOT NULL,
+    expires DATETIME NOT NULL DEFAULT '2005-12-07 08:13:15',
+    UNIQUE KEY pnotes_idx1 (dbid)
 );
 
 INSERT INTO version (table_name, table_version) values ('presentity_extensions','5');
 CREATE TABLE presentity_extensions (
-    dbid string(64) NOT NULL,
-    pres_id string(64) NOT NULL,
-    etag string(64) NOT NULL,
-    element binary NOT NULL,
-    expires datetime NOT NULL DEFAULT '2005-12-07 08:13:15',
-    presextensions_idx1 UNIQUE (dbid, )
+    dbid VARCHAR(64) NOT NULL,
+    pres_id VARCHAR(64) NOT NULL,
+    etag VARCHAR(64) NOT NULL,
+    element BLOB NOT NULL,
+    expires DATETIME NOT NULL DEFAULT '2005-12-07 08:13:15',
+    UNIQUE KEY presextensions_idx1 (dbid)
 );
 
 INSERT INTO version (table_name, table_version) values ('presentity_contact','5');
 CREATE TABLE presentity_contact (
-    pres_id string(64) NOT NULL,
-    basic int(3) NOT NULL,
-    expires datetime NOT NULL DEFAULT '2004-05-28 21:32:15',
-    priority float NOT NULL DEFAULT '0.5',
-    contact string(255),
-    tupleid string(64) NOT NULL,
-    etag string(64) NOT NULL,
-    published_id string(64) NOT NULL,
-    presid_index UNIQUE (pres_id, tupleid, )
+    pres_id VARCHAR(64) NOT NULL,
+    basic INT(3) NOT NULL,
+    expires DATETIME NOT NULL DEFAULT '2004-05-28 21:32:15',
+    priority FLOAT NOT NULL DEFAULT '0.5',
+    contact VARCHAR(255),
+    tupleid VARCHAR(64) NOT NULL,
+    etag VARCHAR(64) NOT NULL,
+    published_id VARCHAR(64) NOT NULL,
+    UNIQUE KEY presid_index (pres_id, tupleid)
 );
 
 INSERT INTO version (table_name, table_version) values ('watcherinfo','5');
 CREATE TABLE watcherinfo (
-    w_uri string(255) NOT NULL,
-    display_name string(128) NOT NULL,
-    s_id string(64) NOT NULL,
-    package string(32) NOT NULL DEFAULT 'presence',
-    status string(32) NOT NULL DEFAULT 'pending',
-    event string(32) NOT NULL,
-    expires datetime NOT NULL DEFAULT '2005-12-07 08:13:15',
-    accepts int NOT NULL,
-    pres_id string(64) NOT NULL,
-    server_contact string(255) NOT NULL,
-    dialog binary NOT NULL,
-    doc_index int NOT NULL,
-    wi_idx1 UNIQUE (s_id, )
+    w_uri VARCHAR(255) NOT NULL,
+    display_name VARCHAR(128) NOT NULL,
+    s_id VARCHAR(64) NOT NULL,
+    package VARCHAR(32) NOT NULL DEFAULT 'presence',
+    status VARCHAR(32) NOT NULL DEFAULT 'pending',
+    event VARCHAR(32) NOT NULL,
+    expires DATETIME NOT NULL DEFAULT '2005-12-07 08:13:15',
+    accepts INT NOT NULL,
+    pres_id VARCHAR(64) NOT NULL,
+    server_contact VARCHAR(255) NOT NULL,
+    dialog BLOB NOT NULL,
+    doc_index INT NOT NULL,
+    UNIQUE KEY wi_idx1 (s_id)
 );
 
 INSERT INTO version (table_name, table_version) values ('tuple_notes','5');
 CREATE TABLE tuple_notes (
-    pres_id string(64) NOT NULL,
-    tupleid string(64) NOT NULL,
-    note string(128) NOT NULL,
-    lang string(64) NOT NULL
+    pres_id VARCHAR(64) NOT NULL,
+    tupleid VARCHAR(64) NOT NULL,
+    note VARCHAR(128) NOT NULL,
+    lang VARCHAR(64) NOT NULL
 );
 
 INSERT INTO version (table_name, table_version) values ('tuple_extensions','5');
 CREATE TABLE tuple_extensions (
-    pres_id string(64) NOT NULL,
-    tupleid string(64) NOT NULL,
-    element binary NOT NULL,
-    status_extension int(1) NOT NULL
+    pres_id VARCHAR(64) NOT NULL,
+    tupleid VARCHAR(64) NOT NULL,
+    element BLOB NOT NULL,
+    status_extension INT(1) NOT NULL
 );
 
 INSERT INTO version (table_name, table_version) values ('offline_winfo','5');
 CREATE TABLE offline_winfo (
-    uid string(64) NOT NULL,
-    watcher string(255) NOT NULL,
-    events string(64) NOT NULL,
-    domain string(128),
-    status string(32),
-    created_on datetime NOT NULL DEFAULT '2006-01-31 13:13:13',
-    expires_on datetime NOT NULL DEFAULT '2006-01-31 13:13:13',
-    dbid int(10) NOT NULL
+    uuid VARCHAR(64) NOT NULL,
+    watcher VARCHAR(255) NOT NULL,
+    events VARCHAR(64) NOT NULL,
+    domain VARCHAR(128),
+    status VARCHAR(32),
+    created_on DATETIME NOT NULL DEFAULT '2006-01-31 13:13:13',
+    expires_on DATETIME NOT NULL DEFAULT '2006-01-31 13:13:13',
+    dbid INT(10) UNSIGNED NOT NULL,
+    KEY offline_winfo_key (dbid)
 );
 
 INSERT INTO version (table_name, table_version) values ('rls_subscription','1');
 CREATE TABLE rls_subscription (
-    id string(48) NOT NULL,
-    doc_version int NOT NULL,
-    dialog binary NOT NULL,
-    expires datetime NOT NULL DEFAULT '2005-12-02 09:00:13',
-    status int NOT NULL,
-    contact string(255) NOT NULL,
-    uri string(255) NOT NULL,
-    package string(128) NOT NULL,
-    w_uri string(255) NOT NULL,
-    xcap_params binary NOT NULL,
-    rls_subscription_key UNIQUE (id, )
+    id VARCHAR(48) NOT NULL,
+    doc_version INT NOT NULL,
+    dialog BLOB NOT NULL,
+    expires DATETIME NOT NULL DEFAULT '2005-12-02 09:00:13',
+    status INT NOT NULL,
+    contact VARCHAR(255) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    package VARCHAR(128) NOT NULL,
+    w_uri VARCHAR(255) NOT NULL,
+    xcap_params BLOB NOT NULL,
+    UNIQUE KEY rls_subscription_key (id)
 );
 
 INSERT INTO version (table_name, table_version) values ('rls_vs','1');
 CREATE TABLE rls_vs (
-    id string(48) NOT NULL,
-    rls_id string(48) NOT NULL,
-    uri string(255) NOT NULL,
-    rls_vs_key UNIQUE (id, )
+    id VARCHAR(48) NOT NULL,
+    rls_id VARCHAR(48) NOT NULL,
+    uri VARCHAR(255) NOT NULL,
+    UNIQUE KEY rls_vs_key (id)
 );
 
 INSERT INTO version (table_name, table_version) values ('rls_vs_names','1');
 CREATE TABLE rls_vs_names (
-    id string(48) NOT NULL,
-    name string(64),
-    lang string(64)
+    id VARCHAR(48) NOT NULL,
+    name VARCHAR(64),
+    lang VARCHAR(64)
 );
 
 INSERT INTO version (table_name, table_version) values ('i18n','1');
 CREATE TABLE i18n (
-    code int NOT NULL,
-    reason_re string(255) DEFAULT NULL,
-    lang string(32) NOT NULL,
-    new_reason string(255)    i18n_uniq_idx UNIQUE (code, lang, )
+    code INT NOT NULL,
+    reason_re VARCHAR(255) DEFAULT NULL,
+    lang VARCHAR(32) NOT NULL,
+    new_reason VARCHAR(255),
+    KEY i18n_idx (code),
+    UNIQUE KEY i18n_uniq_idx (code, lang)
 );
 
 INSERT INTO version (table_name, table_version) values ('pdt','1');
 CREATE TABLE pdt (
-    prefix string(32) NOT NULL,
-    domain string(255) NOT NULL,
-    pdt_idx UNIQUE (prefix, )
+    prefix VARCHAR(32) NOT NULL,
+    domain VARCHAR(255) NOT NULL,
+    UNIQUE KEY pdt_idx (prefix)
 );
 
 INSERT INTO version (table_name, table_version) values ('cpl','2');
 CREATE TABLE cpl (
-    uid string(64) NOT NULL,
-    cpl_xml binary,
-    cpl_bin binary,
-    cpl_key UNIQUE (uid, )
+    uuid VARCHAR(64) NOT NULL,
+    cpl_xml BLOB,
+    cpl_bin BLOB,
+    UNIQUE KEY cpl_key (uuid)
 );
 
 INSERT INTO version (table_name, table_version) values ('customers','1');
 CREATE TABLE customers (
-    cid int NOT NULL,
-    name string(128) NOT NULL,
-    address string(255),
-    phone string(64),
-    email string(255),
-    cu_idx UNIQUE (cid, )
+    cid INT UNSIGNED NOT NULL,
+    name VARCHAR(128) NOT NULL,
+    address VARCHAR(255),
+    phone VARCHAR(64),
+    email VARCHAR(255),
+    UNIQUE KEY cu_idx (cid)
 );
 
  

+ 144 - 144
scripts/oracle/or_data.sql

@@ -1,184 +1,184 @@
 DELETE FROM attr_types WHERE name='uid';
-INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2', '1');
+INSERT IGNORE INTO attr_types (name, raw_type, default_flags) VALUES ('uid', '2', '1');
 DELETE FROM attr_types WHERE name='did';
-INSERT INTO attr_types (name, raw_type, default_flags) VALUES ('did', '2', '1');
+INSERT IGNORE INTO attr_types (name, raw_type, default_flags) VALUES ('did', '2', '1');
 DELETE FROM attr_types WHERE name='datetime_created';
-INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('datetime_created', '2', 'string', 'creation time', '33', '0', '0', '1');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('datetime_created', '2', 'string', 'creation time', '33', '0', '0', '1');
 DELETE FROM attr_types WHERE name='asserted_id';
-INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200', '1');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering, access) VALUES ('asserted_id', '2', 'string', 'asserted identity', '33', '256', '200', '1');
 DELETE FROM attr_types WHERE name='fr_timer';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('fr_timer', '0', 'int', '@ff_fr_timer', '33', '1073807616', '140');
 DELETE FROM attr_types WHERE name='fr_inv_timer';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='gflags';
-INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('gflags', '0', 'int', 'global flags', '33', '1073741824', '0');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, priority, ordering) VALUES ('gflags', '0', 'int', 'global flags', '33', '1073741824', '0');
 DELETE FROM attr_types WHERE name='digest_realm';
-INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('digest_realm', '2', 'string', 'digest realm', '33', '4096', '65536', '0');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('digest_realm', '2', 'string', 'digest realm', '33', '4096', '65536', '0');
 DELETE FROM attr_types WHERE name='acl';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='first_name';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='last_name';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='email';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='timezone';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('timezone', '2', 'timezone', '@ff_timezone', '32', '2048', '1073807616', '60');
 DELETE FROM attr_types WHERE name='sw_allow_find';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='lang';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('lang', '2', 'lang', '@ff_language', '33', '0', '1073807616', '50');
 DELETE FROM attr_types WHERE name='sw_show_status';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='sw_admin';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_admin', '2', 'string', 'admin of domain', '32', '1024', '0');
 DELETE FROM attr_types WHERE name='sw_owner';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_owner', '2', 'string', 'owner of domain', '32', '0', '0');
 DELETE FROM attr_types WHERE name='sw_domain_default_flags';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='sw_deleted_ts';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_deleted_ts', '0', 'int', 'deleted timestamp', '32', '0', '0');
 DELETE FROM attr_types WHERE name='phone';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('phone', '2', 'string', '@ff_phone', '32', '2048', '256', '40');
 DELETE FROM attr_types WHERE name='sw_acl_control';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_acl_control', '2', 'string', 'acl control', '32', '1024', '0');
 DELETE FROM attr_types WHERE name='sw_credential_default_flags';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='sw_uri_default_flags';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='sw_is_admin';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_is_admin', '0', 'boolean', 'admin privilege', '32', '0', '0');
 DELETE FROM attr_types WHERE name='sw_is_hostmaster';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_is_hostmaster', '0', 'boolean', 'hostmaster privilege', '32', '0', '0');
 DELETE FROM attr_types WHERE name='sw_confirmation';
-INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_confirmation', '2', 'string', 'registration confirmation', '32', '0', '0');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_confirmation', '2', 'string', 'registration confirmation', '32', '0', '0');
 DELETE FROM attr_types WHERE name='sw_pending_ts';
-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');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority) VALUES ('sw_pending_ts', '2', 'string', 'registration timestamp', '32', '0', '0');
 DELETE FROM attr_types WHERE name='sw_require_confirm';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='sw_send_missed';
-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');
+INSERT IGNORE 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');
 DELETE FROM attr_types WHERE name='uid_format';
-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";}');
+INSERT IGNORE 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";}');
 DELETE FROM attr_types WHERE name='did_format';
-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";}');
+INSERT IGNORE 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";}');
 DELETE FROM attr_types WHERE name='contact_email';
-INSERT INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('contact_email', '2', 'email_adr', '@ff_contact_email', '32', '4096', '1073807360', '0');
+INSERT IGNORE INTO attr_types (name, raw_type, rich_type, description, default_flags, flags, priority, ordering) VALUES ('contact_email', '2', 'email_adr', '@ff_contact_email', '32', '4096', '1073807360', '0');
 
 DELETE FROM global_attrs WHERE name='sw_domain_default_flags';
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_domain_default_flags', '0', '33', '32');
 DELETE FROM global_attrs WHERE name='sw_credential_default_flags';
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_credential_default_flags', '0', '33', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_credential_default_flags', '0', '33', '32');
 DELETE FROM global_attrs WHERE name='sw_uri_default_flags';
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('uid_format', '2', '0', '32');
-INSERT INTO global_attrs (name, type, value, flags) VALUES ('did_format', '2', '0', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_uri_default_flags', '0', '57', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_show_status', '0', '1', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_require_conf', '0', '1', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('lang', '2', 'en', '33');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('sw_timezone', '2', 'Europe/Prague', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('uid_format', '2', '0', '32');
+INSERT IGNORE INTO global_attrs (name, type, value, flags) VALUES ('did_format', '2', '0', '32');
 
-INSERT INTO i18n (code, lang, new_reason) VALUES ('100', 'en_US.ascii', 'Trying');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('180', 'en_US.ascii', 'Ringing');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('181', 'en_US.ascii', 'Call Is Being Forwarded');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('182', 'en_US.ascii', 'Queued');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('183', 'en_US.ascii', 'Session Progress');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('200', 'en_US.ascii', 'OK');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('202', 'en_US.ascii', 'Pending');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('300', 'en_US.ascii', 'Multiple Choices');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('301', 'en_US.ascii', 'Moved Permanently');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('302', 'en_US.ascii', 'Moved Temporarily');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('305', 'en_US.ascii', 'Use Proxy');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('380', 'en_US.ascii', 'Alternative Service');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('400', 'en_US.ascii', 'Bad Request');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('401', 'en_US.ascii', 'Unauthorized');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('402', 'en_US.ascii', 'Payment Required');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('403', 'en_US.ascii', 'Forbidden');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('404', 'en_US.ascii', 'Not Found');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('405', 'en_US.ascii', 'Method Not Allowed');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('406', 'en_US.ascii', 'Not Acceptable');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('407', 'en_US.ascii', 'Proxy Authentication Required');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('408', 'en_US.ascii', 'Request Timeout');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('410', 'en_US.ascii', 'Gone');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('413', 'en_US.ascii', 'Request Entity Too Large');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('414', 'en_US.ascii', 'Request-URI Too Long');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('415', 'en_US.ascii', 'Unsupported Media Type');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('416', 'en_US.ascii', 'Unsupported URI Scheme');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('420', 'en_US.ascii', 'Bad Extension');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('421', 'en_US.ascii', 'Extension Required');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('423', 'en_US.ascii', 'Interval Too Brief');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('480', 'en_US.ascii', 'Temporarily Unavailable');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('481', 'en_US.ascii', 'Call/Transaction Does Not Exist');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('482', 'en_US.ascii', 'Loop Detected');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('483', 'en_US.ascii', 'Too Many Hops');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('484', 'en_US.ascii', 'Address Incomplete');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('485', 'en_US.ascii', 'Ambiguous');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('486', 'en_US.ascii', 'Busy Here');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('487', 'en_US.ascii', 'Request Terminated');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('488', 'en_US.ascii', 'Not Acceptable Here');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('491', 'en_US.ascii', 'Request Pending');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('493', 'en_US.ascii', 'Undecipherable');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('500', 'en_US.ascii', 'Server Internal Error');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('501', 'en_US.ascii', 'Not Implemented');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('502', 'en_US.ascii', 'Bad Gateway');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('503', 'en_US.ascii', 'Service Unavailable');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('504', 'en_US.ascii', 'Server Time-out');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('505', 'en_US.ascii', 'Version Not Supported');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('513', 'en_US.ascii', 'Message Too Large');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('600', 'en_US.ascii', 'Busy Everywhere');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('603', 'en_US.ascii', 'Decline');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('604', 'en_US.ascii', 'Does Not Exist Anywhere');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('606', 'en_US.ascii', 'Not Acceptable');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('100', 'cs_CZ.ascii', 'Navazuji spojeni');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('180', 'cs_CZ.ascii', 'Vyzvani');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('181', 'cs_CZ.ascii', 'Hovor je presmerovan');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('182', 'cs_CZ.ascii', 'Jste v poradi');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('183', 'cs_CZ.ascii', 'Probiha navazovani spojeni');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('200', 'cs_CZ.ascii', 'Uspesne provedeno');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('202', 'cs_CZ.ascii', 'Bude vyrizeno pozdeji');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('300', 'cs_CZ.ascii', 'Existuje vice moznosti');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('301', 'cs_CZ.ascii', 'Trvale presmerovano');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('302', 'cs_CZ.ascii', 'Docasne presmerovano');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('305', 'cs_CZ.ascii', 'Pouzijte jiny server');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('380', 'cs_CZ.ascii', 'Alternativni sluzba');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('400', 'cs_CZ.ascii', 'Chyba protokolu');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('401', 'cs_CZ.ascii', 'Overeni totoznosti');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('402', 'cs_CZ.ascii', 'Placena sluzba');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('403', 'cs_CZ.ascii', 'Zakazano');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('404', 'cs_CZ.ascii', 'Nenalezeno');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('405', 'cs_CZ.ascii', 'Nepovoleny prikaz');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('406', 'cs_CZ.ascii', 'Neni povoleno');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('407', 'cs_CZ.ascii', 'Server vyzaduje overeni totoznosti');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('408', 'cs_CZ.ascii', 'Casovy limit vyprsel');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('410', 'cs_CZ.ascii', 'Nenalezeno');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('413', 'cs_CZ.ascii', 'Prilis dlouhy identifikator');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('414', 'cs_CZ.ascii', 'Request-URI je prilis dlouhe');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('415', 'cs_CZ.ascii', 'Nepodporovany typ dat');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('416', 'cs_CZ.ascii', 'Nepodporovany typ identifikatoru');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('420', 'cs_CZ.ascii', 'Neplatne cislo linky');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('421', 'cs_CZ.ascii', 'Zadejte cislo linky');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('423', 'cs_CZ.ascii', 'Prilis kratky interval');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('480', 'cs_CZ.ascii', 'Docasne nedostupne');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('481', 'cs_CZ.ascii', 'Spojeni nenalezeno');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('482', 'cs_CZ.ascii', 'Zprava se zacyklila');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('483', 'cs_CZ.ascii', 'Prilis mnoho kroku');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('484', 'cs_CZ.ascii', 'Neuplna adresa');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('485', 'cs_CZ.ascii', 'Nejednoznacne');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('486', 'cs_CZ.ascii', 'Volany je zaneprazdnen');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('487', 'cs_CZ.ascii', 'Prikaz predcasne ukoncen');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('488', 'cs_CZ.ascii', 'Nebylo akceptovano');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('491', 'cs_CZ.ascii', 'Cekam na odpoved');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('493', 'cs_CZ.ascii', 'Nelze dekodovat');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('500', 'cs_CZ.ascii', 'Interni chyba serveru');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('501', 'cs_CZ.ascii', 'Neni implementovano');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('502', 'cs_CZ.ascii', 'Chybna brana');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('503', 'cs_CZ.ascii', 'Sluzba neni dostupna');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('504', 'cs_CZ.ascii', 'Casovy limit serveru vyprsel');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('505', 'cs_CZ.ascii', 'Nepodporovana verze protokolu');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('513', 'cs_CZ.ascii', 'Zprava je prilis dlouha');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('600', 'cs_CZ.ascii', 'Uzivatel je zaneprazdnen');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('603', 'cs_CZ.ascii', 'Odmitnuto');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('604', 'cs_CZ.ascii', 'Neexistujici uzivatel nebo sluzba');
-INSERT INTO i18n (code, lang, new_reason) VALUES ('606', 'cs_CZ.ascii', 'Nelze akceptovat');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('100', 'en_US.ascii', 'Trying');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('180', 'en_US.ascii', 'Ringing');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('181', 'en_US.ascii', 'Call Is Being Forwarded');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('182', 'en_US.ascii', 'Queued');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('183', 'en_US.ascii', 'Session Progress');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('200', 'en_US.ascii', 'OK');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('202', 'en_US.ascii', 'Pending');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('300', 'en_US.ascii', 'Multiple Choices');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('301', 'en_US.ascii', 'Moved Permanently');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('302', 'en_US.ascii', 'Moved Temporarily');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('305', 'en_US.ascii', 'Use Proxy');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('380', 'en_US.ascii', 'Alternative Service');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('400', 'en_US.ascii', 'Bad Request');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('401', 'en_US.ascii', 'Unauthorized');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('402', 'en_US.ascii', 'Payment Required');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('403', 'en_US.ascii', 'Forbidden');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('404', 'en_US.ascii', 'Not Found');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('405', 'en_US.ascii', 'Method Not Allowed');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('406', 'en_US.ascii', 'Not Acceptable');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('407', 'en_US.ascii', 'Proxy Authentication Required');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('408', 'en_US.ascii', 'Request Timeout');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('410', 'en_US.ascii', 'Gone');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('413', 'en_US.ascii', 'Request Entity Too Large');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('414', 'en_US.ascii', 'Request-URI Too Long');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('415', 'en_US.ascii', 'Unsupported Media Type');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('416', 'en_US.ascii', 'Unsupported URI Scheme');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('420', 'en_US.ascii', 'Bad Extension');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('421', 'en_US.ascii', 'Extension Required');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('423', 'en_US.ascii', 'Interval Too Brief');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('480', 'en_US.ascii', 'Temporarily Unavailable');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('481', 'en_US.ascii', 'Call/Transaction Does Not Exist');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('482', 'en_US.ascii', 'Loop Detected');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('483', 'en_US.ascii', 'Too Many Hops');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('484', 'en_US.ascii', 'Address Incomplete');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('485', 'en_US.ascii', 'Ambiguous');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('486', 'en_US.ascii', 'Busy Here');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('487', 'en_US.ascii', 'Request Terminated');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('488', 'en_US.ascii', 'Not Acceptable Here');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('491', 'en_US.ascii', 'Request Pending');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('493', 'en_US.ascii', 'Undecipherable');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('500', 'en_US.ascii', 'Server Internal Error');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('501', 'en_US.ascii', 'Not Implemented');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('502', 'en_US.ascii', 'Bad Gateway');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('503', 'en_US.ascii', 'Service Unavailable');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('504', 'en_US.ascii', 'Server Time-out');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('505', 'en_US.ascii', 'Version Not Supported');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('513', 'en_US.ascii', 'Message Too Large');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('600', 'en_US.ascii', 'Busy Everywhere');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('603', 'en_US.ascii', 'Decline');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('604', 'en_US.ascii', 'Does Not Exist Anywhere');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('606', 'en_US.ascii', 'Not Acceptable');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('100', 'cs_CZ.ascii', 'Navazuji spojeni');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('180', 'cs_CZ.ascii', 'Vyzvani');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('181', 'cs_CZ.ascii', 'Hovor je presmerovan');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('182', 'cs_CZ.ascii', 'Jste v poradi');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('183', 'cs_CZ.ascii', 'Probiha navazovani spojeni');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('200', 'cs_CZ.ascii', 'Uspesne provedeno');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('202', 'cs_CZ.ascii', 'Bude vyrizeno pozdeji');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('300', 'cs_CZ.ascii', 'Existuje vice moznosti');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('301', 'cs_CZ.ascii', 'Trvale presmerovano');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('302', 'cs_CZ.ascii', 'Docasne presmerovano');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('305', 'cs_CZ.ascii', 'Pouzijte jiny server');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('380', 'cs_CZ.ascii', 'Alternativni sluzba');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('400', 'cs_CZ.ascii', 'Chyba protokolu');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('401', 'cs_CZ.ascii', 'Overeni totoznosti');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('402', 'cs_CZ.ascii', 'Placena sluzba');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('403', 'cs_CZ.ascii', 'Zakazano');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('404', 'cs_CZ.ascii', 'Nenalezeno');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('405', 'cs_CZ.ascii', 'Nepovoleny prikaz');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('406', 'cs_CZ.ascii', 'Neni povoleno');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('407', 'cs_CZ.ascii', 'Server vyzaduje overeni totoznosti');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('408', 'cs_CZ.ascii', 'Casovy limit vyprsel');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('410', 'cs_CZ.ascii', 'Nenalezeno');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('413', 'cs_CZ.ascii', 'Prilis dlouhy identifikator');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('414', 'cs_CZ.ascii', 'Request-URI je prilis dlouhe');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('415', 'cs_CZ.ascii', 'Nepodporovany typ dat');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('416', 'cs_CZ.ascii', 'Nepodporovany typ identifikatoru');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('420', 'cs_CZ.ascii', 'Neplatne cislo linky');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('421', 'cs_CZ.ascii', 'Zadejte cislo linky');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('423', 'cs_CZ.ascii', 'Prilis kratky interval');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('480', 'cs_CZ.ascii', 'Docasne nedostupne');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('481', 'cs_CZ.ascii', 'Spojeni nenalezeno');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('482', 'cs_CZ.ascii', 'Zprava se zacyklila');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('483', 'cs_CZ.ascii', 'Prilis mnoho kroku');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('484', 'cs_CZ.ascii', 'Neuplna adresa');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('485', 'cs_CZ.ascii', 'Nejednoznacne');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('486', 'cs_CZ.ascii', 'Volany je zaneprazdnen');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('487', 'cs_CZ.ascii', 'Prikaz predcasne ukoncen');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('488', 'cs_CZ.ascii', 'Nebylo akceptovano');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('491', 'cs_CZ.ascii', 'Cekam na odpoved');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('493', 'cs_CZ.ascii', 'Nelze dekodovat');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('500', 'cs_CZ.ascii', 'Interni chyba serveru');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('501', 'cs_CZ.ascii', 'Neni implementovano');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('502', 'cs_CZ.ascii', 'Chybna brana');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('503', 'cs_CZ.ascii', 'Sluzba neni dostupna');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('504', 'cs_CZ.ascii', 'Casovy limit serveru vyprsel');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('505', 'cs_CZ.ascii', 'Nepodporovana verze protokolu');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('513', 'cs_CZ.ascii', 'Zprava je prilis dlouha');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('600', 'cs_CZ.ascii', 'Uzivatel je zaneprazdnen');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('603', 'cs_CZ.ascii', 'Odmitnuto');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('604', 'cs_CZ.ascii', 'Neexistujici uzivatel nebo sluzba');
+INSERT IGNORE INTO i18n (code, lang, new_reason) VALUES ('606', 'cs_CZ.ascii', 'Nelze akceptovat');