Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2019_12_10_095027_create_packages_table.php
Show All 12 Lines | class CreatePackagesTable extends Migration | ||||
*/ | */ | ||||
public function up() | public function up() | ||||
{ | { | ||||
Schema::create( | Schema::create( | ||||
'packages', | 'packages', | ||||
function (Blueprint $table) { | function (Blueprint $table) { | ||||
$table->string('id', 36); | $table->string('id', 36); | ||||
$table->string('title', 36); | $table->string('title', 36); | ||||
$table->string('description', 128); | $table->json('name'); | ||||
$table->json('description'); | |||||
$table->integer('discount_rate')->default(0)->nullable(); | $table->integer('discount_rate')->default(0)->nullable(); | ||||
$table->primary('id'); | $table->primary('id'); | ||||
} | } | ||||
); | ); | ||||
} | } | ||||
/** | /** | ||||
Show All 9 Lines |