GithubHelp home page GithubHelp logo

Comments (6)

numbata avatar numbata commented on June 25, 2024

Do you use mysql or postgresql?

from capistrano-db-tasks.

andreydeineko avatar andreydeineko commented on June 25, 2024

@numbata I am using MySQL

from capistrano-db-tasks.

numbata avatar numbata commented on June 25, 2024

@andreydeineko unfortunately, this option works only with postgresql now.
https://github.com/sgruhier/capistrano-db-tasks/blob/master/lib/capistrano-db-tasks/database.rb#L97

from capistrano-db-tasks.

andreydeineko avatar andreydeineko commented on June 25, 2024

@numbata This is really unfortunate. Thanks for info!

Is it because making it available for MySQL is a problem or there is another reason this option does not work with MySQL?

from capistrano-db-tasks.

numbata avatar numbata commented on June 25, 2024

@andreydeineko it is impossible for MySQL to do this in one dump command (like in PostgreSQL).
we should do something like:
mysqldump --ignore-table=db_name.table_name db_name && mysqldump --no-data db_name table_name. I don't know how to do this with current cap-db-tasks code easily.

from capistrano-db-tasks.

Jesus avatar Jesus commented on June 25, 2024

Looks like this was fixed on 9e8e760, the problem must be that you're using version 0.4 of capistrano-db-tasks.

But that's the latest version, @sgruhier would it be a good idea to publish 0.5 ?

UPDATE: Sorry, the commit I mentioned doesn't affect db_ignore_data_tables but db_ignore_tables. So this isn't fixed on master either.

from capistrano-db-tasks.

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.