Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Cachet 2.x to 3.x #4438

Open
TecSecret opened this issue Dec 9, 2024 · 4 comments
Open

Migrate Cachet 2.x to 3.x #4438

TecSecret opened this issue Dec 9, 2024 · 4 comments

Comments

@TecSecret
Copy link

How to migrate from cachet 2.x to 3.x without losing status page data currently?

According to the docs.cachethq.io documentation, the php artisan migrate command presents an error.

@jbrooksuk
Copy link
Member

@TecSecret thanks for checking out Cachet 3.x. Keep in mind that automatically migrating from 2.x to 3.x isn't completely finished yet.

Can you please provide the error you're seeing when running php artisan migrate? This will help us look into any specific issues you're facing.

@jerahl
Copy link

jerahl commented Dec 10, 2024

I am getting an error when migrating from 2.4.1 to 3.x as well.

INFO  Running migrations.

 2014_10_12_000000_create_users_table ................................................................................................. 2.08ms 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(255) not null, `email` varchar(255) not null, `email_verified_at` timestamp null, `password` varchar(255) 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:825
   821▕                     $this->getName(), $query, $this->prepareBindings($bindings), $e
   822▕                 );
   823▕             }
   824▕
 ➜ 825▕             throw new QueryException(
   826▕                 $this->getName(), $query, $this->prepareBindings($bindings), $e
   827▕             );
   828▕         }
   829▕     }

     +9 vendor frames

 10  database/migrations/2014_10_12_000000_create_users_table.php:22
     Illuminate\Support\Facades\Facade::__callStatic()
     +26 vendor frames

 37  artisan:13
     Illuminate\Foundation\Application::handleCommand()

@jbrooksuk
Copy link
Member

Can you please dump your migrations table?

@jerahl
Copy link

jerahl commented Dec 10, 2024

migrations.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants