Archived
1
0
Fork 0
This repository has been archived on 2021-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
ifnews/database/migrations/2019_11_30_055320_authors.php

35 lines
721 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Authors extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('authors', function (Blueprint $table) {
$table->string('url')->nullable()->change();
$table->boolean('is_company')->nullable()->change();
$table->boolean('is_person')->nullable()->change();
$table->text('description')->nullable()->change();
$table->boolean('is_translator')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
return true;
}
}