29 lines
641 B
PHP
29 lines
641 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Database\Migrations;
|
||
|
|
|
||
|
|
use CodeIgniter\Database\Migration;
|
||
|
|
|
||
|
|
class AddRequestableToTestDefSite extends Migration
|
||
|
|
{
|
||
|
|
public function up()
|
||
|
|
{
|
||
|
|
$fields = [
|
||
|
|
'Requestable' => [
|
||
|
|
'type' => 'TINYINT',
|
||
|
|
'constraint' => 1,
|
||
|
|
'null' => true,
|
||
|
|
'default' => 1,
|
||
|
|
'comment' => 'Flag indicating if test can be requested (1=yes, 0=no)'
|
||
|
|
]
|
||
|
|
];
|
||
|
|
|
||
|
|
$this->forge->addColumn('testdefsite', $fields);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function down()
|
||
|
|
{
|
||
|
|
$this->forge->dropColumn('testdefsite', 'Requestable');
|
||
|
|
}
|
||
|
|
}
|