24 lines
482 B
PHP
24 lines
482 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AddUpdatedAtToSubscriptions extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->forge->addColumn('organization_subscriptions', [
|
|
'updated_at' => [
|
|
'type' => 'DATETIME',
|
|
'null' => true,
|
|
],
|
|
]);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('organization_subscriptions', 'updated_at');
|
|
}
|
|
}
|