1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateMessagesTable.
- */
- class CreateMessagesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('messages', function(Blueprint $table) {
- $table->increments('id');
- $table->integer('m_id')->default('0')->comment('m_id');
- $table->string('username')->default('')->comment('username');
- $table->string('content')->default('')->comment('content');
- $table->string('reply')->default('')->comment('reply');
- $table->integer('show')->default('0')->comment('show');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('messages');
- }
- }
|