Comments (4)
It would be a bit of guess work on what column is what fieldtype, but defaulting to text would be okay.
Especially if the Statamic PR for addons registering their own blueprints gets merged, then you can go in and make the tweaks in the CP blueprint builder.
from runway.
I've created a pull request for creating migrations from blueprints, it's pretty much ready to merge, just need to check over it again.
Would you mind opening another issue for the 'migration > blueprint' flow? As this one will be closed when the PR is merged.
from runway.
I was thinking about this the other day, nearly started a PR.
It would also be good to have a php please runway:blueprint Order
. Where the schema of the model could be mapped or best guessed to a fieldtype and generate a blueprint based on that.
Both are useful, because sometimes you already have an app with your migrations and models already existing, and other times on greenfield projects it would be good to use the blueprint builder to make the migration for you.
from runway.
Yeah that's a good idea. Didn't think about the other side of it.
from runway.
Related Issues (20)
- Belongs to relationship does not save when editing from a drawer
- Link Existing button not working for Runway custom resources.
- Link Existing button not working for Runway custom resources. HOT 1
- MorphToMany relationships not displaying in front end. HOT 4
- RunwayRoutes trait throws a "Maximum call stack size" exception HOT 8
- ResourceController::getPrimaryColumn(): Return value must be of type string, null returned HOT 3
- PublishForm overwriting values in nested/stacked context HOT 2
- Augmentation N+1 query issue on frontend HOT 5
- Upgrade created empty blueprints HOT 3
- Listing models is slow HOT 7
- Has Many relationship seems to have broke from v5 -> v6 HOT 11
- Resource listing sort order is not applied correctly HOT 1
- Accessing a runway model from a non-runway collection HOT 2
- User column view preferences interfere with Runway finding custom primaryKey HOT 4
- Generated blueprint error on Float values
- Empty response for Assets on entry view route HOT 2
- Not compatible with statamic/eloquent-driver HOT 1
- N+1 queries in ResourceActionController HOT 1
- Model accessors shouldn't be orderable in listing table
- CP Nav Item outside of Content Section when using Translations
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 runway.