Skip to content

Commit c1971e6

Browse files
authored
Fix elementIndexName column length (#123)
1 parent 8070bb2 commit c1971e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Entity/IndexQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class IndexQueue
3636
#[ORM\Column(type: 'string', length: 20)]
3737
private string $elementType;
3838

39-
#[ORM\Column(type: 'string', length: 10)]
39+
#[ORM\Column(type: 'string', length: 255)]
4040
private string $elementIndexName;
4141

4242
#[ORM\Column(type: 'string', length: 20)]

src/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function installIndexQueueTable(Schema $schema): void
9191
$queueTable = $schema->createTable(IndexQueue::TABLE);
9292
$queueTable->addColumn('elementId', 'integer', ['notnull' => true, 'unsigned' => true]);
9393
$queueTable->addColumn('elementType', 'string', ['notnull' => true, 'length' => 20]);
94-
$queueTable->addColumn('elementIndexName', 'string', ['notnull' => true, 'length' => 10]);
94+
$queueTable->addColumn('elementIndexName', 'string', ['notnull' => true, 'length' => 255]);
9595
$queueTable->addColumn('operation', 'string', ['notnull' => true, 'length' => 20]);
9696
$queueTable->addColumn('operationTime', 'bigint', ['notnull' => true, 'unsigned' => true]);
9797
$queueTable->addColumn('dispatched', 'bigint', [

0 commit comments

Comments
 (0)