Created
March 26, 2019 19:45
-
-
Save DarkGhostHunter/ba59ed3f81a57cf7139b23f780ea2d0d to your computer and use it in GitHub Desktop.
Create Podcast Table Migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Database\Migrations\Migration; | |
| class CreatePodcastTable extends Migration | |
| { | |
| /** | |
| * Run the migrations. | |
| * | |
| * @return void | |
| */ | |
| public function up() | |
| { | |
| Schema::create('podcast', function (Blueprint $table) { | |
| $table->bigIncrements('id'); | |
| $table->uuid('uuid')->index(); | |
| $table->string('filename'); | |
| $table->string('path'); | |
| $table->string('service'); | |
| $table->string('service'); | |
| $table->string('format', 4); | |
| $table->unsginedTinyInteger('quality', 4); | |
| $table->timestamps(); | |
| $table->timestamps(); | |
| $table->softDeletes(); | |
| }); | |
| } | |
| /** | |
| * Reverse the migrations. | |
| * | |
| * @return void | |
| */ | |
| public function down() | |
| { | |
| Schema::dropIfExists('podcast'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment