20 lines
478 B
PHP
20 lines
478 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Database\Migrations;
|
||
|
|
|
||
|
|
use CodeIgniter\Database\Migration;
|
||
|
|
|
||
|
|
class RenamePatientGenderToSex extends Migration {
|
||
|
|
public function up() {
|
||
|
|
$this->forge->modifyColumn('patient', [
|
||
|
|
'Gender' => ['name' => 'Sex', 'type' => 'INT', 'constraint' => 11, 'null' => true],
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down() {
|
||
|
|
$this->forge->modifyColumn('patient', [
|
||
|
|
'Sex' => ['name' => 'Gender', 'type' => 'INT', 'constraint' => 11, 'null' => true],
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|