Skip to content

Instantly share code, notes, and snippets.

@DarkGhostHunter
Created March 26, 2019 19:45
Show Gist options
  • Select an option

  • Save DarkGhostHunter/ba59ed3f81a57cf7139b23f780ea2d0d to your computer and use it in GitHub Desktop.

Select an option

Save DarkGhostHunter/ba59ed3f81a57cf7139b23f780ea2d0d to your computer and use it in GitHub Desktop.
Create Podcast Table Migration
<?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