Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2011092800.sql 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. -- Updates from version 0.6
  2. CREATE TABLE dictionary (
  3. user_id integer DEFAULT NULL,
  4. "language" varchar(5) NOT NULL,
  5. data text NOT NULL
  6. );
  7. CREATE UNIQUE INDEX ix_dictionary_user_language ON dictionary (user_id, "language");
  8. CREATE TABLE searches (
  9. search_id integer NOT NULL PRIMARY KEY,
  10. user_id integer NOT NULL DEFAULT '0',
  11. "type" smallint NOT NULL DEFAULT '0',
  12. name varchar(128) NOT NULL,
  13. data text NOT NULL
  14. );
  15. CREATE UNIQUE INDEX ix_searches_user_type_name ON searches (user_id, type, name);
  16. DROP TABLE messages;
  17. CREATE TABLE cache_index (
  18. user_id integer NOT NULL,
  19. mailbox varchar(255) NOT NULL,
  20. changed datetime NOT NULL default '0000-00-00 00:00:00',
  21. valid smallint NOT NULL DEFAULT '0',
  22. data text NOT NULL,
  23. PRIMARY KEY (user_id, mailbox)
  24. );
  25. CREATE INDEX ix_cache_index_changed ON cache_index (changed);
  26. CREATE TABLE cache_thread (
  27. user_id integer NOT NULL,
  28. mailbox varchar(255) NOT NULL,
  29. changed datetime NOT NULL default '0000-00-00 00:00:00',
  30. data text NOT NULL,
  31. PRIMARY KEY (user_id, mailbox)
  32. );
  33. CREATE INDEX ix_cache_thread_changed ON cache_thread (changed);
  34. CREATE TABLE cache_messages (
  35. user_id integer NOT NULL,
  36. mailbox varchar(255) NOT NULL,
  37. uid integer NOT NULL,
  38. changed datetime NOT NULL default '0000-00-00 00:00:00',
  39. data text NOT NULL,
  40. flags integer NOT NULL DEFAULT '0',
  41. PRIMARY KEY (user_id, mailbox, uid)
  42. );
  43. CREATE INDEX ix_cache_messages_changed ON cache_messages (changed);