1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix table name in migration

This commit is contained in:
Joshua Dwire 2016-04-19 10:30:25 -04:00
parent 0fd39e5be0
commit b8ad27963e

View File

@ -46,11 +46,11 @@ class EnterprisePlan extends Migration
$single_account_ids = \DB::table('users')
->leftJoin('user_accounts', function ($join) {
$join->on('user_Accounts.user_id1', '=', 'users.id');
$join->orOn('user_Accounts.user_id2', '=', 'users.id');
$join->orOn('user_Accounts.user_id3', '=', 'users.id');
$join->orOn('user_Accounts.user_id4', '=', 'users.id');
$join->orOn('user_Accounts.user_id5', '=', 'users.id');
$join->on('user_accounts.user_id1', '=', 'users.id');
$join->orOn('user_accounts.user_id2', '=', 'users.id');
$join->orOn('user_accounts.user_id3', '=', 'users.id');
$join->orOn('user_accounts.user_id4', '=', 'users.id');
$join->orOn('user_accounts.user_id5', '=', 'users.id');
})
->whereNull('user_accounts.id')
->where(function ($query) {