Support functionality for per-egg features

This commit is contained in:
Dane Everitt 2020-11-02 20:20:36 -08:00
parent 7ec614ed2c
commit 7618f306bd
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 70 additions and 20 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddFeaturesColumnToEggs extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('eggs', function (Blueprint $table) {
$table->json('features')->after('description')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('eggs', function (Blueprint $table) {
$table->dropColumn('features');
});
}
}