Created
May 28, 2013 14:17
-
-
Save clone1018/5663071 to your computer and use it in GitHub Desktop.
Revisions
-
clone1018 created this gist
May 28, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ <?php use Illuminate\Database\Migrations\Migration; class ImproveCfs extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('cfs', function ($table) { $table->enum('type', array('file', 'folder', 'link'))->after('name'); $table->string('mime')->nullable(); $table->renameColumn('s3', 'cloud'); }); } /** * Reverse the migrations. * * @return void */ public function down() { // Gotta figure out the reverse } }