cli
cli copied to clipboard
The Sequelize CLI
I just started using sequelize cli, having moved over from using PHP migrations. I was surprised to find that it doesn't seem possible to apply/undo a single migration file at...
The CLI should support rails like migration generation á la: ``` sequelize migration:create --name=create-products ``` Which generates a new migration with a corresponding scaffold: ``` module.exports = { up: function(migration,...
Version: 3.0.0 Usage scenario: We're using sequelize to do some automatic migration on our servers, by basically creating some default tables and values. For this we're using migration:generate and seed:generate....
Offending line: https://github.com/sequelize/cli/blob/master/lib/helpers/init-helper.js#L76 Needs to use platform aware directory separators. Using `sequelize init` on Windows results in a broken `models/index.js` file.
It should be possible to specify UUID, BIGINT etc with custom name for primary key ```bash $ sequelize model:generate --name User --attributes ID:bigint:primary ``` ```js { type: Datatypes.BIGINT, primaryKey: true...
Hi! I'm having a minor issue related to the encoding of the files generated by commands like `db:seed:create`, for an example. As they aren't utf-8, when I include strings like...
it would be nice to be able to specify a "migrationStorageTableSchema": "sequelize_meta" in the config that would be honored. PR coming.
I'm setting up a new project with `sequelize` but am missing a safety feature that I had in `alembic` (migration library for Python's SQLAlchemy) and a Ruby gem that I...
I have an idea of splitting migrations and seed tables, configs and migration files. We can only set config file and migrations folder.