I developed one api which is responsible for storing user details inside my database ,The table name is users_containers
, it will contain some users data now i want to rename that table name to users_data
without lossing any data ,How to acheive this thing...
Migration table
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
public function up()
{
Schema::create('users_containers', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
});
}