Generate init migration from database.

991 views
Skip to first unread message

Mikhail Filippov

unread,
May 8, 2012, 11:56:57 AM5/8/12
to fluentmigrato...@googlegroups.com
I want use fluent migrator in exists project. How i can generate init migration for exists database?

Richard Forrest

unread,
May 8, 2012, 12:26:58 PM5/8/12
to fluentmigrato...@googlegroups.com
You could just script out your existing db.  Then add that as an initial migration.  Tehn add the versioninfo table with and manually add the id so that the initial migration does not run against your current db.   

On 8 May 2012 16:56, Mikhail Filippov <filip...@gmail.com> wrote:
I want use fluent migrator in exists project. How i can generate init migration for exists database?

--
You received this message because you are subscribed to the Google Groups "FluentMigrator Google Group" group.
To view this discussion on the web visit https://groups.google.com/d/msg/fluentmigrator-google-group/-/e8zww1pNdrcJ.
To post to this group, send email to fluentmigrato...@googlegroups.com.
To unsubscribe from this group, send email to fluentmigrator-goog...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/fluentmigrator-google-group?hl=en.



--
Regards 

Richard Forrest

Jeff Treuting

unread,
May 8, 2012, 12:41:06 PM5/8/12
to fluentmigrato...@googlegroups.com
You would use the Execute.Sql or Execute.Script options to get that initial script into your first migration.
Jeff Treuting
Truburn Solutions, LLC
(206) 393-0717
www.truburn.net
je...@truburn.net



Reply all
Reply to author
Forward
0 new messages