You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
solarai/database/migrations/2022_08_22_100011_create_co...

35 lines
738 B
PHTML

2 years ago
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCounterTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('counter', function (Blueprint $table) {
$table->date('lo_date')->comment('년월일');
$table->integer('lo_count')->default(0)->comment('방문횟수');
// 인덱스
$table->primary('lo_date', 'pk_tbl_counter_date');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('counter');
}
}