42 lines
942 B
PHP
42 lines
942 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateProjectsTable extends Migration
|
|
{
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('projects', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('title', 255);
|
|
$table->json('categories');
|
|
$table->string('author', 30);
|
|
$table->string('image_url', 30);
|
|
$table->dateTimeTz('release_data');
|
|
$table->string('project_url', 255);
|
|
$table->string('project_version', 20);
|
|
$table->text('description');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('projects');
|
|
}
|
|
|
|
}
|