Skip to content

Commit

Permalink
Change size of fields + fixing migration files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Jun 4, 2015
1 parent 03d26b4 commit 356cc8b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 15 deletions.
26 changes: 13 additions & 13 deletions src/Chamilo/CoreBundle/Entity/TrackEDefault.php
@@ -1,4 +1,5 @@
<?php
/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Entity;

Expand All @@ -12,6 +13,16 @@
*/
class TrackEDefault
{

/**
* @var integer
*
* @ORM\Column(name="default_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue
*/
private $defaultId;

/**
* @var integer
*
Expand All @@ -36,14 +47,14 @@ class TrackEDefault
/**
* @var string
*
* @ORM\Column(name="default_event_type", type="string", length=20, nullable=false)
* @ORM\Column(name="default_event_type", type="string", length=255, nullable=false)
*/
private $defaultEventType;

/**
* @var string
*
* @ORM\Column(name="default_value_type", type="string", length=20, nullable=false)
* @ORM\Column(name="default_value_type", type="string", length=255, nullable=false)
*/
private $defaultValueType;

Expand All @@ -61,17 +72,6 @@ class TrackEDefault
*/
private $sessionId;

/**
* @var integer
*
* @ORM\Column(name="default_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $defaultId;



/**
* Set defaultUserId
*
Expand Down
Expand Up @@ -3,12 +3,13 @@

namespace Chamilo\CoreBundle\Migrations\Schema\V110;

use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;

/**
* Add branch
*/
class Version20150603142550 extends AbstractMigration
class Version20150603142550 extends AbstractMigrationChamilo
{
/**
* @param Schema $schema
Expand Down
Expand Up @@ -3,12 +3,13 @@

namespace Chamilo\CoreBundle\Migrations\Schema\V110;

use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;

/**
* Lp changes
*/
class Version20150603181728 extends AbstractMigration
class Version20150603181728 extends AbstractMigrationChamilo
{
/**
* @param Schema $schema
Expand Down
@@ -0,0 +1,29 @@
<?php
/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Migrations\Schema\V110;

use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;

/**
* track_e_default changes
*/
class Version20150604145047 extends AbstractMigrationChamilo
{
/**
* @param Schema $schema
*/
public function up(Schema $schema)
{
$this->addSql('ALTER TABLE track_e_default CHANGE default_event_type default_event_type VARCHAR(255) NOT NULL, CHANGE default_value_type default_value_type VARCHAR(255) NOT NULL');
}

/**
* @param Schema $schema
*/
public function down(Schema $schema)
{
$this->addSql('ALTER TABLE track_e_default CHANGE default_event_type default_event_type VARCHAR(20) NOT NULL COLLATE utf8_unicode_ci, CHANGE default_value_type default_value_type VARCHAR(20) NOT NULL COLLATE utf8_unicode_ci');
}
}

0 comments on commit 356cc8b

Please sign in to comment.