Skip to content

Commit

Permalink
Remove unused table family_subscriptions
Browse files Browse the repository at this point in the history
Table was merged with `family_requests` within remp/crm#1681.

remp/crm#2094
  • Loading branch information
markoph committed Nov 5, 2021
1 parent 75cd177 commit 164dcaa
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

use Phinx\Migration\AbstractMigration;

class RemoveFamilySubscriptionsTable extends AbstractMigration
{
public function up()
{
$this->table('family_subscriptions')
->drop()
->update();
}

public function down()
{
$this->table('family_subscriptions')
->addColumn('family_request_id', 'integer', ['null' => false])
->addColumn('master_subscription_id', 'integer', ['null' => false])
->addColumn('slave_subscription_id', 'integer', ['null' => false])
->addColumn('type', 'string', ['null' => false])
->addColumn('created_at', 'datetime', ['null' => false])
->addForeignKey('family_request_id', 'family_requests')
->addForeignKey('master_subscription_id', 'subscriptions')
->addForeignKey('slave_subscription_id', 'subscriptions')
->create();
}
}

0 comments on commit 164dcaa

Please sign in to comment.