Optional description for shifts
parent
6c783e7faa
commit
a1f5454bf5
@ -0,0 +1,37 @@
|
||||
<?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');
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue