gurl_o/plugins/rainlab/user/updates/users_add_banner.php

26 lines
527 B
PHP
Raw Permalink Normal View History

2023-07-27 20:13:51 +00:00
<?php namespace RainLab\User\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class UsersAddBanner extends Migration
{
public function up()
{
Schema::table('users', function($table)
{
$table->string('banner')->nullable();
});
}
public function down()
{
if (Schema::hasColumn('users', 'banner')) {
Schema::table('users', function($table)
{
$table->dropColumn('banner');
});
}
}
}