Comments (25)
@joost @Catchpowle @anthony-ism
Since March 10, 2016, it is possible to use emoji reactions on comments. Please use the 👍 reaction to show your interest instead of commenting "+1". This saves everyone in the thread a notification. If you want to get updates on the issue in the future, you can use the "Subscribe" button. Thank you ! 😄
from cli.
@sushantdhiman I think the command sequelize db:drop
must add IF EXISTS
;
from cli.
PRs are welcome :)
from cli.
Has anything been done on adding these? At present this is the only thing(s) stopping me from using sequelize in my companies project.
from cli.
sequelize db:create
should have support for IF NOT EXISTS
as a flag --if-not-exists
from cli.
I also think that this feature would be very helpful.
from cli.
Hahaha.. I also would love to see this feature. 👍
from cli.
@Kae2312 are you just randomly commenting +1 on issues :), its already available in v3.0
from cli.
@itsashis4u There is an issue for this problem: #629.
@juliocanares There is an issue for this problem: #599
from cli.
Hi Cesar,
I agree :) In fact I actually created a ticket for that some time ago (as you have already seen).
The first step would be a PR for the sequelize core which adds the respective queries (as this is currently not implemented). I'd assume that this is fairly easy, but I'm not entirely sure. Once the core supports something like sequelize.createDatabase
and sequelize.dropDatabase
we can add the stuff to the CLI. This basically means, it would be necessary to add another key value pair here:
https://github.com/sequelize/cli/blob/master/lib/tasks/db.js#L81
from cli.
Oh, I completely forgot about that. I'll take a look, sounds good.
from cli.
Would love this. Does a ticket need to be opened at sequelize
proper for adding sequielize.createDatabase
and sequelize.dropDatabase
?
from cli.
Hm, could not harm, though this ticket might be good enough already
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
👍
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
+1
from cli.
Related Issues (20)
- 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 4
- 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
- Incompatibility Error with [email protected] and Node.js 21.7.3 HOT 2
- Error: Dialect needs to be explicitly supplied as of v4.0.0 HOT 2
- npx sequelize-cli db:migrate command don't read the environment variables with PM2 HOT 2
- ERROR: Error reading "config\config.js". Error: undefined. Migracion con sequelize-cli HOT 6
- Dialect options being ignored for mssql named instance
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.