Files
monica/database/migrations/2017_12_01_113748_update_notes.php
T
Régis FreydandGitHub 76c75ce6e7 Add inline notes editing and favorites for notes (#672)
Notes are now edited inline (with Vue.js) and can be marked as favorites.
Favorite notes will appear on the dashboard in a new tab.
2017-12-04 09:55:47 -05:00

22 lines
504 B
PHP

<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateNotes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('notes', function (Blueprint $table) {
$table->boolean('is_favorited')->default(0)->after('body');
$table->date('favorited_at')->nullable()->after('is_favorited');
});
}
}