Reference field in Vendors/Customers

This commit is contained in:
Batuhan Baş
2018-09-26 18:05:54 +03:00
parent 5cc1c03b25
commit f1eafda755
10 changed files with 83 additions and 2 deletions

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
class AddReferenceColumnCustomers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('customers', function ($table) {
$table->string('reference')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('customers', function ($table) {
$table->dropColumn('reference');
});
}
}

View File

@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
class AddReferenceColumnVendors extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('vendors', function ($table) {
$table->string('reference')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('vendors', function ($table) {
$table->dropColumn('reference');
});
}
}