rename 'bezeichnung' field to 'description'

This commit is contained in:
j3d1 2019-12-15 20:34:47 +01:00
parent c54879c26e
commit 5f5101b977
3 changed files with 39 additions and 5 deletions

View file

@ -0,0 +1,34 @@
<?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');
});
}
}