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.

2015111100.sql 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. CREATE TABLE tmp_users (
  2. user_id integer NOT NULL PRIMARY KEY,
  3. username varchar(128) NOT NULL default '',
  4. mail_host varchar(128) NOT NULL default '',
  5. created datetime NOT NULL default '0000-00-00 00:00:00',
  6. last_login datetime DEFAULT NULL,
  7. failed_login datetime DEFAULT NULL,
  8. failed_login_counter integer DEFAULT NULL,
  9. language varchar(5),
  10. preferences text NOT NULL default ''
  11. );
  12. INSERT INTO tmp_users (user_id, username, mail_host, created, last_login, language, preferences)
  13. SELECT user_id, username, mail_host, created, last_login, language, preferences FROM users;
  14. DROP TABLE users;
  15. CREATE TABLE users (
  16. user_id integer NOT NULL PRIMARY KEY,
  17. username varchar(128) NOT NULL default '',
  18. mail_host varchar(128) NOT NULL default '',
  19. created datetime NOT NULL default '0000-00-00 00:00:00',
  20. last_login datetime DEFAULT NULL,
  21. failed_login datetime DEFAULT NULL,
  22. failed_login_counter integer DEFAULT NULL,
  23. language varchar(5),
  24. preferences text NOT NULL default ''
  25. );
  26. INSERT INTO users (user_id, username, mail_host, created, last_login, language, preferences)
  27. SELECT user_id, username, mail_host, created, last_login, language, preferences FROM tmp_users;
  28. CREATE UNIQUE INDEX ix_users_username ON users(username, mail_host);
  29. DROP TABLE tmp_users;