Changeset 5711 in subversion for trunk/roundcubemail/SQL/sqlite.update.sql
- Timestamp:
- Jan 5, 2012 3:45:22 AM (17 months ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/SQL/sqlite.update.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/SQL/sqlite.update.sql
r5615 r5711 294 294 vars text NOT NULL 295 295 ); 296 297 296 CREATE INDEX ix_session_changed ON session (changed); 297 298 -- Updates from version 0.7 299 300 CREATE TABLE contacts_tmp ( 301 contact_id integer NOT NULL PRIMARY KEY, 302 user_id integer NOT NULL, 303 changed datetime NOT NULL default '0000-00-00 00:00:00', 304 del tinyint NOT NULL default '0', 305 name varchar(128) NOT NULL default '', 306 email text NOT NULL default '', 307 firstname varchar(128) NOT NULL default '', 308 surname varchar(128) NOT NULL default '', 309 vcard text NOT NULL default '', 310 words text NOT NULL default '' 311 ); 312 313 INSERT INTO contacts_tmp (contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words) 314 SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words FROM contacts; 315 316 DROP TABLE contacts; 317 318 CREATE TABLE contacts ( 319 contact_id integer NOT NULL PRIMARY KEY, 320 user_id integer NOT NULL, 321 changed datetime NOT NULL default '0000-00-00 00:00:00', 322 del tinyint NOT NULL default '0', 323 name varchar(128) NOT NULL default '', 324 email text NOT NULL default '', 325 firstname varchar(128) NOT NULL default '', 326 surname varchar(128) NOT NULL default '', 327 vcard text NOT NULL default '', 328 words text NOT NULL default '' 329 ); 330 331 INSERT INTO contacts (contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words) 332 SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words FROM contacts_tmp; 333 334 CREATE INDEX ix_contacts_user_id ON contacts(user_id, del); 335 DROP TABLE contacts_tmp;
Note: See TracChangeset
for help on using the changeset viewer.
