Update version 0.1.1
This commit is contained in:
@@ -25,5 +25,4 @@ class mchat_module extends \phpbb\db\migration\migration
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,6 +24,4 @@ class mchat_module1 extends \phpbb\db\migration\migration
|
||||
))),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -25,8 +25,9 @@ class mchat_schema extends \phpbb\db\migration\migration
|
||||
array('config.add', array('mchat_new_posts_quote', false)),
|
||||
array('config.add', array('mchat_message_top', true)),
|
||||
array('config.add', array('mchat_stats_index', false)),
|
||||
array('config.add', array('mchat_version','0.1.0')),
|
||||
array('config.add', array('mchat_version','0.1.1')),
|
||||
|
||||
// Add permissions
|
||||
array('permission.add', array('u_mchat_use')),
|
||||
array('permission.add', array('u_mchat_view')),
|
||||
array('permission.add', array('u_mchat_edit')),
|
||||
@@ -81,7 +82,7 @@ class mchat_schema extends \phpbb\db\migration\migration
|
||||
);
|
||||
}
|
||||
|
||||
public function revert_schema()
|
||||
public function revert_schema()
|
||||
{
|
||||
return array(
|
||||
'drop_tables' => array(
|
||||
@@ -89,5 +90,4 @@ class mchat_schema extends \phpbb\db\migration\migration
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,7 @@ class mchat_schema_2 extends \phpbb\db\migration\migration
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
public function revert_schema()
|
||||
{
|
||||
return array(
|
||||
@@ -48,5 +49,4 @@ class mchat_schema_2 extends \phpbb\db\migration\migration
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -18,12 +18,14 @@ class mchat_schema_3 extends \phpbb\db\migration\migration
|
||||
'\dmzx\mchat\migrations\mchat_schema_2',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
array('custom', array(array($this, 'insert_sample_data'))),
|
||||
);
|
||||
}
|
||||
|
||||
public function insert_sample_data()
|
||||
{
|
||||
global $user;
|
||||
|
||||
@@ -18,6 +18,7 @@ class mchat_schema_4 extends \phpbb\db\migration\migration
|
||||
'\dmzx\mchat\migrations\mchat_schema_3',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_schema()
|
||||
{
|
||||
return array(
|
||||
@@ -33,4 +34,20 @@ class mchat_schema_4 extends \phpbb\db\migration\migration
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
public function revert_schema()
|
||||
{
|
||||
return array(
|
||||
'drop_columns' => array(
|
||||
$this->table_prefix . 'users' => array(
|
||||
'user_mchat_index',
|
||||
'user_mchat_sound',
|
||||
'user_mchat_stats_index',
|
||||
'user_mchat_topics',
|
||||
'user_mchat_avatars',
|
||||
'user_mchat_input_area',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@ class mchat_schema_5 extends \phpbb\db\migration\migration
|
||||
'\dmzx\mchat\migrations\mchat_schema_4',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_schema()
|
||||
{
|
||||
return array(
|
||||
@@ -33,6 +34,7 @@ class mchat_schema_5 extends \phpbb\db\migration\migration
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
public function revert_schema()
|
||||
{
|
||||
return array(
|
||||
@@ -41,5 +43,4 @@ class mchat_schema_5 extends \phpbb\db\migration\migration
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -18,6 +18,7 @@ class mchat_schema_6 extends \phpbb\db\migration\migration
|
||||
'\dmzx\mchat\migrations\mchat_schema_5',
|
||||
);
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return array(
|
||||
|
||||
Reference in New Issue
Block a user