Skip to content
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

Setup a database migrations tool #10

Closed
DawoudIO opened this issue May 19, 2015 · 6 comments
Closed

Setup a database migrations tool #10

DawoudIO opened this issue May 19, 2015 · 6 comments

Comments

@DawoudIO
Copy link
Contributor

need a way to keep database scripts in sync as we add more features

@dferrans
Copy link

Phinx
This is a DATABASE migration tool writen in php
Is framework agnostic.
Is is realy easy to manage migrations:
URL: http://docs.phinx.org/en/latest/

Composer File:

{
    "require": {
       "robmorgan/phinx": "dev-master"
    }
}

@DawoudIO
Copy link
Contributor Author

I just looked at https://phinx.org/ and it is cool, the only issue i see with it is that you need a command line system setup to migrate and most of the CRM users will not have than

@DawoudIO DawoudIO added the ready label Feb 10, 2016
@DawoudIO
Copy link
Contributor Author

@crossan007 this is done correct?

@DawoudIO DawoudIO added this to the 2.0.0 milestone Feb 10, 2016
@crossan007
Copy link
Contributor

I'm not sure I'd say it's "Done."

Our current upgrade method looks like this:

  • update the install.sql
  • validate the install.sql against the previous version of install, and add any changes to the update.sql files

These update files are then applied by the SystemService as part of a database restore, or upon login

@crossan007
Copy link
Contributor

It works, but could be improved if/when we move to ORM

@crossan007
Copy link
Contributor

This is working. Closing ticket.

@crossan007 crossan007 removed the ready label Feb 27, 2016
This was referenced Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants