software-admin-panel-laravel/database/migrations/2022_11_17_002410_create_pr...

38 lines
939 B
PHP
Raw Normal View History

2022-11-16 20:07:10 -06:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProgramsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('programs', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('description');
$table->boolean('active')->default(1);
$table->unsignedInteger('major_version')->default(1);
$table->unsignedInteger('minor_version')->default(0);
$table->unsignedInteger('revision_version')->default(0);
$table->timestamp('last_updated')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('programs');
}
}