Laravel 重命名迁移文件夹中的文件后未迁移
Laravel not migrating after renaming files inside migration folder
在 laravel 中,当使用 cmd 创建迁移时,迁移文件夹中的文件被命名为 2014_10_2_0001_create_users_table.php
在我的迁移文件夹中,我在尝试更改名称后将其重命名并更改为示例 ausertable.php
至 运行 php artisan migrate:fresh
我收到消息
Dropped all tables successfully.
Migration table created successfully.
Nothing to migrate.
我试过 composer autoload 但没有用谢谢。
在Laravel中,所有迁移文件名必须具有以下结构:
%year%_%month%_%day%_%hour%%minutes%_name_of_class
并且 class 名称必须是:NameOfClass
.
在 laravel 中,当使用 cmd 创建迁移时,迁移文件夹中的文件被命名为 2014_10_2_0001_create_users_table.php
在我的迁移文件夹中,我在尝试更改名称后将其重命名并更改为示例 ausertable.php
至 运行 php artisan migrate:fresh
我收到消息
Dropped all tables successfully.
Migration table created successfully.
Nothing to migrate.
我试过 composer autoload 但没有用谢谢。
在Laravel中,所有迁移文件名必须具有以下结构:
%year%_%month%_%day%_%hour%%minutes%_name_of_class
并且 class 名称必须是:NameOfClass
.