anjanesh's avatar

anjanesh wrote a reply+100 XP

1mo ago

Checked it online - it was at cloudways.

anjanesh's avatar

anjanesh wrote a reply+100 XP

1mo ago

Nothing was changed in config/database.php - using default values.

anjanesh's avatar

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's avatar

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's avatar

anjanesh wrote a reply+100 XP

3mos ago

I didn't venture after that - this was a requirement from a client which wasn't executed. I guess I'll have to explore sending data to a KrayinCRM webhook and see how it turns out. But I have not heard of Laravel Wave till now.