fix column and max key length (#789)

This commit is contained in:
Kevin Papst
2019-05-14 23:09:33 +02:00
committed by GitHub
parent bbe1f9beda
commit 1903d6fb77
3 changed files with 3 additions and 3 deletions

View File

@@ -37,9 +37,9 @@ class Tag
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255, nullable=false)
* @ORM\Column(name="name", type="string", length=100, nullable=false)
* @Assert\NotBlank()
* @Assert\Length(min=2, max=255)
* @Assert\Length(min=2, max=100)
*/
private $name;

View File

@@ -32,7 +32,7 @@ class Version20190510205245 extends AbstractMigration
$tags = $schema->createTable('kimai2_tags');
$tags->addColumn('id', 'integer', ['length' => 11, 'autoincrement' => true, 'notnull' => true]);
$tags->addColumn('name', 'string', ['length' => 255, 'notnull' => true]);
$tags->addColumn('name', 'string', ['length' => 100, 'notnull' => true]);
$tags->addUniqueIndex(['name'], 'UNIQ_27CAF54C5E237E06');
$tags->setPrimaryKey(['id']);
}

Binary file not shown.