GithubHelp home page GithubHelp logo

Comments (18)

rcrosbourne avatar rcrosbourne commented on June 30, 2024 2

This PR addresses the issue.

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

Could you pull from master and see if it work. A PR was recently merged that may address this...

from blueprint.

makzumi avatar makzumi commented on June 30, 2024

Thanks Jason, will give it a try and thanks for Blueprint!

from blueprint.

makzumi avatar makzumi commented on June 30, 2024

sorry, nope, it is still not working, just tried master. :(

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

Ok. @rcrosbourne is this something your PR might have fixed?

from blueprint.

makzumi avatar makzumi commented on June 30, 2024

I have found the issue (i think...) there's this method in the MigrationGenerator class that passes the type to the buildForeignKey method. BUT the type is hard coded, trying to figure out how to correct it:

image

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

You definitely aren't pulling from master as that code has changed. So it'd be good to ensure you have set your composer constraint to dev-master and run composer update.

Try again and see if it generates the "correct" code. Also, if not, disable use_constraints and see if it does (without the constraints of course).

from blueprint.

makzumi avatar makzumi commented on June 30, 2024

I switched to dev-master again, but I'm still seeing no uuid on the pivot tables, I still think it has to do with that hardcoded "id" in that method.

image

image

from blueprint.

makzumi avatar makzumi commented on June 30, 2024

UPDATE:
It worked with the use_constraints set to false:
image

from blueprint.

makzumi avatar makzumi commented on June 30, 2024

I guess I can use it like this, thanks so much @jasonmccreary

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

The other path should be supported.

@rcrosbourne, seems your PR missed the path for setting foreign UUID/ULID columns with constraints (i.e. use_constraints enabled). I'd appreciate if you could fix that path.

from blueprint.

rcrosbourne avatar rcrosbourne commented on June 30, 2024

Yea I will take a look at it.

from blueprint.

funder7 avatar funder7 commented on June 30, 2024

Any news about this?

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

Nope.

from blueprint.

funder7 avatar funder7 commented on June 30, 2024

No plan to merge the #661?
It seems ready. It's not a big problem to edit migrations manually, but if it's fixed...

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

As noted on the PR, it has some changes requested and like 46 commits which it difficult to review/trust. I plan to give more time to Blueprint after the release of Laravel 11. However, until then I don't have the time to wade through this PR unless the author can clean it up a bit.

from blueprint.

funder7 avatar funder7 commented on June 30, 2024

I understand, sorry I saw the commits, but didn't have time either to read all the comments. Anyway if this issue is easy to fix (I guess it is), would be opening a new PR just for it, be a solution?

from blueprint.

jasonmccreary avatar jasonmccreary commented on June 30, 2024

I welcome any PRs. It's easier on the maintainer if the changes are concise, have a well explained PR description, and contain passing tests.

from blueprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.