anjanesh wrote a reply+100 XP
1mo ago
anjanesh wrote a reply+100 XP
1mo ago
anjanesh started a new conversation+100 XP
1mo ago
When I ran php artisan migrate on my server why didn't it automatically run the last migration file ? Why did it try starting from the first one instead ? I checked the database - all but the last one were listed in the migrations table.
INFO Running migrations.
2014_10_12_000000_create_users_table ................................................................................................ 10.45ms FAIL
Illuminate\Database\QueryException
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'users' already exists (Connection: mysql, SQL: create table `users` (`id` bigint unsigned not null auto_increment primary key, `name` varchar(125) not null, `email` varchar(125) not null, `email_verified_at` timestamp null, `password` varchar(125) not null, `remember_token` varchar(100) null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:824
I had to resort to running php artisan migrate --path=/database/migrations/2026_03_04_080009_change_schema_tag_column_length_in_products_table.php on PROD.
anjanesh started a new conversation+100 XP
2mos ago
Not sure about how to go about doing this - just checking if this is technically possible.
New project in GitHub.
main branch has an empty/hello-world index.php file.
laravel branch has an entire Laravel 12 setup
wordpress branch has an entire WordPress setup. No .env here since its all in config.php
Can I setup 2 servers (or one server and 2 apps) where WordPress is running on the wordpress branch and Laravel is running on the laravel branch.
Can there be any collision ?
anjanesh wrote a reply+100 XP
3mos ago