Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Solving the problem of table prefix error reporting #75

Merged
merged 2 commits into from
Jan 22, 2020
Merged

Solving the problem of table prefix error reporting #75

merged 2 commits into from
Jan 22, 2020

Conversation

xiaoxuan6
Copy link

PR Naming convention

[FEATURE/FIX/REFACTOR/README] Your PR

Solving the problem of table prefix error reporting

Issue or feature explanation

SQLSTATE[42S02]: Base table or view not found: 1146 Table 't_t_ecrm.t_address' doesn't exist (SQL: select count(*) as aggregate from t_t_ecrm.t_address)

Proposed solution/change

   if(config('database.connections.mysql.prefix'))
    {
        config(['database.connections.mysql.prefix' => '']);
        \Illuminate\Support\Facades\DB::purge();
    }

@QuintenJustus QuintenJustus merged commit 56a438d into Protoqol:master Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants