mirror of
https://github.com/flarum/framework.git
synced 2025-06-03 22:43:10 +08:00
Rename column for consistency
This commit is contained in:
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Flarum\Migrations\Core;
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Flarum\Migrations\Migration;
|
||||
|
||||
class RenameNotificationReadTime extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
$this->schema->table('users', function (Blueprint $table) {
|
||||
$table->renameColumn('notification_read_time', 'notifications_read_time');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
$this->schema->table('users', function (Blueprint $table) {
|
||||
$table->renameColumn('notifications_read_time', 'notification_read_time');
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user