This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/database/2016_08_04_175711_files_belong_on_the_filesystem.php
2016-08-04 23:24:08 +02:00

36 lines
710 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Sakura\DB;
class FilesBelongOnTheFilesystem extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$schema = DB::getSchemaBuilder();
$schema->table('uploads', function (Blueprint $table) {
$table->dropColumn('file_data');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
$schema = DB::getSchemaBuilder();
$schema->table('uploads', function (Blueprint $table) {
$table->binary('file_data');
});
}
}