migration for mateials and orders
This commit is contained in:
parent
f373623c62
commit
ddb8888c31
|
|
@ -55,7 +55,7 @@ class MaterialCrudController extends CrudController
|
|||
|
||||
['suffix' => 'man.','attributes' => ["step" => "any"],'name' => 'price','type' => 'number', 'lable' => trans('admin.price'),'tab' => trans('admin.material.secondtab')],
|
||||
['suffix'=>'Mb','attributes' => ["step" => "any"],'name' => 'size','type' => 'number', 'lable' => trans('admin.size'),'tab' => trans('admin.material.secondtab')],
|
||||
['suffix'=>'min.','name' => 'duration','type' => 'number', 'lable' => trans('admin.duration'),'tab' => trans('admin.material.secondtab')],
|
||||
['suffix'=>'min.','attributes' => ["step" => "any"],'name' => 'duration','type' => 'number', 'lable' => trans('admin.duration'),'tab' => trans('admin.material.secondtab')],
|
||||
[ // image
|
||||
'tab' => trans('admin.material.thirdtab'),
|
||||
'label' => "Material Image",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddToOrdersTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('orders', function (Blueprint $table) {
|
||||
$table->smallInteger('orderStatus')->nullable();
|
||||
//
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('orders', function (Blueprint $table) {
|
||||
//
|
||||
$table->dropColumn('orderStatus');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AlterMaterialsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('materials', function (Blueprint $table) {
|
||||
$table->dropColumn('duration');
|
||||
// $table->unsignedDecimal('duration')->nullable();
|
||||
//
|
||||
});
|
||||
Schema::table('materials', function (Blueprint $table) {
|
||||
// $table->dropColumn('duration');
|
||||
$table->unsignedDecimal('duration')->nullable();
|
||||
//
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('materials', function (Blueprint $table) {
|
||||
//
|
||||
$table->dropColumn('duration');
|
||||
// $table->unsignedInteger('duration')->nullable();
|
||||
});
|
||||
Schema::table('materials', function (Blueprint $table) {
|
||||
//
|
||||
// $table->dropColumn('duration');
|
||||
$table->unsignedInteger('duration')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue