Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2011121400.sql 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- Updates from version 0.7
  2. CREATE TABLE contacts_tmp (
  3. contact_id integer NOT NULL PRIMARY KEY,
  4. user_id integer NOT NULL,
  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 text NOT NULL default '',
  9. firstname varchar(128) NOT NULL default '',
  10. surname varchar(128) NOT NULL default '',
  11. vcard text NOT NULL default '',
  12. words text NOT NULL default ''
  13. );
  14. INSERT INTO contacts_tmp (contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words)
  15. SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words FROM contacts;
  16. DROP TABLE contacts;
  17. CREATE TABLE contacts (
  18. contact_id integer NOT NULL PRIMARY KEY,
  19. user_id integer NOT NULL,
  20. changed datetime NOT NULL default '0000-00-00 00:00:00',
  21. del tinyint NOT NULL default '0',
  22. name varchar(128) NOT NULL default '',
  23. email text NOT NULL default '',
  24. firstname varchar(128) NOT NULL default '',
  25. surname varchar(128) NOT NULL default '',
  26. vcard text NOT NULL default '',
  27. words text NOT NULL default ''
  28. );
  29. INSERT INTO contacts (contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words)
  30. SELECT contact_id, user_id, changed, del, name, email, firstname, surname, vcard, words FROM contacts_tmp;
  31. CREATE INDEX ix_contacts_user_id ON contacts(user_id, del);
  32. DROP TABLE contacts_tmp;