Fork de wikipp, le moteur de wiki en c++, basé sur cppcms. Le fork ajoute la langue française
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.

mysql.sql 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. drop table if exists history;
  2. drop table if exists pages;
  3. drop table if exists connections;
  4. drop table if exists users;
  5. drop table if exists options;
  6. create table options (
  7. lang varchar(16) not null,
  8. name varchar(32) not null,
  9. value text not null,
  10. constraint unique(lang,name)
  11. ) Engine = InnoDB;
  12. create table users (
  13. id integer auto_increment primary key not null,
  14. username varchar(32) unique not null,
  15. password varchar(32) not null
  16. ) Engine = InnoDB;
  17. create table pages (
  18. id integer auto_increment primary key not null,
  19. lang varchar(16) not null,
  20. slug varchar(128) not null,
  21. title varchar(256) not null,
  22. content text not null,
  23. sidebar text not null,
  24. users_only integer not null,
  25. constraint unique (lang,slug)
  26. ) Engine = InnoDB;
  27. create table history (
  28. id integer not null,
  29. version integer not null,
  30. created datetime not null,
  31. author varchar(32) not null,
  32. title varchar(256) not null,
  33. content text not null,
  34. sidebar text not null,
  35. constraint unique(id,version),
  36. foreign key(id) references pages(id),
  37. primary key(id,version)
  38. ) Engine = InnoDB;
  39. create index history_timeline on history(created);