You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2008030300.sql 869B

12345678910111213141516171819202122232425
  1. -- Updates from version 0.1-stable to 0.1.1
  2. DROP TABLE messages;
  3. CREATE TABLE messages (
  4. message_id integer NOT NULL PRIMARY KEY,
  5. user_id integer NOT NULL default '0',
  6. del tinyint NOT NULL default '0',
  7. cache_key varchar(128) NOT NULL default '',
  8. created datetime NOT NULL default '0000-00-00 00:00:00',
  9. idx integer NOT NULL default '0',
  10. uid integer NOT NULL default '0',
  11. subject varchar(255) NOT NULL default '',
  12. "from" varchar(255) NOT NULL default '',
  13. "to" varchar(255) NOT NULL default '',
  14. "cc" varchar(255) NOT NULL default '',
  15. "date" datetime NOT NULL default '0000-00-00 00:00:00',
  16. size integer NOT NULL default '0',
  17. headers text NOT NULL,
  18. structure text
  19. );
  20. CREATE INDEX ix_messages_user_cache_uid ON messages(user_id,cache_key,uid);
  21. CREATE INDEX ix_users_username ON users(username);
  22. CREATE INDEX ix_users_alias ON users(alias);