Skip to content

Commit

Permalink
refactor: table name
Browse files Browse the repository at this point in the history
  • Loading branch information
alaca committed Aug 26, 2024
1 parent 0ade3af commit c235cbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Campaigns/Repositories/CampaignRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function insert(Campaign $campaign): void
DB::query('START TRANSACTION');

try {
DB::table('give_core_campaigns')
DB::table('give_campaigns')
->insert([
'campaign_type' => $campaign->type,
'campaign_title' => $campaign->title,
Expand Down Expand Up @@ -101,7 +101,7 @@ public function update(Campaign $campaign): void
DB::query('START TRANSACTION');

try {
DB::table('give_core_campaigns')
DB::table('give_campaigns')
->where('id', $campaign->id)
->update([
'campaign_title' => $campaign->title,
Expand Down Expand Up @@ -183,7 +183,7 @@ public function prepareQuery(): ModelQueryBuilder
{
$builder = new ModelQueryBuilder(Campaign::class);

return $builder->from('give_core_campaigns')
return $builder->from('give_campaigns')
->select(
'id',
['campaign_type', 'type'],
Expand Down

0 comments on commit c235cbf

Please sign in to comment.