cli
cli copied to clipboard
The Sequelize CLI
## Issue Description So, on running the command `npx sequelize-cli db:migrate:undo`, the command gives an error(screenshot is attached below) Also, the record does not get unapplied from `sequelize_meta` table, so...
### Pull Request check-list _Please make sure to review and check all of these items:_ - [ ] Does `npm run test` pass with this change (including linting)? - [x]...
## What you are doing? ```js yarn sequelize-cli db:migrate ``` ## What do you expect to happen? _Successful command run_ ## What is actually happening? _Command fails, as Sequelize CLI...
### Pull Request check-list _Please make sure to review and check all of these items:_ - [ ] Does `npm run test` pass with this change (including linting)? - [...
There has been a lot of discussion around Babel transforms in #112 for years and there doesn't seem to be much progress since babel is fairly environment/team specific in its...
## What you are doing? Trying to load models with models/index.js doesn't work with ES6 modules activated with `"type": "module"` ```js const basename = path.basename(__filename); // {...} const model =...
As suggested by @PascalPflaum [Collaborator at Umzug], I'm re-opening this issue from `umzug`s repo: In rails, generating migrations will also generate an .sql file to be used with SQL. E.g,...
Using this config [provided here](https://github.com/sequelize/cli/tree/main/docs): ``` { "production": { "use_env_variable":"DB_CONNECTION_STRING", "dialect":"mysql", "ssl": true, "dialectOptions": { "ssl": true } } } ``` I receive this error: `ERROR: SSL profile must be...
Following up on https://github.com/sequelize/cli/pull/987 sequelize-cli v6 uses an `import` wrapper to support ESM. For sequelize-cli v7, which drops node 10, please support ESM natively: * use native `import` instead of...
## What you are doing? I use the `sequelize` command to generate models and migrations, for example: ```sh sequelize model:create --name User --attributes name:string,state:boolean,birth:date,card:integer,role:enum:'{Admin,Guest}' ``` ## What do you expect...