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

Feature request: Being able to retrieve a version number from a database table #52

Closed
brunzefb opened this issue Nov 1, 2010 · 2 comments
Labels
feature A new feature (we all like those)

Comments

@brunzefb
Copy link

brunzefb commented Nov 1, 2010

Hi,

One thing I am missing is the ability to read a version number from an arbitrary table to make decisions if you need to upgrade:

public override Up()
{
int majorVersion;
int minorVersion;
Execute.ReadVersion("SELECT Major, Minor FROM ApplicationVersionTable WHERE AppID='MyApp'", out majorVersion, out minorVersion);
if(majorVersion > 3 && minorVersion >1)
{
// do schema changes etc....
}

}

Now maybe there is a way to do this already, but a quick glance at the code shows that this may be missing.

Currently, we implement this with a simple ADO.NET SQL query, but it would be nice to have this as part of the fluentmigrator toolset.

Friedrich

@serbrech
Copy link

serbrech commented Jul 6, 2012

is there a way to achieve this now? or is it still pending?

also, this is from inside a migration. what about doing that from my application? any way to simply ask FluentMigrator a "status"?

@fubar-coder
Copy link
Member

Superseded by issues #838 and #839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature (we all like those)
Projects
None yet
Development

No branches or pull requests

3 participants