mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
30 lines
535 B
PHP
30 lines
535 B
PHP
<?php
|
|
|
|
namespace App\Database\Migrations;
|
|
|
|
use CodeIgniter\Database\Migration;
|
|
use CodeIgniter\Database\RawSql;
|
|
|
|
class AddMEnvioColumns extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
$this->forge->addColumn("envios",
|
|
["multienvio" => [
|
|
"type" => "TINYINT",
|
|
"unsigned" => true,
|
|
"null" => false,
|
|
"default" => 0,
|
|
]]
|
|
);
|
|
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
$this->forge->dropColumn("envios", ['multienvio']);
|
|
|
|
}
|
|
}
|