openstackid/app/database/migrations/2014_01_10_174847_alter_tab...

35 lines
662 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
class AlterTableOauth2Api extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('oauth2_api', function($table)
{
$table->text("route");
$table->enum('http_method', array('GET', 'HEAD','POST','PUT','DELETE','TRACE','CONNECT','OPTIONS'));
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('oauth2_api', function($table)
{
$table->dropColumn('route');
$table->dropColumn('http_method');
});
}
}