Skip to content

Commit 7bfa280

Browse files
committed
[job-queue] Do not use autoincrement strategy for job unique table id.
1 parent 93ed25a commit 7bfa280

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
33
<entity name="Enqueue\JobQueue\Doctrine\Entity\JobUnique" table="enqueue_job_unique">
4-
<id name="name" type="string">
5-
<generator strategy="AUTO" />
4+
<id name="name" type="string" length="255">
5+
<generator strategy="NONE" />
66
</id>
77
</entity>
88
</doctrine-mapping>

pkg/job-queue/Schema.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
use Doctrine\DBAL\Connection;
66
use Doctrine\DBAL\Schema\Schema as BaseSchema;
77

8+
/**
9+
* @deprecated since 0.8, will be removed in 0.9
10+
*/
811
class Schema extends BaseSchema
912
{
1013
/**

0 commit comments

Comments
 (0)