v.2.5
Migration: Add column 'legacy_code' to 'units_list'
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddColumnsToUnitsList extends Migration {
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up() {
|
||||
Schema::table('units_list', function (Blueprint $table) {
|
||||
$table->string('legacy_code')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down() {
|
||||
Schema::table('units_list', function (Blueprint $table) {
|
||||
$table->dropColumn('legacy_code');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user