Revision b68a8b6c

View differences:

src/cluster/Cluster.cc
30 30
        "oid, name, body, uid, gid, owner_u, group_u, other_u";
31 31

  
32 32
const char * Cluster::db_bootstrap = "CREATE TABLE IF NOT EXISTS cluster_pool ("
33
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
33
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
34 34
    "gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
35 35
    "UNIQUE(name))";
36 36

  
src/datastore/Datastore.cc
28 28

  
29 29
const char * Datastore::db_bootstrap =
30 30
    "CREATE TABLE IF NOT EXISTS datastore_pool ("
31
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
31
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
32 32
    "gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
33 33
    "cid INTEGER, UNIQUE(name))";
34 34

  
src/document/Document.cc
64 64

  
65 65
const char * Document::db_bootstrap =
66 66
    "CREATE TABLE IF NOT EXISTS document_pool (oid INTEGER PRIMARY KEY, "
67
    "name VARCHAR(128), body TEXT, type INTEGER, uid INTEGER, gid INTEGER, "
67
    "name VARCHAR(128), body MEDIUMTEXT, type INTEGER, uid INTEGER, gid INTEGER, "
68 68
    "owner_u INTEGER, group_u INTEGER, other_u INTEGER)";
69 69

  
70 70
/* ------------------------------------------------------------------------ */
src/group/Group.cc
29 29
        "oid, name, body, uid, gid, owner_u, group_u, other_u";
30 30

  
31 31
const char * Group::db_bootstrap = "CREATE TABLE IF NOT EXISTS group_pool ("
32
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
32
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
33 33
    "gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
34 34
    "UNIQUE(name))";
35 35

  
src/host/Host.cc
65 65
    "oid, name, body, state, last_mon_time, uid, gid, owner_u, group_u, other_u, cid";
66 66

  
67 67
const char * Host::db_bootstrap = "CREATE TABLE IF NOT EXISTS host_pool ("
68
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, state INTEGER, "
68
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, state INTEGER, "
69 69
    "last_mon_time INTEGER, uid INTEGER, gid INTEGER, owner_u INTEGER, "
70 70
    "group_u INTEGER, other_u INTEGER, cid INTEGER, UNIQUE(name))";
71 71

  
......
75 75
const char * Host::monit_db_names = "hid, last_mon_time, body";
76 76

  
77 77
const char * Host::monit_db_bootstrap = "CREATE TABLE IF NOT EXISTS "
78
    "host_monitoring (hid INTEGER, last_mon_time INTEGER, body TEXT, "
78
    "host_monitoring (hid INTEGER, last_mon_time INTEGER, body MEDIUMTEXT, "
79 79
    "PRIMARY KEY(hid, last_mon_time))";
80 80
/* ------------------------------------------------------------------------ */
81 81
/* ------------------------------------------------------------------------ */
src/image/Image.cc
87 87
        "oid, name, body, uid, gid, owner_u, group_u, other_u";
88 88

  
89 89
const char * Image::db_bootstrap = "CREATE TABLE IF NOT EXISTS image_pool ("
90
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
90
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
91 91
    "gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
92 92
    "UNIQUE(name,uid) )";
93 93

  
src/nebula/Nebula.cc
55 55
const char * SystemDB::sys_names = "name, body";
56 56

  
57 57
const char * SystemDB::sys_bootstrap =  "CREATE TABLE IF NOT EXISTS"
58
        " system_attributes (name VARCHAR(128) PRIMARY KEY, body TEXT)";
58
        " system_attributes (name VARCHAR(128) PRIMARY KEY, body MEDIUMTEXT)";
59 59

  
60 60
/* -------------------------------------------------------------------------- */
61 61
/* -------------------------------------------------------------------------- */
src/nebula/SystemDB.cc
43 43
const char * SystemDB::sys_names = "name, body";
44 44

  
45 45
const char * SystemDB::sys_bootstrap =  "CREATE TABLE IF NOT EXISTS"
46
        " system_attributes (name VARCHAR(128) PRIMARY KEY, body TEXT)";
46
        " system_attributes (name VARCHAR(128) PRIMARY KEY, body MEDIUMTEXT)";
47 47

  
48 48
/* -------------------------------------------------------------------------- */
49 49
/* -------------------------------------------------------------------------- */
src/um/User.cc
40 40
        "oid, name, body, uid, gid, owner_u, group_u, other_u";
41 41

  
42 42
const char * User::db_bootstrap = "CREATE TABLE IF NOT EXISTS user_pool ("
43
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
43
    "oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
44 44
    "gid INTEGER, owner_u INTEGER, group_u INTEGER, other_u INTEGER, "
45 45
    "UNIQUE(name))";
46 46

  
src/vm/History.cc
28 28
const char * History::db_names = "vid, seq, body, stime, etime";
29 29

  
30 30
const char * History::db_bootstrap = "CREATE TABLE IF NOT EXISTS "
31
    "history (vid INTEGER, seq INTEGER, body TEXT, "
31
    "history (vid INTEGER, seq INTEGER, body MEDIUMTEXT, "
32 32
    "stime INTEGER, etime INTEGER,PRIMARY KEY(vid,seq))";
33 33

  
34 34
/* -------------------------------------------------------------------------- */
src/vm/VirtualMachine.cc
112 112
    "owner_u, group_u, other_u";
113 113

  
114 114
const char * VirtualMachine::db_bootstrap = "CREATE TABLE IF NOT EXISTS "
115
    "vm_pool (oid INTEGER PRIMARY KEY, name VARCHAR(128), body TEXT, uid INTEGER, "
115
    "vm_pool (oid INTEGER PRIMARY KEY, name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, "
116 116
    "gid INTEGER, last_poll INTEGER, state INTEGER, lcm_state INTEGER, "
117 117
    "owner_u INTEGER, group_u INTEGER, other_u INTEGER)";
118 118

  
......
122 122
const char * VirtualMachine::monit_db_names = "vmid, last_poll, body";
123 123

  
124 124
const char * VirtualMachine::monit_db_bootstrap = "CREATE TABLE IF NOT EXISTS "
125
    "vm_monitoring (vmid INTEGER, last_poll INTEGER, body TEXT, "
125
    "vm_monitoring (vmid INTEGER, last_poll INTEGER, body MEDIUMTEXT, "
126 126
    "PRIMARY KEY(vmid, last_poll))";
127 127

  
128 128
/* -------------------------------------------------------------------------- */
src/vm_template/VMTemplate.cc
67 67

  
68 68
const char * VMTemplate::db_bootstrap =
69 69
    "CREATE TABLE IF NOT EXISTS template_pool (oid INTEGER PRIMARY KEY, "
70
    "name VARCHAR(128), body TEXT, uid INTEGER, gid INTEGER, "
70
    "name VARCHAR(128), body MEDIUMTEXT, uid INTEGER, gid INTEGER, "
71 71
    "owner_u INTEGER, group_u INTEGER, other_u INTEGER)";
72 72

  
73 73
/* ------------------------------------------------------------------------ */
src/vnm/Leases.cc
358 358
const char * Leases::db_names     = "oid, ip, body";
359 359

  
360 360
const char * Leases::db_bootstrap = "CREATE TABLE IF NOT EXISTS leases ("
361
                "oid INTEGER, ip BIGINT, body TEXT, PRIMARY KEY(oid,ip))";
361
                "oid INTEGER, ip BIGINT, body MEDIUMTEXT, PRIMARY KEY(oid,ip))";
362 362

  
363 363
/* -------------------------------------------------------------------------- */
364 364
/* -------------------------------------------------------------------------- */
src/vnm/VirtualNetwork.cc
88 88

  
89 89
const char * VirtualNetwork::db_bootstrap = "CREATE TABLE IF NOT EXISTS"
90 90
    " network_pool (oid INTEGER PRIMARY KEY, name VARCHAR(128),"
91
    " body TEXT, uid INTEGER, gid INTEGER,"
91
    " body MEDIUMTEXT, uid INTEGER, gid INTEGER,"
92 92
    " owner_u INTEGER, group_u INTEGER, other_u INTEGER,"
93 93
    " cid INTEGER, UNIQUE(name,uid))";
94 94

  

Also available in: Unified diff