install_2-1_postgresql.sql 135 KB

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