install_2-1_mysql.sql 69 KB

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