Improved file downloading

This commit is contained in:
Dane Everitt 2016-01-01 19:27:44 -05:00
parent 3fb739c4e4
commit 59fb0eae4f
7 changed files with 83 additions and 196 deletions

View file

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DownloadsServerIntToString extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement('ALTER TABLE `downloads` MODIFY `server` CHAR(36) NOT NULL');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
DB::statement('ALTER TABLE `downloads` MODIFY `server` MEDIUMINT(9) NOT NULL');
}
}