Files
citrus-cms/database/migrations/2023_09_21_062928_create_counters_table.php
T
2026-04-28 21:15:09 +03:00

35 lines
746 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCountersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('counters', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('prefix', 100)->nullable()->default(null);
$table->integer('value')->nullable()->default(0);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('counters');
}
}