mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
27 lines
573 B
PHP
27 lines
573 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
|
|
class AddTickInteriorPapelImpresion extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$fields = [
|
|
'interior' => [
|
|
'type' => 'TINYINT',
|
|
'constraint' => 1,
|
|
'null' => false,
|
|
'default' => 0,
|
|
],
|
|
];
|
|
$this->forge->addColumn('lg_papel_impresion', $fields);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn('lg_papel_impresion', 'interior');
|
|
}
|
|
}
|