Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

osherdo's avatar

migration columns won't show on phpmyadmin

Hi I am trying to migrate data to my database but it's not going well. when trying to do this : php artisan migrate - it says : "nothing to migrate". Right now it shows only 3 columns: id created_at updated_at

here's my code:

public function up()
    {
        Schema::create('profiles', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
            $table->string('gender',5);
            $table->tinyInteger('age');
            $table->string('goals');
            $table->string('activityType');
            $table->string('expectations');  
            $table->rememberToken();
   
        });
    }

Please let me know what's wrong please?

Thanks in advance.

0 likes
2 replies
ChristopherSFSD's avatar
Level 4

It sounds like you may have edited a migration that you have already run.

You have a couple options. You can either refresh which will wipe out all records in your database ...

php artisan migrate:refresh

Or you can undo the changes to your migration and create a new migration.

1 like

Please or to participate in this conversation.