Skip to content

Commit

Permalink
update migrations and composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Jul 25, 2016
1 parent 8c84b43 commit 2f2e011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "yii2mod/yii2-cashier",
"description": "Yii2 Cashier provides an interface to Stripe's subscription billing services.",
"type": "yii2-extension",
"keywords": ["yii2", "extension"],
"keywords": ["yii2", "stripe", "billing"],
"license": "MIT",
"authors": [
{
Expand All @@ -11,7 +11,7 @@
}
],
"require": {
"yiisoft/yii2": ">=2.0.5",
"yiisoft/yii2": ">=2.0.8",
"yii2mod/yii2-behaviors": "*",
"stripe/stripe-php": "~3.0",
"nesbot/carbon": "~1.0",
Expand Down
10 changes: 5 additions & 5 deletions migrations/m160511_085953_init.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ public function up()
'stripeId' => $this->string()->notNull(),
'stripePlan' => $this->string()->notNull(),
'quantity' => $this->integer()->notNull(),
'trialEndAt' => Schema::TYPE_TIMESTAMP . ' NULL DEFAULT NULL',
'endAt' => Schema::TYPE_TIMESTAMP . ' NULL DEFAULT NULL',
'createdAt' => Schema::TYPE_TIMESTAMP . ' NULL DEFAULT NULL',
'updatedAt' => Schema::TYPE_TIMESTAMP . ' NULL DEFAULT NULL',
'trialEndAt' => $this->timestamp()->null(),
'endAt' => $this->timestamp()->null(),
'createdAt' => $this->timestamp()->null(),
'updatedAt' => $this->timestamp()->null()
], $tableOptions);

$this->addColumn('User', 'stripeId', $this->string());
$this->addColumn('User', 'cardBrand', $this->string());
$this->addColumn('User', 'cardLastFour', $this->string());
$this->addColumn('User', 'trialEndAt', Schema::TYPE_TIMESTAMP . ' NULL DEFAULT NULL');
$this->addColumn('User', 'trialEndAt', $this->timestamp()->null());
}

public function down()
Expand Down

0 comments on commit 2f2e011

Please sign in to comment.