Files
portal-api/database/migrations/2024_02_02_395629_os.php
T
2025-07-24 16:18:27 +07:00

37 lines
933 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('os', function (Blueprint $table) {
$table->id()->autoIncrement();
$table->string('version', 100)->nullable();
$table->string('os_id', 100)->nullable();
$table->integer('os_group_id')->index()->default(0);
$table->string('template_id')->nullable();
$table->integer('module_host_id')->index()->default(0);
$table->tinyInteger('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('os');
}
};