marc-leopold/cms/plugins/graker/photoalbums/updates/add_album_front.php

26 lines
513 B
PHP

<?php namespace Graker\PhotoAlbums\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class AddAlbumFront extends Migration
{
public function up()
{
Schema::table('graker_photoalbums_albums', function($table)
{
$table->integer('front_id')->unsigned()->nullable();
});
}
public function down()
{
Schema::table('graker_photoalbums_albums', function($table)
{
$table->dropColumn('front_id');
});
}
}