install_2-1_mysql.sql 65 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094
  1. #### ATTENTION: You do not need to run or use this file! The install.php script does everything for you!
  2. #### Install script for MySQL 4.0.18+
  3. #
  4. # Table structure for table `admin_info_files`
  5. #
  6. CREATE TABLE {$db_prefix}admin_info_files (
  7. id_file tinyint(4) unsigned NOT NULL auto_increment,
  8. filename varchar(255) NOT NULL default '',
  9. path varchar(255) NOT NULL default '',
  10. parameters varchar(255) NOT NULL default '',
  11. data text NOT NULL,
  12. filetype varchar(255) NOT NULL default '',
  13. PRIMARY KEY (id_file),
  14. KEY filename (filename(30))
  15. ) ENGINE=MyISAM;
  16. #
  17. # Dumping data for table `admin_info_files`
  18. #
  19. INSERT INTO {$db_prefix}admin_info_files
  20. (id_file, filename, path, parameters, data, filetype)
  21. VALUES
  22. (1, 'current-version.js', '/smf/', 'version=%3$s', '', 'text/javascript'),
  23. (2, 'detailed-version.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
  24. (3, 'latest-news.js', '/smf/', 'language=%1$s&format=%2$s', '', 'text/javascript'),
  25. (4, 'latest-packages.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
  26. (5, 'latest-smileys.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
  27. (6, 'latest-support.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript'),
  28. (7, 'latest-themes.js', '/smf/', 'language=%1$s&version=%3$s', '', 'text/javascript');
  29. # --------------------------------------------------------
  30. #
  31. # Table structure for table `approval_queue`
  32. #
  33. CREATE TABLE {$db_prefix}approval_queue (
  34. id_msg int(10) unsigned NOT NULL default '0',
  35. id_attach int(10) unsigned NOT NULL default '0',
  36. id_event smallint(5) unsigned NOT NULL default '0'
  37. ) ENGINE=MyISAM;
  38. #
  39. # Table structure for table `attachments`
  40. #
  41. CREATE TABLE {$db_prefix}attachments (
  42. id_attach int(10) unsigned NOT NULL auto_increment,
  43. id_thumb int(10) unsigned NOT NULL default '0',
  44. id_msg int(10) unsigned NOT NULL default '0',
  45. id_member mediumint(8) unsigned NOT NULL default '0',
  46. id_folder tinyint(3) NOT NULL default '1',
  47. attachment_type tinyint(3) unsigned NOT NULL default '0',
  48. filename varchar(255) NOT NULL default '',
  49. file_hash varchar(40) NOT NULL default '',
  50. fileext varchar(8) NOT NULL default '',
  51. size int(10) unsigned NOT NULL default '0',
  52. downloads mediumint(8) unsigned NOT NULL default '0',
  53. width mediumint(8) unsigned NOT NULL default '0',
  54. height mediumint(8) unsigned NOT NULL default '0',
  55. mime_type varchar(20) NOT NULL default '',
  56. approved tinyint(3) NOT NULL default '1',
  57. PRIMARY KEY (id_attach),
  58. UNIQUE id_member (id_member, id_attach),
  59. KEY id_msg (id_msg),
  60. KEY attachment_type (attachment_type)
  61. ) ENGINE=MyISAM;
  62. #
  63. # Table structure for table `ban_groups`
  64. #
  65. CREATE TABLE {$db_prefix}ban_groups (
  66. id_ban_group mediumint(8) unsigned NOT NULL auto_increment,
  67. name varchar(20) NOT NULL default '',
  68. ban_time int(10) unsigned NOT NULL default '0',
  69. expire_time int(10) unsigned,
  70. cannot_access tinyint(3) unsigned NOT NULL default '0',
  71. cannot_register tinyint(3) unsigned NOT NULL default '0',
  72. cannot_post tinyint(3) unsigned NOT NULL default '0',
  73. cannot_login tinyint(3) unsigned NOT NULL default '0',
  74. reason varchar(255) NOT NULL default '',
  75. notes text NOT NULL,
  76. PRIMARY KEY (id_ban_group)
  77. ) ENGINE=MyISAM;
  78. #
  79. # Table structure for table `ban_items`
  80. #
  81. CREATE TABLE {$db_prefix}ban_items (
  82. id_ban mediumint(8) unsigned NOT NULL auto_increment,
  83. id_ban_group smallint(5) unsigned NOT NULL default '0',
  84. ip_low1 smallint(255) unsigned NOT NULL default '0',
  85. ip_high1 smallint(255) unsigned NOT NULL default '0',
  86. ip_low2 smallint(255) unsigned NOT NULL default '0',
  87. ip_high2 smallint(255) unsigned NOT NULL default '0',
  88. ip_low3 smallint(255) unsigned NOT NULL default '0',
  89. ip_high3 smallint(255) unsigned NOT NULL default '0',
  90. ip_low4 smallint(255) unsigned NOT NULL default '0',
  91. ip_high4 smallint(255) unsigned NOT NULL default '0',
  92. ip_low5 smallint(255) unsigned NOT NULL default '0',
  93. ip_high5 smallint(255) unsigned NOT NULL default '0',
  94. ip_low6 smallint(255) unsigned NOT NULL default '0',
  95. ip_high6 smallint(255) unsigned NOT NULL default '0',
  96. ip_low7 smallint(255) unsigned NOT NULL default '0',
  97. ip_high7 smallint(255) unsigned NOT NULL default '0',
  98. ip_low8 smallint(255) unsigned NOT NULL default '0',
  99. ip_high8 smallint(255) unsigned NOT NULL default '0',
  100. hostname varchar(255) NOT NULL default '',
  101. email_address varchar(255) NOT NULL default '',
  102. id_member mediumint(8) unsigned NOT NULL default '0',
  103. hits mediumint(8) unsigned NOT NULL default '0',
  104. PRIMARY KEY (id_ban),
  105. KEY id_ban_group (id_ban_group)
  106. ) ENGINE=MyISAM;
  107. #
  108. # Table structure for table `board_permissions`
  109. #
  110. CREATE TABLE {$db_prefix}board_permissions (
  111. id_group smallint(5) NOT NULL default '0',
  112. id_profile smallint(5) unsigned NOT NULL default '0',
  113. permission varchar(30) NOT NULL default '',
  114. add_deny tinyint(4) NOT NULL default '1',
  115. PRIMARY KEY (id_group, id_profile, permission)
  116. ) ENGINE=MyISAM;
  117. #
  118. # Dumping data for table `board_permissions`
  119. #
  120. INSERT INTO {$db_prefix}board_permissions
  121. (id_group, id_profile, permission)
  122. VALUES (-1, 1, 'poll_view'),
  123. (0, 1, 'remove_own'),
  124. (0, 1, 'lock_own'),
  125. (0, 1, 'mark_any_notify'),
  126. (0, 1, 'mark_notify'),
  127. (0, 1, 'modify_own'),
  128. (0, 1, 'poll_add_own'),
  129. (0, 1, 'poll_edit_own'),
  130. (0, 1, 'poll_lock_own'),
  131. (0, 1, 'poll_post'),
  132. (0, 1, 'poll_view'),
  133. (0, 1, 'poll_vote'),
  134. (0, 1, 'post_attachment'),
  135. (0, 1, 'post_new'),
  136. (0, 1, 'post_draft'),
  137. (0, 1, 'post_autosave_draft'),
  138. (0, 1, 'post_reply_any'),
  139. (0, 1, 'post_reply_own'),
  140. (0, 1, 'post_unapproved_topics'),
  141. (0, 1, 'post_unapproved_replies_any'),
  142. (0, 1, 'post_unapproved_replies_own'),
  143. (0, 1, 'post_unapproved_attachments'),
  144. (0, 1, 'delete_own'),
  145. (0, 1, 'report_any'),
  146. (0, 1, 'send_topic'),
  147. (0, 1, 'view_attachments'),
  148. (2, 1, 'moderate_board'),
  149. (2, 1, 'post_new'),
  150. (2, 1, 'post_draft'),
  151. (2, 1, 'post_autosave_draft'),
  152. (2, 1, 'post_reply_own'),
  153. (2, 1, 'post_reply_any'),
  154. (2, 1, 'post_unapproved_topics'),
  155. (2, 1, 'post_unapproved_replies_any'),
  156. (2, 1, 'post_unapproved_replies_own'),
  157. (2, 1, 'post_unapproved_attachments'),
  158. (2, 1, 'poll_post'),
  159. (2, 1, 'poll_add_any'),
  160. (2, 1, 'poll_remove_any'),
  161. (2, 1, 'poll_view'),
  162. (2, 1, 'poll_vote'),
  163. (2, 1, 'poll_lock_any'),
  164. (2, 1, 'poll_edit_any'),
  165. (2, 1, 'report_any'),
  166. (2, 1, 'lock_own'),
  167. (2, 1, 'send_topic'),
  168. (2, 1, 'mark_any_notify'),
  169. (2, 1, 'mark_notify'),
  170. (2, 1, 'delete_own'),
  171. (2, 1, 'modify_own'),
  172. (2, 1, 'make_sticky'),
  173. (2, 1, 'lock_any'),
  174. (2, 1, 'remove_any'),
  175. (2, 1, 'move_any'),
  176. (2, 1, 'merge_any'),
  177. (2, 1, 'split_any'),
  178. (2, 1, 'delete_any'),
  179. (2, 1, 'modify_any'),
  180. (2, 1, 'approve_posts'),
  181. (2, 1, 'post_attachment'),
  182. (2, 1, 'view_attachments'),
  183. (3, 1, 'moderate_board'),
  184. (3, 1, 'post_new'),
  185. (3, 1, 'post_draft'),
  186. (3, 1, 'post_autosave_draft'),
  187. (3, 1, 'post_reply_own'),
  188. (3, 1, 'post_reply_any'),
  189. (3, 1, 'post_unapproved_topics'),
  190. (3, 1, 'post_unapproved_replies_any'),
  191. (3, 1, 'post_unapproved_replies_own'),
  192. (3, 1, 'post_unapproved_attachments'),
  193. (3, 1, 'poll_post'),
  194. (3, 1, 'poll_add_any'),
  195. (3, 1, 'poll_remove_any'),
  196. (3, 1, 'poll_view'),
  197. (3, 1, 'poll_vote'),
  198. (3, 1, 'poll_lock_any'),
  199. (3, 1, 'poll_edit_any'),
  200. (3, 1, 'report_any'),
  201. (3, 1, 'lock_own'),
  202. (3, 1, 'send_topic'),
  203. (3, 1, 'mark_any_notify'),
  204. (3, 1, 'mark_notify'),
  205. (3, 1, 'delete_own'),
  206. (3, 1, 'modify_own'),
  207. (3, 1, 'make_sticky'),
  208. (3, 1, 'lock_any'),
  209. (3, 1, 'remove_any'),
  210. (3, 1, 'move_any'),
  211. (3, 1, 'merge_any'),
  212. (3, 1, 'split_any'),
  213. (3, 1, 'delete_any'),
  214. (3, 1, 'modify_any'),
  215. (3, 1, 'approve_posts'),
  216. (3, 1, 'post_attachment'),
  217. (3, 1, 'view_attachments'),
  218. (-1, 2, 'poll_view'),
  219. (0, 2, 'remove_own'),
  220. (0, 2, 'lock_own'),
  221. (0, 2, 'mark_any_notify'),
  222. (0, 2, 'mark_notify'),
  223. (0, 2, 'modify_own'),
  224. (0, 2, 'poll_view'),
  225. (0, 2, 'poll_vote'),
  226. (0, 2, 'post_attachment'),
  227. (0, 2, 'post_new'),
  228. (0, 2, 'post_draft'),
  229. (0, 2, 'post_autosave_draft'),
  230. (0, 2, 'post_reply_any'),
  231. (0, 2, 'post_reply_own'),
  232. (0, 2, 'post_unapproved_topics'),
  233. (0, 2, 'post_unapproved_replies_any'),
  234. (0, 2, 'post_unapproved_replies_own'),
  235. (0, 2, 'post_unapproved_attachments'),
  236. (0, 2, 'delete_own'),
  237. (0, 2, 'report_any'),
  238. (0, 2, 'send_topic'),
  239. (0, 2, 'view_attachments'),
  240. (2, 2, 'moderate_board'),
  241. (2, 2, 'post_new'),
  242. (2, 2, 'post_draft'),
  243. (2, 2, 'post_autosave_draft'),
  244. (2, 2, 'post_reply_own'),
  245. (2, 2, 'post_reply_any'),
  246. (2, 2, 'post_unapproved_topics'),
  247. (2, 2, 'post_unapproved_replies_any'),
  248. (2, 2, 'post_unapproved_replies_own'),
  249. (2, 2, 'post_unapproved_attachments'),
  250. (2, 2, 'poll_post'),
  251. (2, 2, 'poll_add_any'),
  252. (2, 2, 'poll_remove_any'),
  253. (2, 2, 'poll_view'),
  254. (2, 2, 'poll_vote'),
  255. (2, 2, 'poll_lock_any'),
  256. (2, 2, 'poll_edit_any'),
  257. (2, 2, 'report_any'),
  258. (2, 2, 'lock_own'),
  259. (2, 2, 'send_topic'),
  260. (2, 2, 'mark_any_notify'),
  261. (2, 2, 'mark_notify'),
  262. (2, 2, 'delete_own'),
  263. (2, 2, 'modify_own'),
  264. (2, 2, 'make_sticky'),
  265. (2, 2, 'lock_any'),
  266. (2, 2, 'remove_any'),
  267. (2, 2, 'move_any'),
  268. (2, 2, 'merge_any'),
  269. (2, 2, 'split_any'),
  270. (2, 2, 'delete_any'),
  271. (2, 2, 'modify_any'),
  272. (2, 2, 'approve_posts'),
  273. (2, 2, 'post_attachment'),
  274. (2, 2, 'view_attachments'),
  275. (3, 2, 'moderate_board'),
  276. (3, 2, 'post_new'),
  277. (3, 2, 'post_draft'),
  278. (3, 2, 'post_autosave_draft'),
  279. (3, 2, 'post_reply_own'),
  280. (3, 2, 'post_reply_any'),
  281. (3, 2, 'post_unapproved_topics'),
  282. (3, 2, 'post_unapproved_replies_any'),
  283. (3, 2, 'post_unapproved_replies_own'),
  284. (3, 2, 'post_unapproved_attachments'),
  285. (3, 2, 'poll_post'),
  286. (3, 2, 'poll_add_any'),
  287. (3, 2, 'poll_remove_any'),
  288. (3, 2, 'poll_view'),
  289. (3, 2, 'poll_vote'),
  290. (3, 2, 'poll_lock_any'),
  291. (3, 2, 'poll_edit_any'),
  292. (3, 2, 'report_any'),
  293. (3, 2, 'lock_own'),
  294. (3, 2, 'send_topic'),
  295. (3, 2, 'mark_any_notify'),
  296. (3, 2, 'mark_notify'),
  297. (3, 2, 'delete_own'),
  298. (3, 2, 'modify_own'),
  299. (3, 2, 'make_sticky'),
  300. (3, 2, 'lock_any'),
  301. (3, 2, 'remove_any'),
  302. (3, 2, 'move_any'),
  303. (3, 2, 'merge_any'),
  304. (3, 2, 'split_any'),
  305. (3, 2, 'delete_any'),
  306. (3, 2, 'modify_any'),
  307. (3, 2, 'approve_posts'),
  308. (3, 2, 'post_attachment'),
  309. (3, 2, 'view_attachments'),
  310. (-1, 3, 'poll_view'),
  311. (0, 3, 'remove_own'),
  312. (0, 3, 'lock_own'),
  313. (0, 3, 'mark_any_notify'),
  314. (0, 3, 'mark_notify'),
  315. (0, 3, 'modify_own'),
  316. (0, 3, 'poll_view'),
  317. (0, 3, 'poll_vote'),
  318. (0, 3, 'post_attachment'),
  319. (0, 3, 'post_reply_any'),
  320. (0, 3, 'post_reply_own'),
  321. (0, 3, 'post_unapproved_replies_any'),
  322. (0, 3, 'post_unapproved_replies_own'),
  323. (0, 3, 'post_unapproved_attachments'),
  324. (0, 3, 'delete_own'),
  325. (0, 3, 'report_any'),
  326. (0, 3, 'send_topic'),
  327. (0, 3, 'view_attachments'),
  328. (2, 3, 'moderate_board'),
  329. (2, 3, 'post_new'),
  330. (2, 3, 'post_draft'),
  331. (2, 3, 'post_autosave_draft'),
  332. (2, 3, 'post_reply_own'),
  333. (2, 3, 'post_reply_any'),
  334. (2, 3, 'post_unapproved_topics'),
  335. (2, 3, 'post_unapproved_replies_any'),
  336. (2, 3, 'post_unapproved_replies_own'),
  337. (2, 3, 'post_unapproved_attachments'),
  338. (2, 3, 'poll_post'),
  339. (2, 3, 'poll_add_any'),
  340. (2, 3, 'poll_remove_any'),
  341. (2, 3, 'poll_view'),
  342. (2, 3, 'poll_vote'),
  343. (2, 3, 'poll_lock_any'),
  344. (2, 3, 'poll_edit_any'),
  345. (2, 3, 'report_any'),
  346. (2, 3, 'lock_own'),
  347. (2, 3, 'send_topic'),
  348. (2, 3, 'mark_any_notify'),
  349. (2, 3, 'mark_notify'),
  350. (2, 3, 'delete_own'),
  351. (2, 3, 'modify_own'),
  352. (2, 3, 'make_sticky'),
  353. (2, 3, 'lock_any'),
  354. (2, 3, 'remove_any'),
  355. (2, 3, 'move_any'),
  356. (2, 3, 'merge_any'),
  357. (2, 3, 'split_any'),
  358. (2, 3, 'delete_any'),
  359. (2, 3, 'modify_any'),
  360. (2, 3, 'approve_posts'),
  361. (2, 3, 'post_attachment'),
  362. (2, 3, 'view_attachments'),
  363. (3, 3, 'moderate_board'),
  364. (3, 3, 'post_new'),
  365. (3, 3, 'post_draft'),
  366. (3, 3, 'post_autosave_draft'),
  367. (3, 3, 'post_reply_own'),
  368. (3, 3, 'post_reply_any'),
  369. (3, 3, 'post_unapproved_topics'),
  370. (3, 3, 'post_unapproved_replies_any'),
  371. (3, 3, 'post_unapproved_replies_own'),
  372. (3, 3, 'post_unapproved_attachments'),
  373. (3, 3, 'poll_post'),
  374. (3, 3, 'poll_add_any'),
  375. (3, 3, 'poll_remove_any'),
  376. (3, 3, 'poll_view'),
  377. (3, 3, 'poll_vote'),
  378. (3, 3, 'poll_lock_any'),
  379. (3, 3, 'poll_edit_any'),
  380. (3, 3, 'report_any'),
  381. (3, 3, 'lock_own'),
  382. (3, 3, 'send_topic'),
  383. (3, 3, 'mark_any_notify'),
  384. (3, 3, 'mark_notify'),
  385. (3, 3, 'delete_own'),
  386. (3, 3, 'modify_own'),
  387. (3, 3, 'make_sticky'),
  388. (3, 3, 'lock_any'),
  389. (3, 3, 'remove_any'),
  390. (3, 3, 'move_any'),
  391. (3, 3, 'merge_any'),
  392. (3, 3, 'split_any'),
  393. (3, 3, 'delete_any'),
  394. (3, 3, 'modify_any'),
  395. (3, 3, 'approve_posts'),
  396. (3, 3, 'post_attachment'),
  397. (3, 3, 'view_attachments'),
  398. (-1, 4, 'poll_view'),
  399. (0, 4, 'mark_any_notify'),
  400. (0, 4, 'mark_notify'),
  401. (0, 4, 'poll_view'),
  402. (0, 4, 'poll_vote'),
  403. (0, 4, 'report_any'),
  404. (0, 4, 'send_topic'),
  405. (0, 4, 'view_attachments'),
  406. (2, 4, 'moderate_board'),
  407. (2, 4, 'post_new'),
  408. (2, 4, 'post_draft'),
  409. (2, 4, 'post_autosave_draft'),
  410. (2, 4, 'post_reply_own'),
  411. (2, 4, 'post_reply_any'),
  412. (2, 4, 'post_unapproved_topics'),
  413. (2, 4, 'post_unapproved_replies_any'),
  414. (2, 4, 'post_unapproved_replies_own'),
  415. (2, 4, 'post_unapproved_attachments'),
  416. (2, 4, 'poll_post'),
  417. (2, 4, 'poll_add_any'),
  418. (2, 4, 'poll_remove_any'),
  419. (2, 4, 'poll_view'),
  420. (2, 4, 'poll_vote'),
  421. (2, 4, 'poll_lock_any'),
  422. (2, 4, 'poll_edit_any'),
  423. (2, 4, 'report_any'),
  424. (2, 4, 'lock_own'),
  425. (2, 4, 'send_topic'),
  426. (2, 4, 'mark_any_notify'),
  427. (2, 4, 'mark_notify'),
  428. (2, 4, 'delete_own'),
  429. (2, 4, 'modify_own'),
  430. (2, 4, 'make_sticky'),
  431. (2, 4, 'lock_any'),
  432. (2, 4, 'remove_any'),
  433. (2, 4, 'move_any'),
  434. (2, 4, 'merge_any'),
  435. (2, 4, 'split_any'),
  436. (2, 4, 'delete_any'),
  437. (2, 4, 'modify_any'),
  438. (2, 4, 'approve_posts'),
  439. (2, 4, 'post_attachment'),
  440. (2, 4, 'view_attachments'),
  441. (3, 4, 'moderate_board'),
  442. (3, 4, 'post_new'),
  443. (3, 4, 'post_draft'),
  444. (3, 4, 'post_autosave_draft'),
  445. (3, 4, 'post_reply_own'),
  446. (3, 4, 'post_reply_any'),
  447. (3, 4, 'post_unapproved_topics'),
  448. (3, 4, 'post_unapproved_replies_any'),
  449. (3, 4, 'post_unapproved_replies_own'),
  450. (3, 4, 'post_unapproved_attachments'),
  451. (3, 4, 'poll_post'),
  452. (3, 4, 'poll_add_any'),
  453. (3, 4, 'poll_remove_any'),
  454. (3, 4, 'poll_view'),
  455. (3, 4, 'poll_vote'),
  456. (3, 4, 'poll_lock_any'),
  457. (3, 4, 'poll_edit_any'),
  458. (3, 4, 'report_any'),
  459. (3, 4, 'lock_own'),
  460. (3, 4, 'send_topic'),
  461. (3, 4, 'mark_any_notify'),
  462. (3, 4, 'mark_notify'),
  463. (3, 4, 'delete_own'),
  464. (3, 4, 'modify_own'),
  465. (3, 4, 'make_sticky'),
  466. (3, 4, 'lock_any'),
  467. (3, 4, 'remove_any'),
  468. (3, 4, 'move_any'),
  469. (3, 4, 'merge_any'),
  470. (3, 4, 'split_any'),
  471. (3, 4, 'delete_any'),
  472. (3, 4, 'modify_any'),
  473. (3, 4, 'approve_posts'),
  474. (3, 4, 'post_attachment'),
  475. (3, 4, 'view_attachments');
  476. # --------------------------------------------------------
  477. #
  478. # Table structure for table `boards`
  479. #
  480. CREATE TABLE {$db_prefix}boards (
  481. id_board smallint(5) unsigned NOT NULL auto_increment,
  482. id_cat tinyint(4) unsigned NOT NULL default '0',
  483. child_level tinyint(4) unsigned NOT NULL default '0',
  484. id_parent smallint(5) unsigned NOT NULL default '0',
  485. board_order smallint(5) NOT NULL default '0',
  486. id_last_msg int(10) unsigned NOT NULL default '0',
  487. id_msg_updated int(10) unsigned NOT NULL default '0',
  488. member_groups varchar(255) NOT NULL default '-1,0',
  489. id_profile smallint(5) unsigned NOT NULL default '1',
  490. name varchar(255) NOT NULL default '',
  491. description text NOT NULL,
  492. num_topics mediumint(8) unsigned NOT NULL default '0',
  493. num_posts mediumint(8) unsigned NOT NULL default '0',
  494. count_posts tinyint(4) NOT NULL default '0',
  495. id_theme tinyint(4) unsigned NOT NULL default '0',
  496. override_theme tinyint(4) unsigned NOT NULL default '0',
  497. unapproved_posts smallint(5) NOT NULL default '0',
  498. unapproved_topics smallint(5) NOT NULL default '0',
  499. redirect varchar(255) NOT NULL default '',
  500. deny_member_groups varchar(255) NOT NULL default '',
  501. PRIMARY KEY (id_board),
  502. UNIQUE categories (id_cat, id_board),
  503. KEY id_parent (id_parent),
  504. KEY id_msg_updated (id_msg_updated),
  505. KEY member_groups (member_groups(48))
  506. ) ENGINE=MyISAM;
  507. #
  508. # Dumping data for table `boards`
  509. #
  510. INSERT INTO {$db_prefix}boards
  511. (id_board, id_cat, board_order, id_last_msg, id_msg_updated, name, description, num_topics, num_posts, member_groups)
  512. VALUES (1, 1, 1, 1, 1, '{$default_board_name}', '{$default_board_description}', 1, 1, '-1,0,2');
  513. # --------------------------------------------------------
  514. #
  515. # Table structure for table `calendar`
  516. #
  517. CREATE TABLE {$db_prefix}calendar (
  518. id_event smallint(5) unsigned NOT NULL auto_increment,
  519. start_date date NOT NULL default '0001-01-01',
  520. end_date date NOT NULL default '0001-01-01',
  521. id_board smallint(5) unsigned NOT NULL default '0',
  522. id_topic mediumint(8) unsigned NOT NULL default '0',
  523. title varchar(255) NOT NULL default '',
  524. id_member mediumint(8) unsigned NOT NULL default '0',
  525. PRIMARY KEY (id_event),
  526. KEY start_date (start_date),
  527. KEY end_date (end_date),
  528. KEY topic (id_topic, id_member)
  529. ) ENGINE=MyISAM;
  530. #
  531. # Table structure for table `calendar_holidays`
  532. #
  533. CREATE TABLE {$db_prefix}calendar_holidays (
  534. id_holiday smallint(5) unsigned NOT NULL auto_increment,
  535. event_date date NOT NULL default '0001-01-01',
  536. title varchar(255) NOT NULL default '',
  537. PRIMARY KEY (id_holiday),
  538. KEY event_date (event_date)
  539. ) ENGINE=MyISAM;
  540. #
  541. # Dumping data for table `calendar_holidays`
  542. #
  543. INSERT INTO {$db_prefix}calendar_holidays
  544. (title, event_date)
  545. VALUES ('New Year\'s', '0004-01-01'),
  546. ('Christmas', '0004-12-25'),
  547. ('Valentine\'s Day', '0004-02-14'),
  548. ('St. Patrick\'s Day', '0004-03-17'),
  549. ('April Fools', '0004-04-01'),
  550. ('Earth Day', '0004-04-22'),
  551. ('United Nations Day', '0004-10-24'),
  552. ('Halloween', '0004-10-31'),
  553. ('Mother\'s Day', '2010-05-09'),
  554. ('Mother\'s Day', '2011-05-08'),
  555. ('Mother\'s Day', '2012-05-13'),
  556. ('Mother\'s Day', '2013-05-12'),
  557. ('Mother\'s Day', '2014-05-11'),
  558. ('Mother\'s Day', '2015-05-10'),
  559. ('Mother\'s Day', '2016-05-08'),
  560. ('Mother\'s Day', '2017-05-14'),
  561. ('Mother\'s Day', '2018-05-13'),
  562. ('Mother\'s Day', '2019-05-12'),
  563. ('Mother\'s Day', '2020-05-10'),
  564. ('Father\'s Day', '2008-06-15'),
  565. ('Father\'s Day', '2009-06-21'),
  566. ('Father\'s Day', '2010-06-20'),
  567. ('Father\'s Day', '2011-06-19'),
  568. ('Father\'s Day', '2012-06-17'),
  569. ('Father\'s Day', '2013-06-16'),
  570. ('Father\'s Day', '2014-06-15'),
  571. ('Father\'s Day', '2015-06-21'),
  572. ('Father\'s Day', '2016-06-19'),
  573. ('Father\'s Day', '2017-06-18'),
  574. ('Father\'s Day', '2018-06-17'),
  575. ('Father\'s Day', '2019-06-16'),
  576. ('Father\'s Day', '2020-06-21'),
  577. ('Summer Solstice', '2010-06-21'),
  578. ('Summer Solstice', '2011-06-21'),
  579. ('Summer Solstice', '2012-06-20'),
  580. ('Summer Solstice', '2013-06-21'),
  581. ('Summer Solstice', '2014-06-21'),
  582. ('Summer Solstice', '2015-06-21'),
  583. ('Summer Solstice', '2016-06-20'),
  584. ('Summer Solstice', '2017-06-20'),
  585. ('Summer Solstice', '2018-06-21'),
  586. ('Summer Solstice', '2019-06-21'),
  587. ('Summer Solstice', '2020-06-20'),
  588. ('Vernal Equinox', '2010-03-20'),
  589. ('Vernal Equinox', '2011-03-20'),
  590. ('Vernal Equinox', '2012-03-20'),
  591. ('Vernal Equinox', '2013-03-20'),
  592. ('Vernal Equinox', '2014-03-20'),
  593. ('Vernal Equinox', '2015-03-20'),
  594. ('Vernal Equinox', '2016-03-19'),
  595. ('Vernal Equinox', '2017-03-20'),
  596. ('Vernal Equinox', '2018-03-20'),
  597. ('Vernal Equinox', '2019-03-20'),
  598. ('Vernal Equinox', '2020-03-19'),
  599. ('Winter Solstice', '2010-12-21'),
  600. ('Winter Solstice', '2011-12-22'),
  601. ('Winter Solstice', '2012-12-21'),
  602. ('Winter Solstice', '2013-12-21'),
  603. ('Winter Solstice', '2014-12-21'),
  604. ('Winter Solstice', '2015-12-21'),
  605. ('Winter Solstice', '2016-12-21'),
  606. ('Winter Solstice', '2017-12-21'),
  607. ('Winter Solstice', '2018-12-21'),
  608. ('Winter Solstice', '2019-12-21'),
  609. ('Winter Solstice', '2020-12-21'),
  610. ('Autumnal Equinox', '2010-09-22'),
  611. ('Autumnal Equinox', '2011-09-23'),
  612. ('Autumnal Equinox', '2012-09-22'),
  613. ('Autumnal Equinox', '2013-09-22'),
  614. ('Autumnal Equinox', '2014-09-22'),
  615. ('Autumnal Equinox', '2015-09-23'),
  616. ('Autumnal Equinox', '2016-09-22'),
  617. ('Autumnal Equinox', '2017-09-22'),
  618. ('Autumnal Equinox', '2018-09-22'),
  619. ('Autumnal Equinox', '2019-09-23'),
  620. ('Autumnal Equinox', '2020-09-22');
  621. INSERT INTO {$db_prefix}calendar_holidays
  622. (title, event_date)
  623. VALUES ('Independence Day', '0004-07-04'),
  624. ('Cinco de Mayo', '0004-05-05'),
  625. ('Flag Day', '0004-06-14'),
  626. ('Veterans Day', '0004-11-11'),
  627. ('Groundhog Day', '0004-02-02'),
  628. ('Thanksgiving', '2010-11-25'),
  629. ('Thanksgiving', '2011-11-24'),
  630. ('Thanksgiving', '2012-11-22'),
  631. ('Thanksgiving', '2013-11-21'),
  632. ('Thanksgiving', '2014-11-20'),
  633. ('Thanksgiving', '2015-11-26'),
  634. ('Thanksgiving', '2016-11-24'),
  635. ('Thanksgiving', '2017-11-23'),
  636. ('Thanksgiving', '2018-11-22'),
  637. ('Thanksgiving', '2019-11-21'),
  638. ('Thanksgiving', '2020-11-26'),
  639. ('Memorial Day', '2010-05-31'),
  640. ('Memorial Day', '2011-05-30'),
  641. ('Memorial Day', '2012-05-28'),
  642. ('Memorial Day', '2013-05-27'),
  643. ('Memorial Day', '2014-05-26'),
  644. ('Memorial Day', '2015-05-25'),
  645. ('Memorial Day', '2016-05-30'),
  646. ('Memorial Day', '2017-05-29'),
  647. ('Memorial Day', '2018-05-28'),
  648. ('Memorial Day', '2019-05-27'),
  649. ('Memorial Day', '2020-05-25'),
  650. ('Labor Day', '2010-09-06'),
  651. ('Labor Day', '2011-09-05'),
  652. ('Labor Day', '2012-09-03'),
  653. ('Labor Day', '2013-09-09'),
  654. ('Labor Day', '2014-09-08'),
  655. ('Labor Day', '2015-09-07'),
  656. ('Labor Day', '2016-09-05'),
  657. ('Labor Day', '2017-09-04'),
  658. ('Labor Day', '2018-09-03'),
  659. ('Labor Day', '2019-09-09'),
  660. ('Labor Day', '2020-09-07'),
  661. ('D-Day', '0004-06-06');
  662. # --------------------------------------------------------
  663. #
  664. # Table structure for table `categories`
  665. #
  666. CREATE TABLE {$db_prefix}categories (
  667. id_cat tinyint(4) unsigned NOT NULL auto_increment,
  668. cat_order tinyint(4) NOT NULL default '0',
  669. name varchar(255) NOT NULL default '',
  670. can_collapse tinyint(1) NOT NULL default '1',
  671. PRIMARY KEY (id_cat)
  672. ) ENGINE=MyISAM;
  673. #
  674. # Dumping data for table `categories`
  675. #
  676. INSERT INTO {$db_prefix}categories
  677. VALUES (1, 0, '{$default_category_name}', 1);
  678. # --------------------------------------------------------
  679. #
  680. # Table structure for table `collapsed_categories`
  681. #
  682. CREATE TABLE {$db_prefix}collapsed_categories (
  683. id_cat tinyint(4) unsigned NOT NULL default '0',
  684. id_member mediumint(8) unsigned NOT NULL default '0',
  685. PRIMARY KEY (id_cat, id_member)
  686. ) ENGINE=MyISAM;
  687. #
  688. # Table structure for table `custom_fields`
  689. #
  690. CREATE TABLE {$db_prefix}custom_fields (
  691. id_field smallint(5) NOT NULL auto_increment,
  692. col_name varchar(12) NOT NULL default '',
  693. field_name varchar(40) NOT NULL default '',
  694. field_desc varchar(255) NOT NULL default '',
  695. field_type varchar(8) NOT NULL default 'text',
  696. field_length smallint(5) NOT NULL default '255',
  697. field_options text NOT NULL,
  698. mask varchar(255) NOT NULL default '',
  699. show_reg tinyint(3) NOT NULL default '0',
  700. show_display tinyint(3) NOT NULL default '0',
  701. show_profile varchar(20) NOT NULL default 'forumprofile',
  702. private tinyint(3) NOT NULL default '0',
  703. active tinyint(3) NOT NULL default '1',
  704. bbc tinyint(3) NOT NULL default '0',
  705. can_search tinyint(3) NOT NULL default '0',
  706. default_value varchar(255) NOT NULL default '',
  707. enclose text NOT NULL,
  708. placement tinyint(3) NOT NULL default '0',
  709. PRIMARY KEY (id_field),
  710. UNIQUE col_name (col_name)
  711. ) ENGINE=MyISAM;
  712. #
  713. # Table structure for table `group_moderators`
  714. #
  715. CREATE TABLE {$db_prefix}group_moderators (
  716. id_group smallint(5) unsigned NOT NULL default '0',
  717. id_member mediumint(8) unsigned NOT NULL default '0',
  718. PRIMARY KEY (id_group, id_member)
  719. ) ENGINE=MyISAM;
  720. #
  721. # Table structure for table `log_actions`
  722. #
  723. CREATE TABLE {$db_prefix}log_actions (
  724. id_action int(10) unsigned NOT NULL auto_increment,
  725. id_log tinyint(3) unsigned NOT NULL default '1',
  726. log_time int(10) unsigned NOT NULL default '0',
  727. id_member mediumint(8) unsigned NOT NULL default '0',
  728. ip char(16) NOT NULL default ' ',
  729. action varchar(30) NOT NULL default '',
  730. id_board smallint(5) unsigned NOT NULL default '0',
  731. id_topic mediumint(8) unsigned NOT NULL default '0',
  732. id_msg int(10) unsigned NOT NULL default '0',
  733. extra text NOT NULL,
  734. PRIMARY KEY (id_action),
  735. KEY id_log (id_log),
  736. KEY log_time (log_time),
  737. KEY id_member (id_member),
  738. KEY id_board (id_board),
  739. KEY id_msg (id_msg)
  740. ) ENGINE=MyISAM;
  741. #
  742. # Table structure for table `log_activity`
  743. #
  744. CREATE TABLE {$db_prefix}log_activity (
  745. date date NOT NULL default '0001-01-01',
  746. hits mediumint(8) unsigned NOT NULL default '0',
  747. topics smallint(5) unsigned NOT NULL default '0',
  748. posts smallint(5) unsigned NOT NULL default '0',
  749. registers smallint(5) unsigned NOT NULL default '0',
  750. most_on smallint(5) unsigned NOT NULL default '0',
  751. PRIMARY KEY (date),
  752. KEY most_on (most_on)
  753. ) ENGINE=MyISAM;
  754. #
  755. # Table structure for table `log_banned`
  756. #
  757. CREATE TABLE {$db_prefix}log_banned (
  758. id_ban_log mediumint(8) unsigned NOT NULL auto_increment,
  759. id_member mediumint(8) unsigned NOT NULL default '0',
  760. ip char(16) NOT NULL default ' ',
  761. email varchar(255) NOT NULL default '',
  762. log_time int(10) unsigned NOT NULL default '0',
  763. PRIMARY KEY (id_ban_log),
  764. KEY log_time (log_time)
  765. ) ENGINE=MyISAM;
  766. #
  767. # Table structure for table `log_boards`
  768. #
  769. CREATE TABLE {$db_prefix}log_boards (
  770. id_member mediumint(8) unsigned NOT NULL default '0',
  771. id_board smallint(5) unsigned NOT NULL default '0',
  772. id_msg int(10) unsigned NOT NULL default '0',
  773. PRIMARY KEY (id_member, id_board)
  774. ) ENGINE=MyISAM;
  775. #
  776. # Table structure for table `log_comments`
  777. #
  778. CREATE TABLE {$db_prefix}log_comments (
  779. id_comment mediumint(8) unsigned NOT NULL auto_increment,
  780. id_member mediumint(8) unsigned NOT NULL default '0',
  781. member_name varchar(80) NOT NULL default '',
  782. comment_type varchar(8) NOT NULL default 'warning',
  783. id_recipient mediumint(8) unsigned NOT NULL default '0',
  784. recipient_name varchar(255) NOT NULL default '',
  785. log_time int(10) NOT NULL default '0',
  786. id_notice mediumint(8) unsigned NOT NULL default '0',
  787. counter tinyint(3) NOT NULL default '0',
  788. body text NOT NULL,
  789. PRIMARY KEY (id_comment),
  790. KEY id_recipient (id_recipient),
  791. KEY log_time (log_time),
  792. KEY comment_type (comment_type(8))
  793. ) ENGINE=MyISAM;
  794. #
  795. # Table structure for table `log_digest`
  796. #
  797. CREATE TABLE {$db_prefix}log_digest (
  798. id_topic mediumint(8) unsigned NOT NULL,
  799. id_msg int(10) unsigned NOT NULL,
  800. note_type varchar(10) NOT NULL default 'post',
  801. daily tinyint(3) unsigned NOT NULL default '0',
  802. exclude mediumint(8) unsigned NOT NULL default '0'
  803. ) ENGINE=MyISAM;
  804. #
  805. # Table structure for table `log_errors`
  806. #
  807. CREATE TABLE {$db_prefix}log_errors (
  808. id_error mediumint(8) unsigned NOT NULL auto_increment,
  809. log_time int(10) unsigned NOT NULL default '0',
  810. id_member mediumint(8) unsigned NOT NULL default '0',
  811. ip char(16) NOT NULL default ' ',
  812. url text NOT NULL,
  813. message text NOT NULL,
  814. session char(64) NOT NULL default ' ',
  815. error_type char(15) NOT NULL default 'general',
  816. file varchar(255) NOT NULL default '',
  817. line mediumint(8) unsigned NOT NULL default '0',
  818. PRIMARY KEY (id_error),
  819. KEY log_time (log_time),
  820. KEY id_member (id_member),
  821. KEY ip (ip(16))
  822. ) ENGINE=MyISAM;
  823. #
  824. # Table structure for table `log_floodcontrol`
  825. #
  826. CREATE TABLE {$db_prefix}log_floodcontrol (
  827. ip char(16) NOT NULL default ' ',
  828. log_time int(10) unsigned NOT NULL default '0',
  829. log_type varchar(8) NOT NULL default 'post',
  830. PRIMARY KEY (ip(16), log_type(8))
  831. ) ENGINE=MyISAM;
  832. #
  833. # Table structure for table `log_group_requests`
  834. #
  835. CREATE TABLE {$db_prefix}log_group_requests (
  836. id_request mediumint(8) unsigned NOT NULL auto_increment,
  837. id_member mediumint(8) unsigned NOT NULL default '0',
  838. id_group smallint(5) unsigned NOT NULL default '0',
  839. time_applied int(10) unsigned NOT NULL default '0',
  840. reason text NOT NULL,
  841. PRIMARY KEY (id_request),
  842. UNIQUE id_member (id_member, id_group)
  843. ) ENGINE=MyISAM;
  844. #
  845. # Table structure for table `log_karma`
  846. #
  847. CREATE TABLE {$db_prefix}log_karma (
  848. id_target mediumint(8) unsigned NOT NULL default '0',
  849. id_executor mediumint(8) unsigned NOT NULL default '0',
  850. log_time int(10) unsigned NOT NULL default '0',
  851. action tinyint(4) NOT NULL default '0',
  852. PRIMARY KEY (id_target, id_executor),
  853. KEY log_time (log_time)
  854. ) ENGINE=MyISAM;
  855. #
  856. # Table structure for table `log_mark_read`
  857. #
  858. CREATE TABLE {$db_prefix}log_mark_read (
  859. id_member mediumint(8) unsigned NOT NULL default '0',
  860. id_board smallint(5) unsigned NOT NULL default '0',
  861. id_msg int(10) unsigned NOT NULL default '0',
  862. PRIMARY KEY (id_member, id_board)
  863. ) ENGINE=MyISAM;
  864. #
  865. # Table structure for table `log_member_notices`
  866. #
  867. CREATE TABLE {$db_prefix}log_member_notices (
  868. id_notice mediumint(8) unsigned NOT NULL auto_increment,
  869. subject varchar(255) NOT NULL default '',
  870. body text NOT NULL,
  871. PRIMARY KEY (id_notice)
  872. ) ENGINE=MyISAM;
  873. #
  874. # Table structure for table `log_notify`
  875. #
  876. CREATE TABLE {$db_prefix}log_notify (
  877. id_member mediumint(8) unsigned NOT NULL default '0',
  878. id_topic mediumint(8) unsigned NOT NULL default '0',
  879. id_board smallint(5) unsigned NOT NULL default '0',
  880. sent tinyint(1) unsigned NOT NULL default '0',
  881. PRIMARY KEY (id_member, id_topic, id_board),
  882. KEY id_topic (id_topic, id_member)
  883. ) ENGINE=MyISAM;
  884. #
  885. # Table structure for table `log_online`
  886. #
  887. CREATE TABLE {$db_prefix}log_online (
  888. session varchar(64) NOT NULL default '',
  889. log_time int(10) NOT NULL default '0',
  890. id_member mediumint(8) unsigned NOT NULL default '0',
  891. id_spider smallint(5) unsigned NOT NULL default '0',
  892. ip int(10) unsigned NOT NULL default '0',
  893. url text NOT NULL,
  894. PRIMARY KEY (session),
  895. KEY log_time (log_time),
  896. KEY id_member (id_member)
  897. ) ENGINE=MyISAM;
  898. #
  899. # Table structure for table `log_packages`
  900. #
  901. CREATE TABLE {$db_prefix}log_packages (
  902. id_install int(10) NOT NULL auto_increment,
  903. filename varchar(255) NOT NULL default '',
  904. package_id varchar(255) NOT NULL default '',
  905. name varchar(255) NOT NULL default '',
  906. version varchar(255) NOT NULL default '',
  907. id_member_installed mediumint(8) NOT NULL default '0',
  908. member_installed varchar(255) NOT NULL default '',
  909. time_installed int(10) NOT NULL default '0',
  910. id_member_removed mediumint(8) NOT NULL default '0',
  911. member_removed varchar(255) NOT NULL default '',
  912. time_removed int(10) NOT NULL default '0',
  913. install_state tinyint(3) NOT NULL default '1',
  914. failed_steps text NOT NULL,
  915. themes_installed varchar(255) NOT NULL default '',
  916. db_changes text NOT NULL,
  917. credits varchar(255) NOT NULL default '',
  918. PRIMARY KEY (id_install),
  919. KEY filename (filename(15))
  920. ) ENGINE=MyISAM;
  921. #
  922. # Table structure for table `log_polls`
  923. #
  924. CREATE TABLE {$db_prefix}log_polls (
  925. id_poll mediumint(8) unsigned NOT NULL default '0',
  926. id_member mediumint(8) unsigned NOT NULL default '0',
  927. id_choice tinyint(3) unsigned NOT NULL default '0',
  928. KEY id_poll (id_poll, id_member, id_choice)
  929. ) ENGINE=MyISAM;
  930. #
  931. # Table structure for table `log_reported`
  932. #
  933. CREATE TABLE {$db_prefix}log_reported (
  934. id_report mediumint(8) unsigned NOT NULL auto_increment,
  935. id_msg int(10) unsigned NOT NULL default '0',
  936. id_topic mediumint(8) unsigned NOT NULL default '0',
  937. id_board smallint(5) unsigned NOT NULL default '0',
  938. id_member mediumint(8) unsigned NOT NULL default '0',
  939. membername varchar(255) NOT NULL default '',
  940. subject varchar(255) NOT NULL default '',
  941. body mediumtext NOT NULL,
  942. time_started int(10) NOT NULL default '0',
  943. time_updated int(10) NOT NULL default '0',
  944. num_reports mediumint(6) NOT NULL default '0',
  945. closed tinyint(3) NOT NULL default '0',
  946. ignore_all tinyint(3) NOT NULL default '0',
  947. PRIMARY KEY (id_report),
  948. KEY id_member (id_member),
  949. KEY id_topic (id_topic),
  950. KEY closed (closed),
  951. KEY time_started (time_started),
  952. KEY id_msg (id_msg)
  953. ) ENGINE=MyISAM;
  954. #
  955. # Table structure for table `log_reported_comments`
  956. #
  957. CREATE TABLE {$db_prefix}log_reported_comments (
  958. id_comment mediumint(8) unsigned NOT NULL auto_increment,
  959. id_report mediumint(8) NOT NULL default '0',
  960. id_member mediumint(8) NOT NULL,
  961. membername varchar(255) NOT NULL default '',
  962. email_address varchar(255) NOT NULL default '',
  963. member_ip varchar(255) NOT NULL default '',
  964. comment varchar(255) NOT NULL default '',
  965. time_sent int(10) NOT NULL,
  966. PRIMARY KEY (id_comment),
  967. KEY id_report (id_report),
  968. KEY id_member (id_member),
  969. KEY time_sent (time_sent)
  970. ) ENGINE=MyISAM;
  971. #
  972. # Table structure for table `log_scheduled_tasks`
  973. #
  974. CREATE TABLE {$db_prefix}log_scheduled_tasks (
  975. id_log mediumint(8) NOT NULL auto_increment,
  976. id_task smallint(5) NOT NULL default '0',
  977. time_run int(10) NOT NULL default '0',
  978. time_taken float NOT NULL default '0',
  979. PRIMARY KEY (id_log)
  980. ) ENGINE=MyISAM;
  981. #
  982. # Table structure for table `log_search_messages`
  983. #
  984. CREATE TABLE {$db_prefix}log_search_messages (
  985. id_search tinyint(3) unsigned NOT NULL default '0',
  986. id_msg int(10) unsigned NOT NULL default '0',
  987. PRIMARY KEY (id_search, id_msg)
  988. ) ENGINE=MyISAM;
  989. #
  990. # Table structure for table `log_search_results`
  991. #
  992. CREATE TABLE {$db_prefix}log_search_results (
  993. id_search tinyint(3) unsigned NOT NULL default '0',
  994. id_topic mediumint(8) unsigned NOT NULL default '0',
  995. id_msg int(10) unsigned NOT NULL default '0',
  996. relevance smallint(5) unsigned NOT NULL default '0',
  997. num_matches smallint(5) unsigned NOT NULL default '0',
  998. PRIMARY KEY (id_search, id_topic)
  999. ) ENGINE=MyISAM;
  1000. #
  1001. # Table structure for table `log_search_subjects`
  1002. #
  1003. CREATE TABLE {$db_prefix}log_search_subjects (
  1004. word varchar(20) NOT NULL default '',
  1005. id_topic mediumint(8) unsigned NOT NULL default '0',
  1006. PRIMARY KEY (word, id_topic),
  1007. KEY id_topic (id_topic)
  1008. ) ENGINE=MyISAM;
  1009. #
  1010. # Table structure for table `log_search_topics`
  1011. #
  1012. CREATE TABLE {$db_prefix}log_search_topics (
  1013. id_search tinyint(3) unsigned NOT NULL default '0',
  1014. id_topic mediumint(8) unsigned NOT NULL default '0',
  1015. PRIMARY KEY (id_search, id_topic)
  1016. ) ENGINE=MyISAM;
  1017. #
  1018. # Table structure for table `log_spider_hits`
  1019. #
  1020. CREATE TABLE {$db_prefix}log_spider_hits (
  1021. id_hit int(10) unsigned NOT NULL auto_increment,
  1022. id_spider smallint(5) unsigned NOT NULL default '0',
  1023. log_time int(10) unsigned NOT NULL default '0',
  1024. url varchar(255) NOT NULL default '',
  1025. processed tinyint(3) NOT NULL default '0',
  1026. PRIMARY KEY (id_hit),
  1027. KEY id_spider(id_spider),
  1028. KEY log_time(log_time),
  1029. KEY processed (processed)
  1030. ) ENGINE=MyISAM;
  1031. #
  1032. # Table structure for table `log_spider_stats`
  1033. #
  1034. CREATE TABLE {$db_prefix}log_spider_stats (
  1035. id_spider smallint(5) unsigned NOT NULL default '0',
  1036. page_hits smallint(5) unsigned NOT NULL default '0',
  1037. last_seen int(10) unsigned NOT NULL default '0',
  1038. stat_date date NOT NULL default '0001-01-01',
  1039. PRIMARY KEY (stat_date, id_spider)
  1040. ) ENGINE=MyISAM;
  1041. #
  1042. # Table structure for table `log_subscribed`
  1043. #
  1044. CREATE TABLE {$db_prefix}log_subscribed (
  1045. id_sublog int(10) unsigned NOT NULL auto_increment,
  1046. id_subscribe mediumint(8) unsigned NOT NULL default '0',
  1047. id_member int(10) NOT NULL default '0',
  1048. old_id_group smallint(5) NOT NULL default '0',
  1049. start_time int(10) NOT NULL default '0',
  1050. end_time int(10) NOT NULL default '0',
  1051. status tinyint(3) NOT NULL default '0',
  1052. payments_pending tinyint(3) NOT NULL default '0',
  1053. pending_details text NOT NULL,
  1054. reminder_sent tinyint(3) NOT NULL default '0',
  1055. vendor_ref varchar(255) NOT NULL default '',
  1056. PRIMARY KEY (id_sublog),
  1057. UNIQUE KEY id_subscribe (id_subscribe, id_member),
  1058. KEY end_time (end_time),
  1059. KEY reminder_sent (reminder_sent),
  1060. KEY payments_pending (payments_pending),
  1061. KEY status (status),
  1062. KEY id_member (id_member)
  1063. ) ENGINE=MyISAM;
  1064. #
  1065. # Table structure for table `log_topics`
  1066. #
  1067. CREATE TABLE {$db_prefix}log_topics (
  1068. id_member mediumint(8) unsigned NOT NULL default '0',
  1069. id_topic mediumint(8) unsigned NOT NULL default '0',
  1070. id_msg int(10) unsigned NOT NULL default '0',
  1071. disregarded tinyint(3) NOT NULL default '0',
  1072. PRIMARY KEY (id_member, id_topic),
  1073. KEY id_topic (id_topic)
  1074. ) ENGINE=MyISAM;
  1075. #
  1076. # Table structure for table `mail_queue`
  1077. #
  1078. CREATE TABLE {$db_prefix}mail_queue (
  1079. id_mail int(10) unsigned NOT NULL auto_increment,
  1080. time_sent int(10) NOT NULL default '0',
  1081. recipient varchar(255) NOT NULL default '',
  1082. body mediumtext NOT NULL,
  1083. subject varchar(255) NOT NULL default '',
  1084. headers text NOT NULL,
  1085. send_html tinyint(3) NOT NULL default '0',
  1086. priority tinyint(3) NOT NULL default '1',
  1087. private tinyint(1) NOT NULL default '0',
  1088. PRIMARY KEY (id_mail),
  1089. KEY time_sent (time_sent),
  1090. KEY mail_priority (priority, id_mail)
  1091. ) ENGINE=MyISAM;
  1092. #
  1093. # Table structure for table `membergroups`
  1094. #
  1095. CREATE TABLE {$db_prefix}membergroups (
  1096. id_group smallint(5) unsigned NOT NULL auto_increment,
  1097. group_name varchar(80) NOT NULL default '',
  1098. description text NOT NULL,
  1099. online_color varchar(20) NOT NULL default '',
  1100. min_posts mediumint(9) NOT NULL default '-1',
  1101. max_messages smallint(5) unsigned NOT NULL default '0',
  1102. icons varchar(255) NOT NULL default '',
  1103. group_type tinyint(3) NOT NULL default '0',
  1104. hidden tinyint(3) NOT NULL default '0',
  1105. id_parent smallint(5) NOT NULL default '-2',
  1106. PRIMARY KEY (id_group),
  1107. KEY min_posts (min_posts)
  1108. ) ENGINE=MyISAM;
  1109. #
  1110. # Dumping data for table `membergroups`
  1111. #
  1112. INSERT INTO {$db_prefix}membergroups
  1113. (id_group, group_name, description, online_color, min_posts, icons, group_type)
  1114. VALUES (1, '{$default_administrator_group}', '', '#FF0000', -1, '5#iconadmin.png', 1),
  1115. (2, '{$default_global_moderator_group}', '', '#0000FF', -1, '5#icongmod.png', 0),
  1116. (3, '{$default_moderator_group}', '', '', -1, '5#iconmod.png', 0),
  1117. (4, '{$default_newbie_group}', '', '', 0, '1#icon.png', 0),
  1118. (5, '{$default_junior_group}', '', '', 50, '2#icon.png', 0),
  1119. (6, '{$default_full_group}', '', '', 100, '3#icon.png', 0),
  1120. (7, '{$default_senior_group}', '', '', 250, '4#icon.png', 0),
  1121. (8, '{$default_hero_group}', '', '', 500, '5#icon.png', 0);
  1122. # --------------------------------------------------------
  1123. #
  1124. # Table structure for table `members`
  1125. #
  1126. CREATE TABLE {$db_prefix}members (
  1127. id_member mediumint(8) unsigned NOT NULL auto_increment,
  1128. member_name varchar(80) NOT NULL default '',
  1129. date_registered int(10) unsigned NOT NULL default '0',
  1130. posts mediumint(8) unsigned NOT NULL default '0',
  1131. id_group smallint(5) unsigned NOT NULL default '0',
  1132. lngfile varchar(255) NOT NULL default '',
  1133. last_login int(10) unsigned NOT NULL default '0',
  1134. real_name varchar(255) NOT NULL default '',
  1135. instant_messages smallint(5) NOT NULL default 0,
  1136. unread_messages smallint(5) NOT NULL default 0,
  1137. new_pm tinyint(3) unsigned NOT NULL default '0',
  1138. buddy_list text NOT NULL,
  1139. pm_ignore_list varchar(255) NOT NULL default '',
  1140. pm_prefs mediumint(8) NOT NULL default '0',
  1141. mod_prefs varchar(20) NOT NULL default '',
  1142. message_labels text NOT NULL,
  1143. passwd varchar(64) NOT NULL default '',
  1144. openid_uri text NOT NULL,
  1145. email_address varchar(255) NOT NULL default '',
  1146. personal_text varchar(255) NOT NULL default '',
  1147. gender tinyint(4) unsigned NOT NULL default '0',
  1148. birthdate date NOT NULL default '0001-01-01',
  1149. website_title varchar(255) NOT NULL default '',
  1150. website_url varchar(255) NOT NULL default '',
  1151. location varchar(255) NOT NULL default '',
  1152. icq varchar(255) NOT NULL default '',
  1153. aim varchar(255) NOT NULL default '',
  1154. yim varchar(32) NOT NULL default '',
  1155. skype varchar(255) NOT NULL default '',
  1156. hide_email tinyint(4) NOT NULL default '0',
  1157. show_online tinyint(4) NOT NULL default '1',
  1158. time_format varchar(80) NOT NULL default '',
  1159. signature text NOT NULL,
  1160. time_offset float NOT NULL default '0',
  1161. avatar varchar(255) NOT NULL default '',
  1162. pm_email_notify tinyint(4) NOT NULL default '0',
  1163. karma_bad smallint(5) unsigned NOT NULL default '0',
  1164. karma_good smallint(5) unsigned NOT NULL default '0',
  1165. usertitle varchar(255) NOT NULL default '',
  1166. notify_announcements tinyint(4) NOT NULL default '1',
  1167. notify_regularity tinyint(4) NOT NULL default '1',
  1168. notify_send_body tinyint(4) NOT NULL default '0',
  1169. notify_types tinyint(4) NOT NULL default '2',
  1170. member_ip varchar(255) NOT NULL default '',
  1171. member_ip2 varchar(255) NOT NULL default '',
  1172. secret_question varchar(255) NOT NULL default '',
  1173. secret_answer varchar(64) NOT NULL default '',
  1174. id_theme tinyint(4) unsigned NOT NULL default '0',
  1175. is_activated tinyint(3) unsigned NOT NULL default '1',
  1176. validation_code varchar(10) NOT NULL default '',
  1177. id_msg_last_visit int(10) unsigned NOT NULL default '0',
  1178. additional_groups varchar(255) NOT NULL default '',
  1179. smiley_set varchar(48) NOT NULL default '',
  1180. id_post_group smallint(5) unsigned NOT NULL default '0',
  1181. total_time_logged_in int(10) unsigned NOT NULL default '0',
  1182. password_salt varchar(255) NOT NULL default '',
  1183. ignore_boards text NOT NULL,
  1184. warning tinyint(4) NOT NULL default '0',
  1185. passwd_flood varchar(12) NOT NULL default '',
  1186. pm_receive_from tinyint(4) unsigned NOT NULL default '1',
  1187. PRIMARY KEY (id_member),
  1188. KEY member_name (member_name),
  1189. KEY real_name (real_name),
  1190. KEY date_registered (date_registered),
  1191. KEY id_group (id_group),
  1192. KEY birthdate (birthdate),
  1193. KEY posts (posts),
  1194. KEY last_login (last_login),
  1195. KEY lngfile (lngfile(30)),
  1196. KEY id_post_group (id_post_group),
  1197. KEY warning (warning),
  1198. KEY total_time_logged_in (total_time_logged_in),
  1199. KEY id_theme (id_theme)
  1200. ) ENGINE=MyISAM;
  1201. #
  1202. # Table structure for table `member_logins`
  1203. #
  1204. CREATE TABLE {$db_prefix}member_logins (
  1205. id_login int(10) NOT NULL auto_increment,
  1206. id_member mediumint(8) NOT NULL default '0',
  1207. time int(10) NOT NULL default '0',
  1208. ip varchar(255) NOT NULL default '0',
  1209. ip2 varchar(255) NOT NULL default '0',
  1210. PRIMARY KEY (id_login),
  1211. KEY id_member (id_member),
  1212. KEY time (time)
  1213. ) ENGINE=MyISAM;
  1214. #
  1215. # Table structure for table `message_icons`
  1216. #
  1217. CREATE TABLE {$db_prefix}message_icons (
  1218. id_icon smallint(5) unsigned NOT NULL auto_increment,
  1219. title varchar(80) NOT NULL default '',
  1220. filename varchar(80) NOT NULL default '',
  1221. id_board smallint(5) unsigned NOT NULL default '0',
  1222. icon_order smallint(5) unsigned NOT NULL default '0',
  1223. PRIMARY KEY (id_icon),
  1224. KEY id_board (id_board)
  1225. ) ENGINE=MyISAM;
  1226. #
  1227. # Dumping data for table `message_icons`
  1228. #
  1229. # // @todo i18n
  1230. INSERT INTO {$db_prefix}message_icons
  1231. (filename, title, icon_order)
  1232. VALUES ('xx', 'Standard', '0'),
  1233. ('thumbup', 'Thumb Up', '1'),
  1234. ('thumbdown', 'Thumb Down', '2'),
  1235. ('exclamation', 'Exclamation point', '3'),
  1236. ('question', 'Question mark', '4'),
  1237. ('lamp', 'Lamp', '5'),
  1238. ('smiley', 'Smiley', '6'),
  1239. ('angry', 'Angry', '7'),
  1240. ('cheesy', 'Cheesy', '8'),
  1241. ('grin', 'Grin', '9'),
  1242. ('sad', 'Sad', '10'),
  1243. ('wink', 'Wink', '11'),
  1244. ('poll', 'Poll', '12');
  1245. # --------------------------------------------------------
  1246. #
  1247. # Table structure for table `messages`
  1248. #
  1249. CREATE TABLE {$db_prefix}messages (
  1250. id_msg int(10) unsigned NOT NULL auto_increment,
  1251. id_topic mediumint(8) unsigned NOT NULL default '0',
  1252. id_board smallint(5) unsigned NOT NULL default '0',
  1253. poster_time int(10) unsigned NOT NULL default '0',
  1254. id_member mediumint(8) unsigned NOT NULL default '0',
  1255. id_msg_modified int(10) unsigned NOT NULL default '0',
  1256. subject varchar(255) NOT NULL default '',
  1257. poster_name varchar(255) NOT NULL default '',
  1258. poster_email varchar(255) NOT NULL default '',
  1259. poster_ip varchar(255) NOT NULL default '',
  1260. smileys_enabled tinyint(4) NOT NULL default '1',
  1261. modified_time int(10) unsigned NOT NULL default '0',
  1262. modified_name varchar(255) NOT NULL default '',
  1263. body text NOT NULL,
  1264. icon varchar(16) NOT NULL default 'xx',
  1265. approved tinyint(3) NOT NULL default '1',
  1266. PRIMARY KEY (id_msg),
  1267. UNIQUE topic (id_topic, id_msg),
  1268. UNIQUE id_board (id_board, id_msg),
  1269. UNIQUE id_member (id_member, id_msg),
  1270. KEY approved (approved),
  1271. KEY ip_index (poster_ip(15), id_topic),
  1272. KEY participation (id_member, id_topic),
  1273. KEY show_posts (id_member, id_board),
  1274. KEY id_topic (id_topic),
  1275. KEY id_member_msg (id_member, approved, id_msg),
  1276. KEY current_topic (id_topic, id_msg, id_member, approved),
  1277. KEY related_ip (id_member, poster_ip, id_msg)
  1278. ) ENGINE=MyISAM;
  1279. #
  1280. # Dumping data for table `messages`
  1281. #
  1282. INSERT INTO {$db_prefix}messages
  1283. (id_msg, id_msg_modified, id_topic, id_board, poster_time, subject, poster_name, poster_email, poster_ip, modified_name, body, icon)
  1284. VALUES (1, 1, 1, 1, UNIX_TIMESTAMP(), '{$default_topic_subject}', 'Simple Machines', '[email protected]', '127.0.0.1', '', '{$default_topic_message}', 'xx');
  1285. # --------------------------------------------------------
  1286. #
  1287. # Table structure for table `moderators`
  1288. #
  1289. CREATE TABLE {$db_prefix}moderators (
  1290. id_board smallint(5) unsigned NOT NULL default '0',
  1291. id_member mediumint(8) unsigned NOT NULL default '0',
  1292. PRIMARY KEY (id_board, id_member)
  1293. ) ENGINE=MyISAM;
  1294. #
  1295. # Table structure for table `moderator_groups`
  1296. #
  1297. CREATE TABLE {$db_prefix}moderator_groups (
  1298. id_board smallint(5) unsigned NOT NULL default '0',
  1299. id_group smallint(5) unsigned NOT NULL default '0',
  1300. PRIMARY KEY (id_board, id_group)
  1301. ) ENGINE=MyISAM;
  1302. #
  1303. # Table structure for table `openid_assoc`
  1304. #
  1305. CREATE TABLE {$db_prefix}openid_assoc (
  1306. server_url text NOT NULL,
  1307. handle varchar(255) NOT NULL default '',
  1308. secret text NOT NULL,
  1309. issued int(10) NOT NULL default '0',
  1310. expires int(10) NOT NULL default '0',
  1311. assoc_type varchar(64) NOT NULL,
  1312. PRIMARY KEY (server_url(125), handle(125)),
  1313. KEY expires (expires)
  1314. ) ENGINE=MyISAM;
  1315. #
  1316. # Table structure for table `package_servers`
  1317. #
  1318. CREATE TABLE {$db_prefix}package_servers (
  1319. id_server smallint(5) unsigned NOT NULL auto_increment,
  1320. name varchar(255) NOT NULL default '',
  1321. url varchar(255) NOT NULL default '',
  1322. PRIMARY KEY (id_server)
  1323. ) ENGINE=MyISAM;
  1324. #
  1325. # Dumping data for table `package_servers`
  1326. #
  1327. INSERT INTO {$db_prefix}package_servers
  1328. (name, url)
  1329. VALUES ('Simple Machines Third-party Mod Site', 'http://custom.simplemachines.org/packages/mods');
  1330. # --------------------------------------------------------
  1331. #
  1332. # Table structure for table `permission_profiles`
  1333. #
  1334. CREATE TABLE {$db_prefix}permission_profiles (
  1335. id_profile smallint(5) NOT NULL auto_increment,
  1336. profile_name varchar(255) NOT NULL default '',
  1337. PRIMARY KEY (id_profile)
  1338. ) ENGINE=MyISAM;
  1339. #
  1340. # Dumping data for table `permission_profiles`
  1341. #
  1342. INSERT INTO {$db_prefix}permission_profiles
  1343. (id_profile, profile_name)
  1344. VALUES (1, 'default'), (2, 'no_polls'), (3, 'reply_only'), (4, 'read_only');
  1345. # --------------------------------------------------------
  1346. #
  1347. # Table structure for table `permissions`
  1348. #
  1349. CREATE TABLE {$db_prefix}permissions (
  1350. id_group smallint(5) NOT NULL default '0',
  1351. permission varchar(30) NOT NULL default '',
  1352. add_deny tinyint(4) NOT NULL default '1',
  1353. PRIMARY KEY (id_group, permission)
  1354. ) ENGINE=MyISAM;
  1355. #
  1356. # Dumping data for table `permissions`
  1357. #
  1358. INSERT INTO {$db_prefix}permissions
  1359. (id_group, permission)
  1360. VALUES (-1, 'search_posts'),
  1361. (-1, 'calendar_view'),
  1362. (-1, 'view_stats'),
  1363. (-1, 'profile_view_any'),
  1364. (0, 'view_mlist'),
  1365. (0, 'search_posts'),
  1366. (0, 'profile_view_own'),
  1367. (0, 'profile_view_any'),
  1368. (0, 'pm_read'),
  1369. (0, 'pm_send'),
  1370. (0, 'pm_draft'),
  1371. (0, 'pm_autosave_draft'),
  1372. (0, 'calendar_view'),
  1373. (0, 'view_stats'),
  1374. (0, 'who_view'),
  1375. (0, 'profile_identity_own'),
  1376. (0, 'profile_extra_own'),
  1377. (0, 'profile_remove_own'),
  1378. (0, 'profile_server_avatar'),
  1379. (0, 'profile_upload_avatar'),
  1380. (0, 'profile_remote_avatar'),
  1381. (0, 'send_email_to_members'),
  1382. (0, 'karma_edit'),
  1383. (2, 'view_mlist'),
  1384. (2, 'search_posts'),
  1385. (2, 'profile_view_own'),
  1386. (2, 'profile_view_any'),
  1387. (2, 'pm_read'),
  1388. (2, 'pm_send'),
  1389. (2, 'pm_draft'),
  1390. (2, 'pm_autosave_draft'),
  1391. (2, 'calendar_view'),
  1392. (2, 'view_stats'),
  1393. (2, 'who_view'),
  1394. (2, 'profile_identity_own'),
  1395. (2, 'profile_extra_own'),
  1396. (2, 'profile_remove_own'),
  1397. (2, 'profile_server_avatar'),
  1398. (2, 'profile_upload_avatar'),
  1399. (2, 'profile_remote_avatar'),
  1400. (2, 'send_email_to_members'),
  1401. (2, 'profile_title_own'),
  1402. (2, 'calendar_post'),
  1403. (2, 'calendar_edit_any'),
  1404. (2, 'karma_edit'),
  1405. (2, 'access_mod_center');
  1406. # --------------------------------------------------------
  1407. #
  1408. # Table structure for table `personal_messages`
  1409. #
  1410. CREATE TABLE {$db_prefix}personal_messages (
  1411. id_pm int(10) unsigned NOT NULL auto_increment,
  1412. id_pm_head int(10) unsigned NOT NULL default '0',
  1413. id_member_from mediumint(8) unsigned NOT NULL default '0',
  1414. deleted_by_sender tinyint(3) unsigned NOT NULL default '0',
  1415. from_name varchar(255) NOT NULL default '',
  1416. msgtime int(10) unsigned NOT NULL default '0',
  1417. subject varchar(255) NOT NULL default '',
  1418. body text NOT NULL,
  1419. PRIMARY KEY (id_pm),
  1420. KEY id_member (id_member_from, deleted_by_sender),
  1421. KEY msgtime (msgtime),
  1422. KEY id_pm_head (id_pm_head)
  1423. ) ENGINE=MyISAM;
  1424. #
  1425. # Table structure for table `pm_recipients`
  1426. #
  1427. CREATE TABLE {$db_prefix}pm_recipients (
  1428. id_pm int(10) unsigned NOT NULL default '0',
  1429. id_member mediumint(8) unsigned NOT NULL default '0',
  1430. labels varchar(60) NOT NULL default '-1',
  1431. bcc tinyint(3) unsigned NOT NULL default '0',
  1432. is_read tinyint(3) unsigned NOT NULL default '0',
  1433. is_new tinyint(3) unsigned NOT NULL default '0',
  1434. deleted tinyint(3) unsigned NOT NULL default '0',
  1435. PRIMARY KEY (id_pm, id_member),
  1436. UNIQUE id_member (id_member, deleted, id_pm)
  1437. ) ENGINE=MyISAM;
  1438. #
  1439. # Table structure for table `pm_rules`
  1440. #
  1441. CREATE TABLE {$db_prefix}pm_rules (
  1442. id_rule int(10) unsigned NOT NULL auto_increment,
  1443. id_member int(10) unsigned NOT NULL default '0',
  1444. rule_name varchar(60) NOT NULL,
  1445. criteria text NOT NULL,
  1446. actions text NOT NULL,
  1447. delete_pm tinyint(3) unsigned NOT NULL default '0',
  1448. is_or tinyint(3) unsigned NOT NULL default '0',
  1449. PRIMARY KEY (id_rule),
  1450. KEY id_member (id_member),
  1451. KEY delete_pm (delete_pm)
  1452. ) ENGINE=MyISAM;
  1453. #
  1454. # Table structure for table `polls`
  1455. #
  1456. CREATE TABLE {$db_prefix}polls (
  1457. id_poll mediumint(8) unsigned NOT NULL auto_increment,
  1458. question varchar(255) NOT NULL default '',
  1459. voting_locked tinyint(1) NOT NULL default '0',
  1460. max_votes tinyint(3) unsigned NOT NULL default '1',
  1461. expire_time int(10) unsigned NOT NULL default '0',
  1462. hide_results tinyint(3) unsigned NOT NULL default '0',
  1463. change_vote tinyint(3) unsigned NOT NULL default '0',
  1464. guest_vote tinyint(3) unsigned NOT NULL default '0',
  1465. num_guest_voters int(10) unsigned NOT NULL default '0',
  1466. reset_poll int(10) unsigned NOT NULL default '0',
  1467. id_member mediumint(8) NOT NULL default '0',
  1468. poster_name varchar(255) NOT NULL default '',
  1469. PRIMARY KEY (id_poll)
  1470. ) ENGINE=MyISAM;
  1471. #
  1472. # Table structure for table `poll_choices`
  1473. #
  1474. CREATE TABLE {$db_prefix}poll_choices (
  1475. id_poll mediumint(8) unsigned NOT NULL default '0',
  1476. id_choice tinyint(3) unsigned NOT NULL default '0',
  1477. label varchar(255) NOT NULL default '',
  1478. votes smallint(5) unsigned NOT NULL default '0',
  1479. PRIMARY KEY (id_poll, id_choice)
  1480. ) ENGINE=MyISAM;
  1481. #
  1482. # Table structure for table `scheduled_tasks`
  1483. #
  1484. CREATE TABLE {$db_prefix}scheduled_tasks (
  1485. id_task smallint(5) NOT NULL auto_increment,
  1486. next_time int(10) NOT NULL default '0',
  1487. time_offset int(10) NOT NULL default '0',
  1488. time_regularity smallint(5) NOT NULL default '0',
  1489. time_unit varchar(1) NOT NULL default 'h',
  1490. disabled tinyint(3) NOT NULL default '0',
  1491. task varchar(24) NOT NULL default '',
  1492. PRIMARY KEY (id_task),
  1493. KEY next_time (next_time),
  1494. KEY disabled (disabled),
  1495. UNIQUE task (task)
  1496. ) ENGINE=MyISAM;
  1497. #
  1498. # Dumping data for table `scheduled_tasks`
  1499. #
  1500. INSERT INTO {$db_prefix}scheduled_tasks
  1501. (id_task, next_time, time_offset, time_regularity, time_unit, disabled, task)
  1502. VALUES
  1503. (1, 0, 0, 2, 'h', 0, 'approval_notification'),
  1504. (2, 0, 0, 7, 'd', 0, 'auto_optimize'),
  1505. (3, 0, 60, 1, 'd', 0, 'daily_maintenance'),
  1506. (5, 0, 0, 1, 'd', 0, 'daily_digest'),
  1507. (6, 0, 0, 1, 'w', 0, 'weekly_digest'),
  1508. (7, 0, {$sched_task_offset}, 1, 'd', 0, 'fetchSMfiles'),
  1509. (8, 0, 0, 1, 'd', 1, 'birthdayemails'),
  1510. (9, 0, 0, 1, 'w', 0, 'weekly_maintenance'),
  1511. (10, 0, 120, 1, 'd', 1, 'paid_subscriptions'),
  1512. (11, 0, 120, 1, 'd', 0, 'remove_temp_attachments'),
  1513. (12, 0, 180, 1, 'd', 0, 'remove_topic_redirect'),
  1514. (13, 0, 240, 1, 'd', 0, 'remove_old_drafts');
  1515. # --------------------------------------------------------
  1516. #
  1517. # Table structure for table `settings`
  1518. #
  1519. CREATE TABLE {$db_prefix}settings (
  1520. variable varchar(255) NOT NULL default '',
  1521. value text NOT NULL,
  1522. PRIMARY KEY (variable(30))
  1523. ) ENGINE=MyISAM;
  1524. #
  1525. # Dumping data for table `settings`
  1526. #
  1527. INSERT INTO {$db_prefix}settings
  1528. (variable, value)
  1529. VALUES ('smfVersion', '{$smf_version}'),
  1530. ('news', '{$default_news}'),
  1531. ('compactTopicPagesContiguous', '5'),
  1532. ('compactTopicPagesEnable', '1'),
  1533. ('enableStickyTopics', '1'),
  1534. ('todayMod', '1'),
  1535. ('karmaMode', '0'),
  1536. ('karmaTimeRestrictAdmins', '1'),
  1537. ('enablePreviousNext', '1'),
  1538. ('pollMode', '1'),
  1539. ('enableVBStyleLogin', '1'),
  1540. ('enableCompressedOutput', '{$enableCompressedOutput}'),
  1541. ('karmaWaitTime', '1'),
  1542. ('karmaMinPosts', '0'),
  1543. ('karmaLabel', '{$default_karmaLabel}'),
  1544. ('karmaSmiteLabel', '{$default_karmaSmiteLabel}'),
  1545. ('karmaApplaudLabel', '{$default_karmaApplaudLabel}'),
  1546. ('attachmentSizeLimit', '128'),
  1547. ('attachmentPostLimit', '192'),
  1548. ('attachmentNumPerPostLimit', '4'),
  1549. ('attachmentDirSizeLimit', '10240'),
  1550. ('attachmentDirFileLimit', '1000'),
  1551. ('attachmentUploadDir', '{$boarddir}/attachments'),
  1552. ('attachmentExtensions', 'doc,gif,jpg,mpg,pdf,png,txt,zip'),
  1553. ('attachmentCheckExtensions', '0'),
  1554. ('attachmentShowImages', '1'),
  1555. ('attachmentEnable', '1'),
  1556. ('attachmentEncryptFilenames', '1'),
  1557. ('attachmentThumbnails', '1'),
  1558. ('attachmentThumbWidth', '150'),
  1559. ('attachmentThumbHeight', '150'),
  1560. ('use_subdirectories_for_attachments', '1'),
  1561. ('censorIgnoreCase', '1'),
  1562. ('mostOnline', '1'),
  1563. ('mostOnlineToday', '1'),
  1564. ('mostDate', UNIX_TIMESTAMP()),
  1565. ('allow_disableAnnounce', '1'),
  1566. ('trackStats', '1'),
  1567. ('userLanguage', '1'),
  1568. ('titlesEnable', '1'),
  1569. ('topicSummaryPosts', '15'),
  1570. ('enableErrorLogging', '1'),
  1571. ('max_image_width', '0'),
  1572. ('max_image_height', '0'),
  1573. ('onlineEnable', '0'),
  1574. ('cal_enabled', '0'),
  1575. ('cal_maxyear', '2020'),
  1576. ('cal_minyear', '2008'),
  1577. ('cal_daysaslink', '0'),
  1578. ('cal_defaultboard', ''),
  1579. ('cal_showholidays', '1'),
  1580. ('cal_showbdays', '1'),
  1581. ('cal_showevents', '1'),
  1582. ('cal_maxspan', '7'),
  1583. ('cal_highlight_events', '3'),
  1584. ('cal_highlight_holidays', '3'),
  1585. ('cal_highlight_birthdays', '3'),
  1586. ('cal_disable_prev_next', '0'),
  1587. ('cal_display_type', '0'),
  1588. ('cal_week_links', '2'),
  1589. ('cal_prev_next_links', '1'),
  1590. ('cal_short_days', '0'),
  1591. ('cal_short_months', '0'),
  1592. ('cal_week_numbers', '0'),
  1593. ('smtp_host', ''),
  1594. ('smtp_port', '25'),
  1595. ('smtp_username', ''),
  1596. ('smtp_password', ''),
  1597. ('mail_type', '0'),
  1598. ('timeLoadPageEnable', '0'),
  1599. ('totalMembers', '0'),
  1600. ('totalTopics', '1'),
  1601. ('totalMessages', '1'),
  1602. ('simpleSearch', '0'),
  1603. ('censor_vulgar', ''),
  1604. ('censor_proper', ''),
  1605. ('enablePostHTML', '0'),
  1606. ('theme_allow', '1'),
  1607. ('theme_default', '1'),
  1608. ('theme_guests', '1'),
  1609. ('enableEmbeddedFlash', '0'),
  1610. ('xmlnews_enable', '1'),
  1611. ('xmlnews_maxlen', '255'),
  1612. ('hotTopicPosts', '15'),
  1613. ('hotTopicVeryPosts', '25'),
  1614. ('registration_method', '{$registration_method}'),
  1615. ('send_validation_onChange', '0'),
  1616. ('send_welcomeEmail', '1'),
  1617. ('allow_editDisplayName', '1'),
  1618. ('allow_hideOnline', '1'),
  1619. ('guest_hideContacts', '1'),
  1620. ('spamWaitTime', '5'),
  1621. ('pm_spam_settings', '10,5,20'),
  1622. ('reserveWord', '0'),
  1623. ('reserveCase', '1'),
  1624. ('reserveUser', '1'),
  1625. ('reserveName', '1'),
  1626. ('reserveNames', '{$default_reserved_names}'),
  1627. ('autoLinkUrls', '1'),
  1628. ('banLastUpdated', '0'),
  1629. ('smileys_dir', '{$boarddir}/Smileys'),
  1630. ('smileys_url', '{$boardurl}/Smileys'),
  1631. ('avatar_directory', '{$boarddir}/avatars'),
  1632. ('avatar_url', '{$boardurl}/avatars'),
  1633. ('avatar_max_height_external', '65'),
  1634. ('avatar_max_width_external', '65'),
  1635. ('avatar_action_too_large', 'option_html_resize'),
  1636. ('avatar_max_height_upload', '65'),
  1637. ('avatar_max_width_upload', '65'),
  1638. ('avatar_resize_upload', '1'),
  1639. ('avatar_download_png', '1'),
  1640. ('failed_login_threshold', '3'),
  1641. ('oldTopicDays', '120'),
  1642. ('edit_wait_time', '90'),
  1643. ('edit_disable_time', '0'),
  1644. ('autoFixDatabase', '1'),
  1645. ('allow_guestAccess', '1'),
  1646. ('time_format', '{$default_time_format}'),
  1647. ('number_format', '1234.00'),
  1648. ('enableBBC', '1'),
  1649. ('max_messageLength', '20000'),
  1650. ('signature_settings', '1,300,0,0,0,0,0,0:'),
  1651. ('autoOptMaxOnline', '0'),
  1652. ('defaultMaxMessages', '15'),
  1653. ('defaultMaxTopics', '20'),
  1654. ('defaultMaxMembers', '30'),
  1655. ('enableParticipation', '1'),
  1656. ('recycle_enable', '0'),
  1657. ('recycle_board', '0'),
  1658. ('maxMsgID', '1'),
  1659. ('enableAllMessages', '0'),
  1660. ('fixLongWords', '0'),
  1661. ('knownThemes', '1,2,3'),
  1662. ('who_enabled', '1'),
  1663. ('time_offset', '0'),
  1664. ('cookieTime', '60'),
  1665. ('lastActive', '15'),
  1666. ('smiley_sets_known', 'default,aaron,akyhne,fugue'),
  1667. ('smiley_sets_names', '{$default_smileyset_name}\n{$default_aaron_smileyset_name}\n{$default_akyhne_smileyset_name}\n{$default_fugue_smileyset_name}'),
  1668. ('smiley_sets_default', 'default'),
  1669. ('cal_days_for_index', '7'),
  1670. ('requireAgreement', '1'),
  1671. ('unapprovedMembers', '0'),
  1672. ('default_personal_text', ''),
  1673. ('package_make_backups', '1'),
  1674. ('databaseSession_enable', '{$databaseSession_enable}'),
  1675. ('databaseSession_loose', '1'),
  1676. ('databaseSession_lifetime', '2880'),
  1677. ('search_cache_size', '50'),
  1678. ('search_results_per_page', '30'),
  1679. ('search_weight_frequency', '30'),
  1680. ('search_weight_age', '25'),
  1681. ('search_weight_length', '20'),
  1682. ('search_weight_subject', '15'),
  1683. ('search_weight_first_message', '10'),
  1684. ('search_max_results', '1200'),
  1685. ('search_floodcontrol_time', '5'),
  1686. ('permission_enable_deny', '0'),
  1687. ('permission_enable_postgroups', '0'),
  1688. ('mail_next_send', '0'),
  1689. ('mail_recent', '0000000000|0'),
  1690. ('settings_updated', '0'),
  1691. ('next_task_time', '1'),
  1692. ('warning_settings', '1,20,0'),
  1693. ('warning_watch', '10'),
  1694. ('warning_moderate', '35'),
  1695. ('warning_mute', '60'),
  1696. ('admin_features', ''),
  1697. ('last_mod_report_action', '0'),
  1698. ('pruningOptions', '30,180,180,180,30,0'),
  1699. ('cache_enable', '1'),
  1700. ('reg_verification', '1'),
  1701. ('visual_verification_type', '3'),
  1702. ('enable_buddylist', '1'),
  1703. ('birthday_email', 'happy_birthday'),
  1704. ('dont_repeat_theme_core', '1'),
  1705. ('dont_repeat_smileys_20', '1'),
  1706. ('dont_repeat_buddylists', '1'),
  1707. ('attachment_image_reencode', '1'),
  1708. ('attachment_image_paranoid', '0'),
  1709. ('attachment_thumb_png', '1'),
  1710. ('avatar_reencode', '1'),
  1711. ('avatar_paranoid', '0'),
  1712. ('enable_disregard', '0'),
  1713. ('drafts_autosave_enabled', '1'),
  1714. ('drafts_show_saved_enabled', '1'),
  1715. ('drafts_keep_days', '7');
  1716. # --------------------------------------------------------
  1717. #
  1718. # Table structure for table `sessions`
  1719. #
  1720. CREATE TABLE {$db_prefix}sessions (
  1721. session_id char(64) NOT NULL,
  1722. last_update int(10) unsigned NOT NULL,
  1723. data text NOT NULL,
  1724. PRIMARY KEY (session_id)
  1725. ) ENGINE=MyISAM;
  1726. #
  1727. # Table structure for table `smileys`
  1728. #
  1729. CREATE TABLE {$db_prefix}smileys (
  1730. id_smiley smallint(5) unsigned NOT NULL auto_increment,
  1731. code varchar(30) NOT NULL default '',
  1732. filename varchar(48) NOT NULL default '',
  1733. description varchar(80) NOT NULL default '',
  1734. smiley_row tinyint(4) unsigned NOT NULL default '0',
  1735. smiley_order smallint(5) unsigned NOT NULL default '0',
  1736. hidden tinyint(4) unsigned NOT NULL default '0',
  1737. PRIMARY KEY (id_smiley)
  1738. ) ENGINE=MyISAM;
  1739. #
  1740. # Dumping data for table `smileys`
  1741. #
  1742. INSERT INTO {$db_prefix}smileys
  1743. (code, filename, description, smiley_order, hidden)
  1744. VALUES (':)', 'smiley.gif', '{$default_smiley_smiley}', 0, 0),
  1745. (';)', 'wink.gif', '{$default_wink_smiley}', 1, 0),
  1746. (':D', 'cheesy.gif', '{$default_cheesy_smiley}', 2, 0),
  1747. (';D', 'grin.gif', '{$default_grin_smiley}', 3, 0),
  1748. ('>:(', 'angry.gif', '{$default_angry_smiley}', 4, 0),
  1749. (':(', 'sad.gif', '{$default_sad_smiley}', 5, 0),
  1750. (':o', 'shocked.gif', '{$default_shocked_smiley}', 6, 0),
  1751. ('8)', 'cool.gif', '{$default_cool_smiley}', 7, 0),
  1752. ('???', 'huh.gif', '{$default_huh_smiley}', 8, 0),
  1753. ('::)', 'rolleyes.gif', '{$default_roll_eyes_smiley}', 9, 0),
  1754. (':P', 'tongue.gif', '{$default_tongue_smiley}', 10, 0),
  1755. (':-[', 'embarrassed.gif', '{$default_embarrassed_smiley}', 11, 0),
  1756. (':-X', 'lipsrsealed.gif', '{$default_lips_sealed_smiley}', 12, 0),
  1757. (':-\\', 'undecided.gif', '{$default_undecided_smiley}', 13, 0),
  1758. (':-*', 'kiss.gif', '{$default_kiss_smiley}', 14, 0),
  1759. (':\'(', 'cry.gif', '{$default_cry_smiley}', 15, 0),
  1760. ('>:D', 'evil.gif', '{$default_evil_smiley}', 16, 1),
  1761. ('^-^', 'azn.gif', '{$default_azn_smiley}', 17, 1),
  1762. ('O0', 'afro.gif', '{$default_afro_smiley}', 18, 1),
  1763. (':))', 'laugh.gif', '{$default_laugh_smiley}', 19, 1),
  1764. ('C:-)', 'police.gif', '{$default_police_smiley}', 20, 1),
  1765. ('O:-)', 'angel.gif', '{$default_angel_smiley}', 21, 1);
  1766. # --------------------------------------------------------
  1767. #
  1768. # Table structure for table `spiders`
  1769. #
  1770. CREATE TABLE {$db_prefix}spiders (
  1771. id_spider smallint(5) unsigned NOT NULL auto_increment,
  1772. spider_name varchar(255) NOT NULL default '',
  1773. user_agent varchar(255) NOT NULL default '',
  1774. ip_info varchar(255) NOT NULL default '',
  1775. PRIMARY KEY id_spider(id_spider)
  1776. ) ENGINE=MyISAM;
  1777. #
  1778. # Dumping data for table `spiders`
  1779. #
  1780. INSERT INTO {$db_prefix}spiders
  1781. (id_spider, spider_name, user_agent, ip_info)
  1782. VALUES (1, 'Google', 'googlebot', ''),
  1783. (2, 'Yahoo!', 'slurp', ''),
  1784. (3, 'MSN', 'msnbot', ''),
  1785. (4, 'Google (Mobile)', 'Googlebot-Mobile', ''),
  1786. (5, 'Google (Image)', 'Googlebot-Image', ''),
  1787. (6, 'Google (AdSense)', 'Mediapartners-Google', ''),
  1788. (7, 'Google (Adwords)', 'AdsBot-Google', ''),
  1789. (8, 'Yahoo! (Mobile)', 'YahooSeeker/M1A1-R2D2', ''),
  1790. (9, 'Yahoo! (Image)', 'Yahoo-MMCrawler', ''),
  1791. (10, 'MSN (Mobile)', 'MSNBOT_Mobile', ''),
  1792. (11, 'MSN (Media)', 'msnbot-media', ''),
  1793. (12, 'Cuil', 'twiceler', ''),
  1794. (13, 'Ask', 'Teoma', ''),
  1795. (14, 'Baidu', 'Baiduspider', ''),
  1796. (15, 'Gigablast', 'Gigabot', ''),
  1797. (16, 'InternetArchive', 'ia_archiver-web.archive.org', ''),
  1798. (17, 'Alexa', 'ia_archiver', ''),
  1799. (18, 'Omgili', 'omgilibot', ''),
  1800. (19, 'EntireWeb', 'Speedy Spider', '');
  1801. #
  1802. # Table structure for table `subscriptions`
  1803. #
  1804. CREATE TABLE {$db_prefix}subscriptions(
  1805. id_subscribe mediumint(8) unsigned NOT NULL auto_increment,
  1806. name varchar(60) NOT NULL default '',
  1807. description varchar(255) NOT NULL default '',
  1808. cost text NOT NULL,
  1809. length varchar(6) NOT NULL default '',
  1810. id_group smallint(5) NOT NULL default '0',
  1811. add_groups varchar(40) NOT NULL default '',
  1812. active tinyint(3) NOT NULL default '1',
  1813. repeatable tinyint(3) NOT NULL default '0',
  1814. allow_partial tinyint(3) NOT NULL default '0',
  1815. reminder tinyint(3) NOT NULL default '0',
  1816. email_complete text NOT NULL,
  1817. PRIMARY KEY (id_subscribe),
  1818. KEY active (active)
  1819. ) ENGINE=MyISAM;
  1820. #
  1821. # Table structure for table `themes`
  1822. #
  1823. CREATE TABLE {$db_prefix}themes (
  1824. id_member mediumint(8) NOT NULL default '0',
  1825. id_theme tinyint(4) unsigned NOT NULL default '1',
  1826. variable varchar(255) NOT NULL default '',
  1827. value text NOT NULL,
  1828. PRIMARY KEY (id_theme, id_member, variable(30)),
  1829. KEY id_member (id_member)
  1830. ) ENGINE=MyISAM;
  1831. #
  1832. # Dumping data for table `themes`
  1833. #
  1834. INSERT INTO {$db_prefix}themes
  1835. (id_theme, variable, value)
  1836. VALUES (1, 'name', '{$default_theme_name}'),
  1837. (1, 'theme_url', '{$boardurl}/Themes/default'),
  1838. (1, 'images_url', '{$boardurl}/Themes/default/images'),
  1839. (1, 'theme_dir', '{$boarddir}/Themes/default'),
  1840. (1, 'show_bbc', '1'),
  1841. (1, 'show_latest_member', '1'),
  1842. (1, 'show_modify', '1'),
  1843. (1, 'show_user_images', '1'),
  1844. (1, 'show_blurb', '1'),
  1845. (1, 'show_gender', '0'),
  1846. (1, 'show_newsfader', '0'),
  1847. (1, 'number_recent_posts', '0'),
  1848. (1, 'show_member_bar', '1'),
  1849. (1, 'linktree_link', '1'),
  1850. (1, 'show_profile_buttons', '1'),
  1851. (1, 'show_mark_read', '1'),
  1852. (1, 'show_stats_index', '1'),
  1853. (1, 'show_board_desc', '1'),
  1854. (1, 'newsfader_time', '5000'),
  1855. (1, 'allow_no_censored', '0'),
  1856. (1, 'additional_options_collapsable', '1'),
  1857. (1, 'use_image_buttons', '1'),
  1858. (1, 'enable_news', '1'),
  1859. (1, 'forum_width', '90%'),
  1860. (1, 'drafts_autosave_enabled', '1'),
  1861. (1, 'drafts_show_saved_enabled', '1');
  1862. INSERT INTO {$db_prefix}themes (id_member, id_theme, variable, value) VALUES (-1, 1, 'display_quick_reply', '2');
  1863. INSERT INTO {$db_prefix}themes (id_member, id_theme, variable, value) VALUES (-1, 1, 'posts_apply_ignore_list', '1');
  1864. # --------------------------------------------------------
  1865. #
  1866. # Table structure for table `topics`
  1867. #
  1868. CREATE TABLE {$db_prefix}topics (
  1869. id_topic mediumint(8) unsigned NOT NULL auto_increment,
  1870. is_sticky tinyint(4) NOT NULL default '0',
  1871. id_board smallint(5) unsigned NOT NULL default '0',
  1872. id_first_msg int(10) unsigned NOT NULL default '0',
  1873. id_last_msg int(10) unsigned NOT NULL default '0',
  1874. id_member_started mediumint(8) unsigned NOT NULL default '0',
  1875. id_member_updated mediumint(8) unsigned NOT NULL default '0',
  1876. id_poll mediumint(8) unsigned NOT NULL default '0',
  1877. id_previous_board smallint(5) NOT NULL default '0',
  1878. id_previous_topic mediumint(8) NOT NULL default '0',
  1879. num_replies int(10) unsigned NOT NULL default '0',
  1880. num_views int(10) unsigned NOT NULL default '0',
  1881. locked tinyint(4) NOT NULL default '0',
  1882. redirect_expires int(10) unsigned NOT NULL default '0',
  1883. id_redirect_topic mediumint(8) unsigned NOT NULL default '0',
  1884. unapproved_posts smallint(5) NOT NULL default '0',
  1885. approved tinyint(3) NOT NULL default '1',
  1886. PRIMARY KEY (id_topic),
  1887. UNIQUE last_message (id_last_msg, id_board),
  1888. UNIQUE first_message (id_first_msg, id_board),
  1889. UNIQUE poll (id_poll, id_topic),
  1890. KEY is_sticky (is_sticky),
  1891. KEY approved (approved),
  1892. KEY id_board (id_board),
  1893. KEY member_started (id_member_started, id_board),
  1894. KEY last_message_sticky (id_board, is_sticky, id_last_msg),
  1895. KEY board_news (id_board, id_first_msg)
  1896. ) ENGINE=MyISAM;
  1897. #
  1898. # Dumping data for table `topics`
  1899. #
  1900. INSERT INTO {$db_prefix}topics
  1901. (id_topic, id_board, id_first_msg, id_last_msg, id_member_started, id_member_updated)
  1902. VALUES (1, 1, 1, 1, 0, 0);
  1903. # --------------------------------------------------------
  1904. #
  1905. # Table structure for table `user_drafts`
  1906. #
  1907. CREATE TABLE {$db_prefix}user_drafts (
  1908. id_draft int(10) unsigned NOT NULL auto_increment,
  1909. id_topic mediumint(8) unsigned NOT NULL default '0',
  1910. id_board smallint(5) unsigned NOT NULL default '0',
  1911. id_reply int(10) unsigned NOT NULL default '0',
  1912. type tinyint(4) NOT NULL default '0',
  1913. poster_time int(10) unsigned NOT NULL default '0',
  1914. id_member mediumint(8) unsigned NOT NULL default '0',
  1915. subject varchar(255) NOT NULL default '',
  1916. smileys_enabled tinyint(4) NOT NULL default '1',
  1917. body mediumtext NOT NULL,
  1918. icon varchar(16) NOT NULL default 'xx',
  1919. locked tinyint(4) NOT NULL default '0',
  1920. is_sticky tinyint(4) NOT NULL default '0',
  1921. to_list varchar(255) NOT NULL default '',
  1922. outbox tinyint(4) NOT NULL default '0',
  1923. PRIMARY KEY (id_draft),
  1924. UNIQUE id_member (id_member, id_draft, type)
  1925. ) ENGINE=MyISAM;