First commit

This commit is contained in:
ebassi -
commit 3a568602da
36 changed files with 1584 additions and 0 deletions

38
migrations/dev_4.php Executable file
View file

@ -0,0 +1,38 @@
<?php
namespace pedodev\tagging\migrations;
class dev_4 extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return ['\phpbb\db\migration\data\v330\v330'];
}
public function update_schema()
{
return [
'add_tables' => [
$this->table_prefix . 'content_tags' => [
'COLUMNS' => [
'id' => ['ULINT', NULL, 'auto_increment'],
'post_id' => ['ULINT', 0, 'NON-NULL'],
'tag_id' => ['USINT', 0, 'NON-NULL'],
],
'PRIMARY_KEY' => 'id',
],
],
];
}
public function revert_schema()
{
return [
'drop_tables' => [
$this->table_prefix . 'content_tags',
],
];
}
}