Migrations #70

Merged
merged 29 commits into from Mar 22, 2013

Projects

None yet

3 participants

@davidw

This implements a migration system, in combination with some changes in ChicagoBoss itself.

davidw and others added some commits Feb 6, 2013
@davidw davidw Added a create_table function for Postgres, with the beginnings of a …
…way to define columns.
d729e64
@davidw davidw Let's use non-SQL specific column types, like Rails. cd5520e
@davidw davidw Merge remote-tracking branch 'upstream/master' into migrations 5348747
@davidw davidw Added integer and timestamp. 394f833
@davidw davidw Added migrate and table_exist functions. ec90865
@davidw davidw Added table_exist and get_migrations_table - the latter fetches the
table data without fiddling around pretending to be any sort of
"type".
4aeb83d
@davidw davidw Added some more types, table_exists, create_table, get_migrations_table. 93128e2
@davidw davidw Merge remote-tracking branch 'upstream/master' into migrations
Conflicts:
	src/boss_db.erl
d632f91
@davidw davidw A bit of formatting. f4a7110
@davidw davidw Added a migration_done function to write to the migrations table that…
… the migration in question has been successfully completed.
4dab059
@davidw davidw Merge branch 'master' of git://github.com/evanmiller/boss_db into mig…
…rations
58ec02a
@davidw davidw Expose migrate/2, which is used in boss_files to redo a specific migr…
…ation. Print information about running migrations.
252faa0
@davidw davidw Merge branch 'master' of git://github.com/evanmiller/boss_db into mig…
…rations
75d8dc1
@ngaranko ngaranko Updated migration_done to accept direction (up/down). And Bit of code…
… formating
f6e9091
@ngaranko ngaranko Fixed funcitons arity 558d35d
@davidw davidw Merge pull request #1 from ngaranko/migrations
Minor update to migration_done
64f44f3
@ngaranko ngaranko Fixed mysql and psql adapters 913594b
@davidw davidw Merge pull request #2 from ngaranko/migrations
Fixed mysql and psql adapters
69eba76
@davidw davidw Direction is not saved in the schema_migrations table. a1f7415
@davidw davidw Merge branch 'master' of git://github.com/evanmiller/boss_db into mig…
…rations
be26802
@davidw davidw Use epgsql master to get float arrays in Postgres. d5e6528
@davidw davidw Merge branch 'master' into migrations efc5447
@davidw davidw Merge branch 'master' of git://github.com/evanmiller/boss_db into mig…
…rations
4c1d23e
@davidw davidw Added some code to show a better error message on failure. 705c8e4
@davidw davidw Ensure that migration name input is an atom. a6fd34f
@davidw davidw Merge branch 'master' of git://github.com/evanmiller/boss_db into mig…
…rations

Conflicts:
	rebar.config
6ac7fd5
@evanmiller

Looks fine to me so far, but please add documentation. I think a "Migrations" section in README.md would be appropriate.

@davidw

I'm happy to write up some documentation. I'm not quite sure where the best place for it is though:

  • boss_db does not have the boss_files functions to generate migrations and run them from files.
  • Chicago Boss's API docs seem ... not quite right. These are not API's that you'd use in the application itself, normally.

Maybe the best place is to start a wiki page and then move from there as needs be?

@evanmiller

Everything looks OK, but my one last request is to choose a particular epgsql commit to list in deps. Depending on a foreign master is likely to cause problems in the future.

@evanmiller evanmiller referenced this pull request in ChicagoBoss/ChicagoBoss Mar 21, 2013
Merged

Migrations #224

@davidw

Don't know if it notified you, but I added a specific version for epgsql.

@evanmiller evanmiller merged commit d68b333 into ErlyORM:master Mar 22, 2013
@evanmiller

Great, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment