GithubHelp home page GithubHelp logo

thedragoncode / migrate-db Goto Github PK

View Code? Open in Web Editor NEW
142.0 7.0 3.0 275 KB

Easy data transfer from one database to another

License: MIT License

PHP 100.00%
database migration migrations migration-tool mysql pgsql mssql

migrate-db's Introduction

migrate-db's People

Contributors

actions-user avatar andrey-helldar avatar dependabot[bot] avatar jagdish-j-p avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

migrate-db's Issues

Command only insert data and not create migrations

  • Migrade DB Version: 1.2.0
  • PHP Version: 7.4.22
  • Laravel/Lumen Framework Version: 8.54.0
  • Database Driver & Version: PostgreSQL 13.2 and MariaDB 10.5.11

Description:

Command doesn't create migration for table. In code it only transfer data from one database to another. For example in my case from PostgreSQL to MariaDB. But MariaDB has empty DB and I thought it must create migration and then insert all data from PostgreSQL, but this command only insert data and that's all. It doesn't make sense..

Steps To Reproduce:

Execution result:

Show result
// paste result here

Support string IDs

Description:

In some cases databases can have string IDs like UUIDs or ULIDs. At the moment, these databases cannot be migrated.

Error: The "--schema-from" option does not accept a value.

  • Migrate DB Version: 1.0.1
  • PHP Version: 7.4.16
  • Laravel/Lumen Framework Version: 8.32.1

Description:

Hey, I'm getting the error 'The "--schema-from" option does not accept a value' when trying to run the command provided in the readme. It happens for both the schema-from and schema-to options with any value. I took a look at the source code, and I think it happens because the command signature is missing '=' after the option names, which controls whether the option accepts values or not.

protected $signature = 'db:migrate' . ' {--schema-from : Source connection name}' . ' {--schema-to : Target connection name}';

I have added the equals signs after the option names locally and confirmed the command works fine after that. It looks like this

protected $signature = 'db:migrate' . ' {--schema-from= : Source connection name}' . ' {--schema-to= : Target connection name}';

Would you be interested in a pull request with this fix?

Steps To Reproduce:

Install the package and run the command provided in the readme.

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.