-
-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sequelize CLI in 2021 #941
Comments
Please, add typescript support of migrations and seeds |
Hello, I don't know if i'm in the right place to post this question, sorry if it's not. I use Sequelize Migrations to handle database versioning and migrations are managed by SequelizeMeta table. At this moment, is it possible to add more information to SequelizeMeta table like a description of migrations changes (createTable, addConstraint, addColumn, ...) ? The idea behind this is to have more information like databasechangelog table from liquibase. |
Typescript implementation would be awesome! |
You can currently use typescript in migrations & seeders. But you need to first compile it to javascript. Here is the example
Need to change migrations & seeders path in .sequelizerc to point to dist folder
So before running migration first you need to run But yes native support will be the best solution. |
Is this happening? It would be nice to solve this one: #915 (comment) |
I'm still waiting |
It's almost 2022. How's the overhaul going? |
Unfortunately @papb did not have the time anymore for the overhaul. Therefore I will close this issue |
Sir, how did you generate your migrations in TS? |
@AnthonyLzq The sequelize-cli migration generate command creates migration in javascript, so you can't use that. You can either create it manually or you can write a custom script to generate typescript migration. |
For some reason this does not read dot env variables from transpiled js |
Hello everyone!
I will be doing a large overhaul of the Sequelize CLI this month. Stay tuned!
The text was updated successfully, but these errors were encountered: