37 lines
842 B
PHP
37 lines
842 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateUpdateAuth extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
if (!Schema::hasTable('yz_update_auth')) {
|
|
Schema::create('yz_update_auth', function (Blueprint $table) {
|
|
$table->integer('id', true);
|
|
$table->string('code', 50)->nullable();
|
|
$table->integer('created_at')->nullable();
|
|
$table->integer('updated_at')->nullable();
|
|
$table->integer('deleted_at')->nullable();
|
|
});
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
//
|
|
}
|
|
}
|