Heimdall/database/migrations/2018_10_18_110905_create_applications_table.php

41 lines
1 KiB
PHP
Raw Normal View History

2018-10-18 14:59:38 +00:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
2018-10-18 14:59:38 +00:00
class CreateApplicationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('applications', function (Blueprint $table) {
2018-10-25 13:42:14 +00:00
$table->string('appid')->unique();
2018-10-18 14:59:38 +00:00
$table->string('name')->unique();
2018-10-19 14:10:05 +00:00
$table->string('sha')->unique()->nullable();
2018-10-18 14:59:38 +00:00
$table->string('icon')->nullable();
$table->string('website')->nullable();
$table->string('license')->nullable();
$table->mediumText('description')->nullable();
$table->boolean('enhanced')->default(false);
2018-10-19 14:10:05 +00:00
$table->string('tile_background')->default('dark');
2018-10-18 14:59:38 +00:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('applications');
}
}