engelsystem/db/migrations/2021_10_12_000000_add_shift...

38 lines
732 B
PHP
Raw Normal View History

2021-11-27 11:34:20 +01:00
<?php
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddShiftsDescription extends Migration
{
use Reference;
/**
* Run the migration
*/
public function up()
{
$this->schema->table(
'Shifts',
function (Blueprint $table) {
$table->text('description')->nullable()->after('shifttype_id');
}
);
}
/**
* Reverse the migration
*/
public function down()
{
$this->schema->table(
'Shifts',
function (Blueprint $table) {
$table->dropColumn('description');
}
);
}
}