love_php/database/migrations/2017_10_27_060934_create_message.php
2026-04-02 09:20:51 +08:00

40 lines
852 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMessage extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::create('messages', function (Blueprint $table) {
$table->increments('id');
$table->string('phone', 50);
$table->text('message');
$table->string('code')->nullable();
$table->boolean('confirmed');
$table->string('ip', 50);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
Schema::dropIfExists('messages');
}
}