Error Magic Forms in database table

Magic Forms was forked after the original plugin was abandoned and removed.
(Magic Forms plugin - October CMS)

I used it in some projects. I don’t remember I ran the php artisan project:sync command but
this morning I added a new plugin (not Magic Forms) to a project and tried to sync, but the migration failed:

Rollback failed! Reason: "SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'blakejones_magicforms_records' already exists (SQL: create table `blakejones_magicforms_records` (`id` int unsigned not null auto_increment primary key, `form_data` text null, `ip` varchar(255) null, `deleted_at` timestamp null, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci' engine = InnoDB)"
  1. How to solve this error

  2. How to deal with situations like this where plugins are used in projects and are removed from the marketplace afterwards.

Hi @jamesray2

This was caused by a bug in this plugin. The table names were not renamed and so the new one blocks the old one. I am pretty sure it was fixed in a recent release.

1 Like