mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
falta autonumeric
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user