12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateSetmealIncrementsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('setmeal_increments', function (Blueprint $table) {
- $table->increments('id');
- $table->string('cat')->comment('增值包类型');
- $table->string('name')->comment('增值包名称');
- $table->integer('value')->comment('增值包数量');
- $table->string('price')->comment('增值包价格');
- $table->integer('sort')->comment('排序');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('setmeal_increments');
- }
- }
|