mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
Add filesize column to track_files
This commit is contained in:
parent
7686533d64
commit
90de9cf840
1 changed files with 31 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class UpdateTrackFilesWithFilesize extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('track_files', function (Blueprint $table) {
|
||||
$table->integer('filesize')->nullable()->unsigned();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('track_files', function (Blueprint $table) {
|
||||
$table->dropColumn('filesize');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue