peliprint/database/migrations/2023_03_06_180942_create_key.php

33 lines
729 B
PHP
Raw Normal View History

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Migrations\Migration;
class CreateKey extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('bpkey', function (Blueprint $table) {
$table->id();
$table->string('k')->nullable();
$table->boolean('v')->nullable();
$table->timestamp('timestamp')->useCurrent()->onUpdate(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('bpkey');
}
}