Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2011011200.sql 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. -- Updates from version 0.5.x
  2. CREATE TABLE contacts_tmp (
  3. contact_id integer NOT NULL PRIMARY KEY,
  4. user_id integer NOT NULL default '0',
  5. changed datetime NOT NULL default '0000-00-00 00:00:00',
  6. del tinyint NOT NULL default '0',
  7. name varchar(128) NOT NULL default '',
  8. email varchar(255) NOT NULL default '',
  9. firstname varchar(128) NOT NULL default '',
  10. surname varchar(128) NOT NULL default '',
  11. vcard text NOT NULL default ''
  12. );
  13. INSERT INTO contacts_tmp (contact_id, user_id, changed, del, name, email, firstname, surname, vcard)
  14. SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard FROM contacts;
  15. DROP TABLE contacts;
  16. CREATE TABLE contacts (
  17. contact_id integer NOT NULL PRIMARY KEY,
  18. user_id integer NOT NULL default '0',
  19. changed datetime NOT NULL default '0000-00-00 00:00:00',
  20. del tinyint NOT NULL default '0',
  21. name varchar(128) NOT NULL default '',
  22. email varchar(255) NOT NULL default '',
  23. firstname varchar(128) NOT NULL default '',
  24. surname varchar(128) NOT NULL default '',
  25. vcard text NOT NULL default '',
  26. words text NOT NULL default ''
  27. );
  28. INSERT INTO contacts (contact_id, user_id, changed, del, name, email, firstname, surname, vcard)
  29. SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard FROM contacts_tmp;
  30. CREATE INDEX ix_contacts_user_id ON contacts(user_id, email);
  31. DROP TABLE contacts_tmp;
  32. DELETE FROM messages;
  33. DELETE FROM cache;
  34. CREATE INDEX ix_contactgroupmembers_contact_id ON contactgroupmembers (contact_id);