diff options
| author | horus | 2020-09-22 23:59:52 +0200 |
|---|---|---|
| committer | horus | 2020-09-22 23:59:52 +0200 |
| commit | a6090b9a44d37dbd562817d7dacbc53a5a2200b8 (patch) | |
| tree | 19ed99155e8bae7e03d30ddda1d51b41334ed78c /database | |
| parent | 32ee16621f45b39e5b2b93798d78d70791e5ab64 (diff) | |
| download | senpai-a6090b9a44d37dbd562817d7dacbc53a5a2200b8.tar.gz | |
add duration to anime
Diffstat (limited to 'database')
| -rw-r--r-- | database/migrations/2020_09_19_214845_add_duration_to_anime.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/database/migrations/2020_09_19_214845_add_duration_to_anime.php b/database/migrations/2020_09_19_214845_add_duration_to_anime.php new file mode 100644 index 0000000..b9a1f7f --- /dev/null +++ b/database/migrations/2020_09_19_214845_add_duration_to_anime.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class AddDurationToAnime extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('anime', function (Blueprint $table) { + $table->integer('duration')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('anime', function (Blueprint $table) { + $table->dropColumn('duration'); + }); + } +} |
