diff options
| author | horus | 2020-03-19 02:56:04 +0100 |
|---|---|---|
| committer | horus | 2020-03-19 02:56:04 +0100 |
| commit | 9436a3cd81d593de15653840ce4f69cee5cb573f (patch) | |
| tree | 813fb2494ee6b6b59dde7dc6ee206a83d9cd10c7 /database | |
| parent | 6ee98957635ec027fc98382befb9fd154d88889e (diff) | |
| download | senpai-9436a3cd81d593de15653840ce4f69cee5cb573f.tar.gz | |
Add more data from anilist, namely synopsis, official hashtag and user preferred title.
Diffstat (limited to 'database')
| -rw-r--r-- | database/migrations/2020_03_19_021956_add_enhancement_to_anime.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/database/migrations/2020_03_19_021956_add_enhancement_to_anime.php b/database/migrations/2020_03_19_021956_add_enhancement_to_anime.php new file mode 100644 index 0000000..01b4aaa --- /dev/null +++ b/database/migrations/2020_03_19_021956_add_enhancement_to_anime.php @@ -0,0 +1,33 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class AddEnhancementToAnime extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::table('anime', function (Blueprint $table) { + $table->text('synopsis')->nullable()->default(''); + $table->string('hashtag')->nullable()->default(''); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('anime', function (Blueprint $table) { + // + }); + } +} |
