Comments (18)
This PR addresses the issue.
from blueprint.
Could you pull from master
and see if it work. A PR was recently merged that may address this...
from blueprint.
Thanks Jason, will give it a try and thanks for Blueprint!
from blueprint.
sorry, nope, it is still not working, just tried master. :(
from blueprint.
Ok. @rcrosbourne is this something your PR might have fixed?
from blueprint.
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:
from blueprint.
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.
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.
from blueprint.
UPDATE:
It worked with the use_constraints set to false:
from blueprint.
I guess I can use it like this, thanks so much @jasonmccreary
from blueprint.
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.
Yea I will take a look at it.
from blueprint.
Any news about this?
from blueprint.
Nope.
from blueprint.
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.
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.
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.
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)
- Ability to add connection/table name in model HOT 2
- Model attribute called `cast` is being double-quoted in generated code HOT 2
- Enhanced Syntax and Behavior for `hasOneThrough` and `hasManyThrough` Relationships in Laravel's Eloquent ORM HOT 4
- Natural Keys For relationships HOT 9
- Global package so I can use it like Laravel pint HOT 3
- Add `HasUuids` trait when Model has `id uuid primary` HOT 3
- A colon cannot be used in an unquoted mapping value HOT 1
- String interpolation ${} in PHP8.2 warning HOT 3
- issue with Model Keys and Indexes HOT 3
- Failed Installing on newest Laravel HOT 5
- Change generator methods visibility from "private" to "protected" HOT 2
- Add in already on going project HOT 4
- Plural route naming convention as default to match Laravel docs HOT 1
- HasMany function generation: function name has full namespaced model name instead of only model name HOT 2
- Pluralization oddity HOT 5
- [Internal] Improve "Demo" Workflow
- request to add indexes example on the docs HOT 1
- Laravel 11 Compatibility HOT 4
- Wrong faker for string column type with max chars HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blueprint.