MOD Install-Datei
Verfasst: 14.11.2013 20:35
Ich bastele gerade an einer Install-Datei für einen kleinen MOD.
Das ist der derzeitige Stand:
Dieser Befehl müsste jetzt noch in die Tabelle TEST_CONFIG rein.
Kann hier jemand bitte weiterhelfen ?
Das ist der derzeitige Stand:
Code: Alles auswählen
<?php
$versions = array(
'0.1.0' => array(
// Tabelle TEST_CONFIG
'table_add' => array(
array('phpbb_test_config', array(
'COLUMNS' => array(
'name' => array('UINT:2', 0),
'value' => array('VCHAR', ),
'aktiv' => array('UINT:1', 0),
),
)),
),
// Bis hier OK, Tabelle wird richtig angelegt
'table_row_insert' => array(
array('phpbb_test_config', array(
// Hier komme ich nicht weiter !
),
),
),
// ACP-Modul erstellen (OK)
'module_add' => array(
array('acp', 'ACP_CAT_DOT_MODS', 'ACP_TEST'),
array('acp', 'ACP_TEST', array(
'module_basename' => 'test',
'modes' => array('settings'),
)),
array('acp', 'ACP_TEST', array(
'module_basename' => 'test',
'modes' => array('cats'),
)),
),
// Cache leeren (OK)
'cache_purge' => array(
'template',
'theme',
'cache',
),
),
);
include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);
?>
Code: Alles auswählen
INSERT INTO `phpbb_test_config` (`name`, `value`, `aktiv`) VALUES
(1, '', 1),
(2, '', 1),
(3, '', 1),
(4, '', 1),
(5, '', 1),
(6, '', 1),
(7, '', 1),
(8, '', 1),
(9, '', 1),
(10, '', 1);