fix column and max key length (#789)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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.
Reference in New Issue
Block a user