Skip to content

[7.x] Add uuid change support in migrations#32316

Merged
taylorotwell merged 1 commit into
laravel:7.xfrom
mathieutu:patch-5
Apr 9, 2020
Merged

[7.x] Add uuid change support in migrations#32316
taylorotwell merged 1 commit into
laravel:7.xfrom
mathieutu:patch-5

Conversation

@mathieutu

@mathieutu mathieutu commented Apr 9, 2020

Copy link
Copy Markdown
Contributor

Hi,

For now, we can't use change() for an uuid column:

Unknown column type "uuid" requested.

Actually this is just because DBAL reference this type as guid:
https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/reference/types.html#guid

I've added the conversion in the dedicated method, and this works like a charm.

If you're ok with that, I'll be happy to add tests for all grammars.

Thanks.

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