Skip to content

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

Merged
merged 1 commit into from
Nov 23, 2016

Conversation

wachterjohannes
Copy link
Member

This PR removes the additional id property of task and execution. The uuid can be used earlier because it will be generated during construct.

Copy link

@danrot danrot left a 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
Copy link

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;`
Copy link

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?

Copy link
Member Author

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.
Copy link

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.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handlers

Copy link

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.

Copy link
Member Author

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.

@wachterjohannes wachterjohannes force-pushed the enhancement/uuid-identifier branch from 50c7799 to a0549bc Compare November 23, 2016 07:03
@wachterjohannes
Copy link
Member Author

@danrot thanks for review

@wachterjohannes wachterjohannes merged commit 0f4d98b into master Nov 23, 2016
@wachterjohannes wachterjohannes deleted the enhancement/uuid-identifier branch November 23, 2016 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants