-
Notifications
You must be signed in to change notification settings - Fork 38
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
Implement Migrations #63
Comments
@marcelog do you want to provide some guidelines on how to do this? Do you have some input on this subject? |
@igaray as well? |
Such things are not small undertakings, a first approach might be to simply write migration scripts in SQL, and have the migration system merely manage which migrations have been run.
No:
|
@igaray I agree with all the items in the previous comment except for the following:
Rails migrations stores the current version of the database (along with all migrations that have been run) in a table inside the DB itself, which I think is a lot cleaner than having a separate file, since the version information can't be unattached from the DB. |
@elbrujohalcon @igaray A possible implementation could involve:
If the DB version is stored in a DB table then |
@jfacorro I like it, but I would let any code generation (number 2 in your list) for another issue. In this one I would just focus on letting devs write and execute migrations and providing something like |
@jfacorro On the other hand… I don't think any of the current functions on sumo will be actually used in migrations since all of them work with data and migrations are usually all about schema modifications. |
a'lla Ruby on Rails :)
The text was updated successfully, but these errors were encountered: