Giter Site home page Giter Site logo

Add db:create and db:drop tasks about cli HOT 25 CLOSED

sequelize avatar sequelize commented on August 24, 2024 37
Add db:create and db:drop tasks

from cli.

Comments (25)

edorgeville avatar edorgeville commented on August 24, 2024 21

@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.

juliocanares avatar juliocanares commented on August 24, 2024 21

@sushantdhiman I think the command sequelize db:drop must add IF EXISTS;

from cli.

sdepold avatar sdepold commented on August 24, 2024 3

PRs are welcome :)

from cli.

Epyon616 avatar Epyon616 commented on August 24, 2024 3

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.

itsashis4u avatar itsashis4u commented on August 24, 2024 3

sequelize db:create should have support for IF NOT EXISTS as a flag --if-not-exists

from cli.

elliotsabitov avatar elliotsabitov commented on August 24, 2024 2

I also think that this feature would be very helpful.

from cli.

nicholaswagner avatar nicholaswagner commented on August 24, 2024 1

Hahaha.. I also would love to see this feature. 👍

from cli.

sushantdhiman avatar sushantdhiman commented on August 24, 2024 1

@Kae2312 are you just randomly commenting +1 on issues :), its already available in v3.0

from cli.

Telokis avatar Telokis commented on August 24, 2024 1

@itsashis4u There is an issue for this problem: #629.

@juliocanares There is an issue for this problem: #599

from cli.

sdepold avatar sdepold commented on August 24, 2024

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.

cesarandreu avatar cesarandreu commented on August 24, 2024

Oh, I completely forgot about that. I'll take a look, sounds good.

from cli.

anthonator avatar anthonator commented on August 24, 2024

Would love this. Does a ticket need to be opened at sequelize proper for adding sequielize.createDatabase and sequelize.dropDatabase?

from cli.

sdepold avatar sdepold commented on August 24, 2024

Hm, could not harm, though this ticket might be good enough already

from cli.

sladebot avatar sladebot commented on August 24, 2024

+1

from cli.

sadaf2605 avatar sadaf2605 commented on August 24, 2024

+1

from cli.

jackycute avatar jackycute commented on August 24, 2024

+1

from cli.

derrandz avatar derrandz commented on August 24, 2024

👍

from cli.

joaodiogocosta avatar joaodiogocosta commented on August 24, 2024

+1

from cli.

juniorplenty avatar juniorplenty commented on August 24, 2024

+1

from cli.

joost avatar joost commented on August 24, 2024

+1

from cli.

Catchpowle avatar Catchpowle commented on August 24, 2024

+1

from cli.

anthony-ism avatar anthony-ism commented on August 24, 2024

+1

from cli.

mmahalwy avatar mmahalwy commented on August 24, 2024

+1

from cli.

dorothythurston avatar dorothythurston commented on August 24, 2024

+1

from cli.

itsMattShull avatar itsMattShull commented on August 24, 2024

+1

from cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.