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