Comments (15)
Sounds like a good idea. I pinged you on IRC. Let's discuss it there!
from cli.
Have you been able to actually fork the repository?
from cli.
Hi, guys! Any updates on this?
from cli.
None from me, @maxmalov. I've been bogged down at work and also ran into some issues when I first gave it a shot. In my opinion, the best way to go about this would be to separate the actual migration logic (which is already sort of sequestered in the "helpers" directory) into some sort of sequelize-util repo or back into sequelize proper. This repo can then be a dependency of sequelize-cli, gulp-sequelize, grunt-sequelize, etc...
What do you think about this @sdepold? I'd be for rolling this functionality into sequelize proper. Performing migrations and managing models is inseparable from the ORM itself.
from cli.
Actually we will are currently planning to move the migration logic into a separate package.
from cli.
@sdepold, perfect! Is there an issue thread somewhere where we can collaborate on the API design for this move? I think Sequelize could benefit from some lightweight conventions, which I think you've already touched on by giving the CLI the ability to stub out models and migrations files a la Rails. I'd love to give my input as someone that's using Sequelize in a soon-to-be production environment.
from cli.
@sdepold Is there a way to use the gulp tasks in our own gulp file currently? This is a great feature and will simplify build processes.
from cli.
Can you describe the setup. Which tool should use your own gulp file?
from cli.
We want to run seeds on our test database for testing, and to run every time before Travis runs. We have a series of functions that run in order and the seed:create command is one.
For now just using a gulp plugin to run commands on shell.
from cli.
So the gulpfile itself is here https://github.com/sequelize/cli/blob/master/lib/gulpfile.js
from cli.
And the task is defined here https://github.com/sequelize/cli/blob/master/lib/tasks/seed.js#L21-L47
from cli.
You might be able to load the gulpfile and to use the respective task. but I'm not entirely sure how hard that is
from cli.
Has anyone managed to run any of the sequelize tasks from their local gulpfile?
This would be very useful, but at the minute I see is it blocked by the arg creating code in the bin/sequelize file.
from cli.
AFAIK nothing happened here.
from cli.
from cli.
Related Issues (20)
- Error on running db: migrate with Node 18.17.9 HOT 1
- Model.associate adding new columns
- Proposal: Controller Generation in Sequelize
- Tests are stuck HOT 5
- postgres: db:create should not fail if the database does exist
- BulkInsert "relation does not exist" in migration script
- const model = require(path.join(__dirname, file)).default( ^ TypeError: require(...).default is not a function
- const model = require(path.join(__dirname, file)).default( ^ TypeError: require(...).default is not a function HOT 1
- Sequelize CLI Fails to Authenticate with Postgres DB Containing a ':' in Password HOT 3
- CLI is not taking default env like node latest versions have (20.8.0)
- SequelizeMeta structure incompatible with SingleStore/memsql HOT 2
- Problem running migrations with yarn
- When on typescript project, sequelize-cli still generates javascript files. HOT 3
- Running migrations, on Azure database HOT 1
- Seeders state in database with using url option
- Migration undo command didn't work correctly. HOT 1
- where condition in literal HOT 1
- nested dependency es5-ext has a security vulnerability (low) and needs update HOT 1
- Subsequent migrations fail after running db:migrate:schema:timestamps:add command
- Please install sqlite3 package manually
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 cli.