For example, if there is such a file
2016_06_21_200145_create_notes_table.php
, modify the content after I if the manual rename
200145
to modify the number of the execution
php artisan migrate
is in effect, but I do not know that such rules are not standardized.
Reply content:
For example, if there is such a file 2016_06_21_200145_create_notes_table.php
, modify the content after I if the manual rename 200145
to modify the number of the execution php artisan migrate
is in effect, but I do not know that such rules are not standardized.
Every time you execute PHP artisan migrate, the execution migrate file is logged to the Migrations table in the database, and you change the file name to create a re-created file.
If you want to modify the table after you create the table, you can change the table structure by 2016_06_21_222145_update_notes_table.php file.
Modifying the table structure multiple times requires adding the preceding date (that is, 2016_06_21_232145_update_notes_table20160621.php) to the table, so that you can change the structure of the tables several times.
It is important to note that the date and the number of random numbers to be modified are in sequence.