2023-06-13 16:05:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class AddCreatedByToPosts Adds created_by field to posts table in database
|
|
|
|
*
|
|
|
|
* @copyright 2020 Ad Aures
|
|
|
|
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
|
|
|
|
* @link https://castopod.org/
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
|
|
|
|
use CodeIgniter\Database\BaseConnection;
|
|
|
|
use CodeIgniter\Database\Migration;
|
2024-05-29 10:24:13 +00:00
|
|
|
use Override;
|
2023-06-13 16:05:02 +00:00
|
|
|
|
|
|
|
class BaseMigration extends Migration
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Database Connection instance
|
|
|
|
*
|
|
|
|
* @var BaseConnection
|
|
|
|
*/
|
|
|
|
protected $db;
|
|
|
|
|
2024-05-29 10:24:13 +00:00
|
|
|
#[Override]
|
2023-06-13 16:05:02 +00:00
|
|
|
public function up(): void
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2024-05-29 10:24:13 +00:00
|
|
|
#[Override]
|
2023-06-13 16:05:02 +00:00
|
|
|
public function down(): void
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|