@yaelahrep Please share your migration file, there is many things could cause this error. Let's make sure it's not in the migration
Oct 24, 2022
9
Level 3
Illuminate\Database\QueryException
I'm trying to migrate a table in database and this table isn't exists there but getting this error:
SQLSTATE[HY000]: General error: 1813 Tablespace for table '`betterhorizon`.`subscriptions`' exists. Please DISCARD the tablespace before IMPORT (SQL: create table `subscriptions` (`id` bigint unsigned not null auto_increment primary key, `month` int not null, `price` double(8, 2) not null, `status` tinyint not null default '1', `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
Level 102
@mahsanr44 Sounds like it was only deleted in the editor, but not on disk. https://stackoverflow.com/a/24107982/1305117
1 like
Please or to participate in this conversation.