Comments (3)
Thanks for the feedback. Sounds like a feature request and a bug. Let me make sure I am understanding…
First, Blueprint is correctly generating the proper data types for columns in the migration and relationship in the model. However, it's not generating the foreign key constraint in the migration. Is this correct?
If so, this is currently the expected behavior. Blueprint does not generate constraints, indexes, etc. Only the columns.
Second, due to Blueprint generating multiple migrations so quickly, the timestamps aren't incrementing. Ideally, these timestamps should be sequenced to match their order in the draft.yaml
file to ensure any previous dependent data exists.
This is indeed a bug and I'll retag it in a separate issue and get a patch out in the next few days.
from blueprint.
That's cool.
from blueprint.
Cool. I'll tag this for the sequencing bug.
Feel free to open a new issue requesting the foreign key and index generation.
from blueprint.
Related Issues (20)
- Separated enum values are not working well HOT 1
- Support for multiple `send` key items for controllers HOT 10
- Add type hints to event classes
- Support for constructor property promotion
- Generate Laravel Nova Resources HOT 1
- Update PHPUnit test generation for PHPUnit 10
- 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
- belongsToMany Foreign UUID not working. HOT 18
- Add in already on going project HOT 4
- Plural route naming convention as default to match Laravel docs 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.