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

26 lines
513 B
PHP
Raw Normal View History

2019-02-25 14:56:59 +00:00
<?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');
});
}
}