|
4 | 4 |
|
5 | 5 | use Doctrine\DBAL\Connection; |
6 | 6 | use Doctrine\DBAL\Schema\Table; |
| 7 | +use Doctrine\DBAL\Types\Type; |
7 | 8 | use Interop\Queue\InvalidDestinationException; |
8 | 9 | use Interop\Queue\PsrContext; |
9 | 10 | use Interop\Queue\PsrDestination; |
@@ -175,19 +176,19 @@ public function createDataBaseTable() |
175 | 176 | if ($this->getDbalConnection()->getDatabasePlatform()->hasNativeGuidType()) { |
176 | 177 | $table->addColumn('id', 'guid'); |
177 | 178 | } else { |
178 | | - $table->addColumn('id', 'binary', ['length' => 16]); |
| 179 | + $table->addColumn('id', Type::BINARY, ['length' => 16]); |
179 | 180 | } |
180 | 181 |
|
181 | | - $table->addColumn('human_id', 'string', ['length' => 36]); |
182 | | - $table->addColumn('published_at', 'bigint'); |
183 | | - $table->addColumn('body', 'text', ['notnull' => false]); |
184 | | - $table->addColumn('headers', 'text', ['notnull' => false]); |
185 | | - $table->addColumn('properties', 'text', ['notnull' => false]); |
186 | | - $table->addColumn('redelivered', 'boolean', ['notnull' => false]); |
187 | | - $table->addColumn('queue', 'string'); |
188 | | - $table->addColumn('priority', 'smallint'); |
189 | | - $table->addColumn('delayed_until', 'integer', ['notnull' => false]); |
190 | | - $table->addColumn('time_to_live', 'integer', ['notnull' => false]); |
| 182 | + $table->addColumn('human_id', Type::STRING, ['length' => 36]); |
| 183 | + $table->addColumn('published_at', Type::BIGINT); |
| 184 | + $table->addColumn('body', Type::TEXT, ['notnull' => false]); |
| 185 | + $table->addColumn('headers', Type::TEXT, ['notnull' => false]); |
| 186 | + $table->addColumn('properties', Type::TEXT, ['notnull' => false]); |
| 187 | + $table->addColumn('redelivered', Type::BOOLEAN, ['notnull' => false]); |
| 188 | + $table->addColumn('queue', Type::STRING); |
| 189 | + $table->addColumn('priority', Type::SMALLINT); |
| 190 | + $table->addColumn('delayed_until', Type::INTEGER, ['notnull' => false]); |
| 191 | + $table->addColumn('time_to_live', Type::INTEGER, ['notnull' => false]); |
191 | 192 |
|
192 | 193 | $table->setPrimaryKey(['id']); |
193 | 194 | $table->addIndex(['published_at']); |
|
0 commit comments