mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
27 lines
488 B
PHP
Executable File
27 lines
488 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AlterAddColumnActivoPapelGenerico extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$field = [
|
|
'activo' => [
|
|
'type' => 'BOOLEAN',
|
|
'default' => true,
|
|
]
|
|
];
|
|
$this->forge->addColumn('lg_papel_generico',$field);
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('lg_papel_generico','activo');
|
|
}
|
|
}
|
|
|