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

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cncerp.crm_users' doesn't exist (Connection: mysql, SQL: alter table crm_users add url varchar(255) null) #52

Open
mindaugaskatinas opened this issue Feb 15, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mindaugaskatinas
Copy link

mindaugaskatinas commented Feb 15, 2024

  • Laravel CRM Version: 0.19.10
  • PHP Version: 8.2

Description:

On clean install (steps from offcial documentation) throws error while migrating 2024_02_15_172046_add_client_to_laravel_crm_deals_table :
Illuminate\Database\QueryException
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'cncerp.crm_users' doesn't exist (Connection: mysql, SQL: alter table crm_users add url varchar(255) null)

Steps To Reproduce:

Clean isntall on "Step 6. Run migrations:"

Thanks.

@andrewdrake andrewdrake self-assigned this Feb 19, 2024
@andrewdrake andrewdrake added the bug Something isn't working label Feb 19, 2024
@andrewdrake
Copy link
Contributor

Thanks for reporting, I will look into this. I haven't done too much testing with PHP 8.2 as yet.

@krestt
Copy link

krestt commented Mar 2, 2024

I did solved that issue. When you install, the installer ask you for table prefix to use or not. By default it is empty in installer, so he create all db tables without crm_ prefix. But in config file (config/laravel-crm.php) wherever is db_table_prefix, it uses "crm" ...
So I had just to remove the crm and live it as empty string ''

@mindaugaskatinas
Copy link
Author

Thanks. This "But in config file (config/laravel-crm.php) wherever is db_table_prefix, it uses "crm" ... So I had just to remove the crm and leave it as empty string'" worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants