
Da es bei mir komplett anders angezeigt wird kann ich dir auch nicht sagen mit welcher Einstellung es bei mir funktioniert.
calendar_body.html
. Da ist mir das Auswahlfeld fürCode: Alles auswählen
#calendar select {
background-color: #037ebb;
color: #ffffff;
border: none;
}
Code: Alles auswählen
#calendar select {
background-color: #ffffff;
color: #000000;
border: none;
}
depends_on()
Funktion in den Migrations für die Version 0.2.0 und 0.3.0 auf die jeweils vorige Migration verweisen. Dann werden die auch in einer richtigen Reihenfolge ausgeführt. Das macht Sinn. Werde ich dann mal machen.Elsensee hat geschrieben:Ja, stimmt. Das ist das Problem.![]()
HJW muss in derdepends_on()
Funktion in den Migrations für die Version 0.2.0 und 0.3.0 auf die jeweils vorige Migration verweisen. Dann werden die auch in einer richtigen Reihenfolge ausgeführt.![]()
Bis dahin kann man, für eine Neuinstallation, dieHJW hat geschrieben:Werde ich dann mal machen.
hjw\calendar\migrations\v_0_3_0.php
wie folgt abändern (ersetzen)
Code: Alles auswählen
<?php
/**
*
* @package hjw calendar Extension
* @copyright (c) 2014 calendar
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
namespace hjw\calendar\migrations;
class v_0_3_0 extends \phpbb\db\migration\migration
{
public function effectively_installed()
{
return isset($this->config['calendar_version']) && version_compare($this->config['calendar_version'], '0.3.0', '>=');
}
static public function depends_on()
{
return array('\phpbb\db\migration\data\v310\dev');
}
public function update_schema()
{
return array(
'add_tables' => array(
$this->table_prefix . 'calendar_event' => array(
'COLUMNS' => array(
'id' => array('UINT', null, 'auto_increment'),
'event' => array('VCHAR:255', ''),
'color' => array('VCHAR:16', ''),
'participants' => array('INT:1', 0),
),
'PRIMARY_KEY' => 'id',
),
$this->table_prefix . 'calendar' => array(
'COLUMNS' => array(
'post_id' => array('UINT', null, ''),
'event_id' => array('UINT', null, ''),
'event_name' => array('VCHAR:255', ''),
'date_from' => array('VCHAR:10', ''),
'date_to' => array('VCHAR:10', ''),
),
'PRIMARY_KEY' => 'post_id',
),
$this->table_prefix . 'calendar_participants' => array(
'COLUMNS' => array(
'post_id' => array('UINT', null, ''),
'user_id' => array('UINT', null, ''),
'number' => array('UINT', null, ''),
'participants' => array('VCHAR:255', ''),
'comments' => array('VCHAR:255', ''),
'date' => array('VCHAR:20', ''),
),
),
$this->table_prefix . 'calendar_forums' => array(
'COLUMNS' => array(
'forum_id' => array('UINT', null, ''),
'allowed' => array('INT:1', 0),
),
'PRIMARY_KEY' => 'forum_id',
),
$this->table_prefix . 'calendar_event_list' => array(
'COLUMNS' => array(
'id' => array('UINT', null, 'auto_increment'),
'appointment' => array('VCHAR:255', ''),
'description' => array('VCHAR:255', ''),
'link' => array('VCHAR:255', ''),
'anniversary' => array('UINT', null, ''),
'date_from' => array('VCHAR:10', ''),
'date_to' => array('VCHAR:10', ''),
'color' => array('VCHAR:10', ''),
),
'PRIMARY_KEY' => 'id',
),
$this->table_prefix . 'calendar_special_days' => array(
'COLUMNS' => array(
'id' => array('UINT', null, 'auto_increment'),
'name' => array('VCHAR:255', ''),
'eastern' => array('INT:1', null, ''),
'date' => array('VCHAR:10', ''),
'show_on' => array('INT:1', 0),
'color' => array('VCHAR:10', ''),
),
'PRIMARY_KEY' => 'id',
),
),
);
}
public function revert_schema()
{
return array(
'drop_tables' => array(
$this->table_prefix . 'calendar_event',
$this->table_prefix . 'calendar',
$this->table_prefix . 'calendar_participants',
$this->table_prefix . 'calendar_forums',
$this->table_prefix . 'calendar_event_list',
$this->table_prefix . 'calendar_special_days',
),
);
}
public function update_data()
{
return array(
array('config.add', array('calendar_version', '0.3.0')),
array('module.add', array(
'acp',
'ACP_CAT_DOT_MODS',
'ACP_CALENDAR_TITLE'
)),
array('module.add', array(
'acp',
'ACP_CALENDAR_TITLE',
array(
'module_basename' => '\hjw\calendar\acp\main_module',
'modes' => array('settings','instructions','event_settings','forums_settings','event_list','special_days'),
),
)),
);
}
}