c3lf-system-3/database/migrations/2019_12_15_203050_rename__itemfields.php

35 lines
686 B
PHP
Raw Permalink Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RenameItemfields extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('items', function (Blueprint $table) {
$table->renameColumn('bezeichnung','description');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('items', function (Blueprint $table) {
$table->renameColumn('description', 'bezeichnung');
});
}
}