-
Notifications
You must be signed in to change notification settings - Fork 8
Used uuid as doctrine-identifier #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0b41389
to
50c7799
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So there was an ID and a UUID column before?
|
||
#### Identifier of tasks and executions | ||
|
||
The `id` field has be removed in favour of the `uuid`. This field is of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
been
* Disable foreign keys checking by running this query: | ||
`set foreign_key_checks=0;` | ||
* Run the queries from `doctrine:schema:update` | ||
* Enable back foreign key checking with : `set foreign_key_checks=1;` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really enough? Does mysql regenerate new UUIDs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the uuids are there. the id was additionally generated before.
#### Identifier of tasks and executions | ||
|
||
The `id` field has be removed in favour of the `uuid`. This field is of | ||
type `guid` and can be used before flush. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it 😃
@@ -44,4 +44,14 @@ public function create($className) | |||
|
|||
return $this->handler[$className]; | |||
} | |||
|
|||
/** | |||
* Returns all known handler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handlers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be handlers in general, shouldn't it? Don't know if it is worth the BC break to rename.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
until now it shouldn`t be a bc-break this method is new.
50c7799
to
a0549bc
Compare
@danrot thanks for review |
This PR removes the additional id property of task and execution. The uuid can be used earlier because it will be generated during construct.