-
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
212 changed files
with
15,095 additions
and
11,826 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
./tmp/* | ||
./logs/* | ||
tmp/* | ||
logs/* | ||
.idea/* | ||
*~ | ||
composer.lock | ||
|
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
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
18 changes: 18 additions & 0 deletions
18
config/Migrations/20150916173706_modify_gender_to_boolean.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,18 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class ModifyGenderToBoolean 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('users'); | ||
$table->changeColumn('gender', 'boolean'); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
config/Migrations/20150918173125_modify_users_nullables.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,22 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class ModifyUsersNullables 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('users'); | ||
$table->changeColumn('universitie_id', 'integer', ['null' => true]); | ||
$table->changeColumn('gender', 'boolean' , ['null' => true]); | ||
$table->changeColumn('phone', 'string', ['limit' => 25, 'null' => true]); | ||
$table->changeColumn('firstName', 'string', ['limit' => 50, 'null' => true]); | ||
$table->changeColumn('lastName' , 'string' , ['limit' => 50, 'null' => true]); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
config/Migrations/20150922143329_add_is_validated_to_organizations.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,22 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class AddIsValidatedToOrganizations 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'); | ||
$table->addColumn('isValidated', 'boolean', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->update(); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
config/Migrations/20150922143348_add_is_rejected_to_organizations.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,22 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class AddIsRejectedToOrganizations 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'); | ||
$table->addColumn('isRejected', 'boolean', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->update(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
config/Migrations/20150922144719_modify_organizations_project_field_organization.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,18 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class ModifyOrganizationsProjectFieldOrganization 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_projects'); | ||
$table->renameColumn('organization', 'organization_id'); | ||
} | ||
} |
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,17 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
class DropProjectsUsers 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('projects_users'); | ||
$table->drop(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
config/Migrations/20150922195414_drop_projects_users_missions.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,17 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
class DropProjectsUsersMissions 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('projects_users_missions'); | ||
$table->drop(); | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
config/Migrations/20150922195649_create_projects_mentors.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,17 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
class CreateProjectsMentors 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('projects_mentors'); | ||
$table->create(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
config/Migrations/20150922195705_create_projects_contributors.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,18 @@ | ||
|
||
<?php | ||
use Migrations\AbstractMigration; | ||
class CreateProjectsContributors 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('projects_contributors'); | ||
$table->create(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
config/Migrations/20150922200227_add_project_id_to_projects_mentors.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,27 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
class AddProjectIdToProjectsMentors 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('projects_mentors'); | ||
$table->addColumn('project_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('user_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->update(); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
config/Migrations/20150922200605_add_user_id_to_projects_contributors.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,27 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
class AddUserIdToProjectsContributors 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('projects_contributors'); | ||
$table->addColumn('user_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('project_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->update(); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
config/Migrations/20150923145847_remove_projects_user_id_from_comments.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,19 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class RemoveProjectsUserIdFromComments 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('comments'); | ||
$table->removeColumn('projects_user_id'); | ||
$table->update(); | ||
} | ||
} |
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.