-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,360 additions
and
299 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
config/Migrations/20151014185330_create_organizations_owners.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreateOrganizationsOwners extends AbstractMigration | ||
{ | ||
/** | ||
* Change Method. | ||
* | ||
* More information on this method is available here: | ||
* http://docs.phinx.org/en/latest/migrations.html#the-change-method | ||
* @return void | ||
*/ | ||
public function change() | ||
{ | ||
$table = $this->table('organizations_owners'); | ||
$table->addColumn('organization_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('user_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
config/Migrations/20151014200927_create_organizations_members.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreateOrganizationsMembers extends AbstractMigration | ||
{ | ||
/** | ||
* Change Method. | ||
* | ||
* More information on this method is available here: | ||
* http://docs.phinx.org/en/latest/migrations.html#the-change-method | ||
* @return void | ||
*/ | ||
public function change() | ||
{ | ||
$table = $this->table('organizations_members'); | ||
$table->addColumn('organization_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('user_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.