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

Lara_Love's avatar

command create table between 2 tables

what is command create table between 2 tables ? i show it in picture

https://s2.uupload.ir/files/here_taje.png

0 likes
10 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102
php artisan make:migration "my awesome new table"

And just rename the timestamp part to be between those two migrations

Sinnbeck's avatar

@LoverToHelp Of how to rename a file? RIghtclick it and select "Rename". Change the date/time part with 2023_01_01_191559 and hit enter to save

Lara_Love's avatar

Thank you dear friend @Sinnbeck it's true . Now I understand what you mean. I was browsing the date in the table๐Ÿ˜„ ๐Ÿ˜„

Sinnbeck's avatar

But be aware that it only matters if you havent already migrated (or run php artisan migrate:fresh to start over)

Sinnbeck's avatar

The date part of the file just tells the migrator which order to run the files. Thats all. And it only runs those that havent been run already

Lara_Love's avatar

@Sinnbeck I always phpmyadmin I clear the tables and order php artisan migrate:refresh I run

Lara_Love's avatar

@Sinnbeck It gives an error and does not run. I need to clear the tables first / then run the command

Please or to participate in this conversation.