Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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