install_2-1_postgresql.sql 133 KB

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