-
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.
Merge pull request #316 from MaisonLogicielLibre/release-0.4
Release 0.4
- Loading branch information
Showing
164 changed files
with
14,033 additions
and
2,687 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 |
---|---|---|
|
@@ -34,3 +34,8 @@ | |
*.mo binary | ||
*.pdf binary | ||
*.phar binary | ||
*.otf binary | ||
*.eot binary | ||
*.svg binary | ||
*.ttf binary | ||
*.woff binary |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreateApplication 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('applications'); | ||
$table->addColumn('project_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('user_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('presentation', 'text', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('type_application_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('weeklyHours', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('startDate', 'date', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('endDate', 'date', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('accepted', 'boolean', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('archived', 'boolean', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
config/Migrations/20150928152650_create_type_application.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,23 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreateTypeApplication 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('type_applications'); | ||
$table->addColumn('name', 'string', [ | ||
'default' => null, | ||
'limit' => 255, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class AddStatusToUsers 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->addColumn('isAvailableMentoring', 'boolean', [ | ||
'default' => null, | ||
'null' => true, | ||
]); | ||
$table->addColumn('isStudent', 'boolean', [ | ||
'default' => null, | ||
'null' => true, | ||
]); | ||
$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreatePermissions 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('permissions'); | ||
$table->addColumn('name', 'string', [ | ||
'default' => null, | ||
'limit' => 255, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
config/Migrations/20151015140415_create_permissions_type_users.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 CreatePermissionsTypeUsers 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('permissions_type_users'); | ||
$table->addColumn('type_user_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('permission_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class DropMissions 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('missions'); | ||
$table->drop(); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
config/Migrations/20151015194759_rename_table_type_applications_to_type_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,18 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class RenameTableTypeApplicationsToTypeMissions 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('type_applications'); | ||
$table->rename('type_missions'); | ||
} | ||
} |
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,64 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreateMission 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('missions'); | ||
$table->addColumn('name', 'string', [ | ||
'default' => null, | ||
'limit' => 255, | ||
'null' => false, | ||
]); | ||
$table->addColumn('session', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('length', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('description', 'text', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('competence', 'text', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('internNbr', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('project_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('mentor_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('created', 'datetime', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->addColumn('modified', 'datetime', [ | ||
'default' => null, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
config/Migrations/20151016125133_create_missions_type_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,28 @@ | ||
<?php | ||
use Migrations\AbstractMigration; | ||
|
||
class CreateMissionsTypeMissions 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('missions_type_missions'); | ||
$table->addColumn('type_mission_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->addColumn('mission_id', 'integer', [ | ||
'default' => null, | ||
'limit' => 11, | ||
'null' => false, | ||
]); | ||
$table->create(); | ||
} | ||
} |
Oops, something went wrong.