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

Fixed migration issue with db table prefix #195

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

reedknight
Copy link
Contributor

Faced issue while executing migrations. Identified that in some migrations, DB::statement is being used and when DB Table Prefix is configured in the config/database.php file, it is not building the correct table names in those statements.

For the fix, the DB::getTablePrefix() is appended to all the places where the table name is being used as a direct statement.

Kindly accept PR or share feedback for corrections if required.

@codecov
Copy link

codecov bot commented Aug 17, 2020

Codecov Report

Merging #195 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             develop      #195   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       303       303           
===========================================
  Files             25        25           
  Lines            822       848   +26     
===========================================
+ Hits             822       848   +26     
Impacted Files Coverage Δ Complexity Δ
src/Traits/CartPay.php 100.00% <0.00%> (ø) 24.00% <0.00%> (ø%)
src/Traits/HasGift.php 100.00% <0.00%> (ø) 6.00% <0.00%> (ø%)
src/Traits/HasWallet.php 100.00% <0.00%> (ø) 21.00% <0.00%> (ø%)
src/Traits/CanConfirm.php 100.00% <0.00%> (ø) 15.00% <0.00%> (ø%)
src/Traits/CanExchange.php 100.00% <0.00%> (ø) 8.00% <0.00%> (ø%)
src/Services/CommonService.php 100.00% <0.00%> (ø) 21.00% <0.00%> (ø%)
src/Services/WalletService.php 100.00% <0.00%> (ø) 19.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03b9da6...3519003. Read the comment docs.

@rez1dent3 rez1dent3 self-requested a review August 17, 2020 19:41
@rez1dent3
Copy link
Member

@reedknight @cispl-shaswatad Thanks you. I ran unit testing. I will release tomorrow

@rez1dent3 rez1dent3 mentioned this pull request Aug 17, 2020
@rez1dent3 rez1dent3 merged commit 749acb4 into bavix:develop Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants