for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RenameStatisticsCounters extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::table('websockets_statistics_entries', function (Blueprint $table) {
$table->renameColumn('peak_connection_count', 'peak_connections_count');
});
$table->renameColumn('websocket_message_count', 'websocket_messages_count');
$table->renameColumn('api_message_count', 'api_messages_count');
}
* Reverse the migrations.
public function down()
$table->renameColumn('peak_connections_count', 'peak_connection_count');
$table->renameColumn('websocket_messages_count', 'websocket_message_count');
$table->renameColumn('api_messages_count', 'api_message_count');