Skip to content

Commit

Permalink
Merge pull request #316 from MaisonLogicielLibre/release-0.4
Browse files Browse the repository at this point in the history
Release 0.4
  • Loading branch information
Rignon Noël committed Oct 27, 2015
2 parents 73a22ae + 3d3f44a commit e6cc9b7
Show file tree
Hide file tree
Showing 164 changed files with 14,033 additions and 2,687 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@
*.mo binary
*.pdf binary
*.phar binary
*.otf binary
*.eot binary
*.svg binary
*.ttf binary
*.woff binary
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,21 @@
{
"type": "vcs",
"url": "https://github.com/MaisonLogicielLibre/API_SVN"
}
},
{
"type": "vcs",
"url": "https://github.com/simon-begin/cakephp-datatables"
}
],
"require": {
"php": ">=5.4.16",
"cakephp/cakephp": "~3.0",
"cakephp/cakephp": "3.1.1",
"mobiledetect/mobiledetectlib": "2.*",
"cakephp/migrations": "~1.0",
"cakephp/plugin-installer": "*",
"elboletaire/twbs-cake-plugin": "dev-master",
"mll/apisvn": "1.0-alpha"
"mll/apisvn": "1.0-alpha",
"simon-begin/cakephp-datatables": "dev-master"
},
"require-dev": {
"psy/psysh": "@stable",
Expand Down
58 changes: 58 additions & 0 deletions config/Migrations/20150928152452_create_application.php
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 config/Migrations/20150928152650_create_type_application.php
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 config/Migrations/20151014185330_create_organizations_owners.php
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 config/Migrations/20151014200927_create_organizations_members.php
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();
}
}
26 changes: 26 additions & 0 deletions config/Migrations/20151014201327_add_status_to_users.php
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();
}
}
23 changes: 23 additions & 0 deletions config/Migrations/20151015135936_create_permissions.php
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 config/Migrations/20151015140415_create_permissions_type_users.php
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();
}
}
18 changes: 18 additions & 0 deletions config/Migrations/20151015194529_drop_missions.php
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();
}
}
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');
}
}
64 changes: 64 additions & 0 deletions config/Migrations/20151015200815_create_mission.php
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 config/Migrations/20151016125133_create_missions_type_missions.php
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();
}
}
Loading

0 comments on commit e6cc9b7

Please sign in to comment.