@automica first try i ran
php artisan migrate
As that did not go to plan, I tried
php artisan migrate:fresh
This resulted in all tables dropped and migrations created successfully. However:
in the list of migrated tables the table (tags_table) is not being migrated...
Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table (15.27ms)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table (14.35ms)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated: 2019_08_19_000000_create_failed_jobs_table (15.38ms)
Migrating: 2020_09_26_141602_create_posts_table
Migrated: 2020_09_26_141602_create_posts_table (8.91ms)
Migrating: 2020_09_26_142800_create_projects_table
Migrated: 2020_09_26_142800_create_projects_table (6.12ms)
Migrating: 2020_09_26_142926_create_assignments_table
Migrated: 2020_09_26_142926_create_assignments_table (6.69ms)
Migrating: 2020_09_28_113244_create_articles_table
And I get the error as in my original posts.
After I tried running the command
php artisan migrate:rollback
followed by
php artisan migrate
Migrating: 2020_09_28_113244_create_articles_table
Migration failed almost instantly got the error (sqlstate 42501)as above.
it seems to get stuck or something over the same table... (which worked fine before, so not really understanding why it gives me an error now)
After I tried :
php artisan migrate:refresh
Seems like it was going well :
Rolling back: 2020_09_26_142926_create_assignments_table
Rolled back: 2020_09_26_142926_create_assignments_table (7.09ms)
Rolling back: 2020_09_26_142800_create_projects_table
Rolled back: 2020_09_26_142800_create_projects_table (1.32ms)
Rolling back: 2020_09_26_141602_create_posts_table
Rolled back: 2020_09_26_141602_create_posts_table (1.96ms)
Rolling back: 2019_08_19_000000_create_failed_jobs_table
Rolled back: 2019_08_19_000000_create_failed_jobs_table (5.01ms)
Rolling back: 2014_10_12_100000_create_password_resets_table
Rolled back: 2014_10_12_100000_create_password_resets_table (4.83ms)
Rolling back: 2014_10_12_000000_create_users_table
Rolled back: 2014_10_12_000000_create_users_table (4.53ms)
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table (15.70ms)
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table (14.85ms)
Migrating: 2019_08_19_000000_create_failed_jobs_table
Migrated: 2019_08_19_000000_create_failed_jobs_table (16.07ms)
Migrating: 2020_09_26_141602_create_posts_table
Migrated: 2020_09_26_141602_create_posts_table (6.54ms)
Migrating: 2020_09_26_142800_create_projects_table
Migrated: 2020_09_26_142800_create_projects_table (12.22ms)
Migrating: 2020_09_26_142926_create_assignments_table
Migrated: 2020_09_26_142926_create_assignments_table (9.88ms)
Migrating: 2020_09_28_113244_create_articles_table
But ended up with same sqlstate error
I thought maybe to try and give a path :-) but that command did not exist...
php artisan migrate --path:/database/migrations/2020_10_01_103530_create_tags_table.php