Rename a column.
public static renameColumn ( $tableName, $from, $to ) |
<?php /* * This file is part of Flarum. * * (c) Toby Zerner <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Flarum\Database\Migration; return Migration::renameColumn('users', 'suspended_until', 'suspend_until');
<?php /* * This file is part of Flarum. * * (c) Toby Zerner <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Flarum\Database\Migration; return Migration::renameColumn('users', 'notification_read_time', 'notifications_read_time');