Add CurrentUser to SystemMethods #346

Merged
merged 4 commits into from Dec 14, 2012

Conversation

Projects
None yet
2 participants
Contributor

daniellee commented Dec 7, 2012

Partially implemented #308 by adding CurrentUser to SystemMethods and implementing it for SqlServer and Postgres. It doesn't seem to be possible for MySql but should be possible to add for other database types.

This pull request also covers #316 by implementing CurrentUTCDateTime for Postgres. And the last change was adding an implementation of CurrentDateTime for MySql.

daniellee added some commits Nov 2, 2012

@daniellee daniellee Add CurrentUTCDateTime SystemMethod to Postgres 99d3e87
@daniellee daniellee New CurrentUser SystemMethod and implemented for Postgres
Uses the current_user function in Postgres as the the default value.
d24c500
@daniellee daniellee Implemented CurrentDateTime SystemMethod for MySql
Using the CURRENT_TIMESTAMP function as default value.
70e5f83
@daniellee daniellee Implemented CurrentUser SystemMethod for SqlServer
Added tests for the other SystemMethods as well.
756cc1f

tommarien was assigned Dec 14, 2012

@tommarien tommarien added a commit that referenced this pull request Dec 14, 2012

@tommarien tommarien Merge pull request #346 of daniellee/systemmethods
# By Daniel Lee
# Via Daniel Lee
* pr/n346_daniellee:
  Implemented CurrentUser SystemMethod for SqlServer
  Implemented CurrentDateTime SystemMethod for MySql
  New CurrentUser SystemMethod and implemented for Postgres
  Add CurrentUTCDateTime SystemMethod to Postgres
af884cc

@tommarien tommarien merged commit 756cc1f into fluentmigrator:master Dec 14, 2012

Owner

tommarien commented Dec 14, 2012

@daniellee Thanks, m8

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