Skip to content

Commit

Permalink
Revert "feature: register migration for setting up the campaign type …
Browse files Browse the repository at this point in the history
…for existing campaigns (p2p)"

This reverts commit 986cfe1.
  • Loading branch information
kjohnson committed Aug 27, 2024
1 parent 986cfe1 commit 58fc598
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 58 deletions.
55 changes: 0 additions & 55 deletions src/Campaigns/Migrations/Tables/AddCampaignTypeColumn.php

This file was deleted.

3 changes: 2 additions & 1 deletion src/Campaigns/Migrations/Tables/CreateCampaignsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CreateCampaignsTable extends Migration
*/
public static function id(): string
{
return 'give-campaigns-create-give-campaigns-table';
return 'give-campaigns-create-give-core-campaigns-table';
}

/**
Expand Down Expand Up @@ -51,6 +51,7 @@ public function run()
$sql = "CREATE TABLE $table (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
form_id INT NOT NULL,
campaign_type VARCHAR(12) NOT NULL DEFAULT '',
campaign_title TEXT NOT NULL,
campaign_url TEXT NOT NULL,
short_desc TEXT NOT NULL,
Expand Down
2 changes: 0 additions & 2 deletions src/Campaigns/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Give\Campaigns;

use Give\Campaigns\Migrations\Tables\AddCampaignTypeColumn;
use Give\Campaigns\Migrations\Tables\CreateCampaignFormsTable;
use Give\Campaigns\Migrations\Tables\CreateCampaignsTable;
use Give\Framework\Migrations\MigrationsRegister;
Expand Down Expand Up @@ -45,7 +44,6 @@ private function registerMigrations(): void
give(MigrationsRegister::class)->addMigrations(
[
CreateCampaignsTable::class,
AddCampaignTypeColumn::class,
CreateCampaignFormsTable::class,
]
);
Expand Down

0 comments on commit 58fc598

Please sign in to comment.