2016_02_23_080344_create_funmenudetail_table.php 742B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateFunmenudetailTable extends Migration
  5. {
  6. private $tableName = 'funmenudetail';
  7. public function up()
  8. {
  9. Schema::create($this->tableName, function (Blueprint $table) {
  10. $table->increments('id');
  11. $table->unsignedTinyInteger('FunMenuId');
  12. $table->unsignedTinyInteger('FunId');
  13. $table->unsignedTinyInteger('Valid');
  14. $table->unsignedTinyInteger('Corder');
  15. $table->unsignedTinyInteger('Oid'); // TODO: 不知道作用
  16. $table->timestamps();
  17. });
  18. }
  19. public function down()
  20. {
  21. Schema::drop($this->tableName);
  22. }
  23. }