mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
calcular y guardar presupuestos adaptados a los nuevos acabados. Migracion en la bbdd
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Database\Migrations;
|
||||
|
||||
use CodeIgniter\Database\Migration;
|
||||
|
||||
class RemoveEstampadoBarnizado extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->forge->dropColumn('presupuestos', 'barniz_cubierta_id');
|
||||
$this->forge->dropColumn('presupuestos', 'estampado_cubierta_id');
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$fields = [
|
||||
'barniz_cubierta_id' => [
|
||||
'type' => 'INT',
|
||||
'constraint' => 10,
|
||||
'unsigned' => true,
|
||||
'null' => false,
|
||||
'default' => 0,
|
||||
],
|
||||
'estampado_cubierta_id' => [
|
||||
'type' => 'INT',
|
||||
'constraint' => 10,
|
||||
'unsigned' => true,
|
||||
'null' => false,
|
||||
'default' => 0,
|
||||
],
|
||||
];
|
||||
|
||||
$this->forge->addColumn('presupuestos', $fields);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user