Closed GoogleCodeExporter closed 9 years ago
I also get this issue. Makes me a sad panda.
James
Original comment by james.sa...@gmail.com
on 6 Mar 2009 at 7:50
Do your versions tables have entries for both migrations 1 & 2? Version 0.8
changed
SchemaInfo so it stores every version. It's not backward compatible because of
that
change. (You can just insert a row for each applied migration 1..n to fix this.)
Only reason I ask, is that I just did this exact thing (rolled back to 0 and
back up)
and everything worked as expected using SQL Server 2005.
Original comment by geoffl...@gmail.com
on 8 Mar 2009 at 2:46
When I experienced the problem I confirmed that the SchemaInfo table had a
record for
both migrations 1 & 2. I was going against SQL Server 2005 Express, and I was
using
the 0.8.0 release. Are you using the 0.8.0 release, or a more recent nightly
build?
Original comment by curtismi...@gmail.com
on 9 Mar 2009 at 8:55
It seems like the issue occurs when I use square brackets to surround the table
name.
In my case, I'm setting a constant to the table name and using that in my migrations
(e.g. private string const MYTABLE = "[MyTable]"; ...
Database.RemoveTable(MYTABLE);)
I hope that helps.
Original comment by curtismi...@gmail.com
on 9 Mar 2009 at 9:05
I noticed this problem too.
RemoveTable("[User]") fails, but
RemoteTable("User_") succeeds.
Original comment by craig.go...@gmail.com
on 18 Mar 2009 at 5:16
Uploading patch to fix the bracket issue and to allow schema names. With this
patch
the following should work.
RemoveTable("[dbo].[User]")
RemoveTable("[User]")
Also has unit tests in the patch.
Original comment by tariqk...@gmail.com
on 22 Jan 2010 at 5:51
Attachments:
Svn 144
Applied patch
Original comment by geoffl...@gmail.com
on 25 Mar 2010 at 10:27
Original issue reported on code.google.com by
curtismi...@gmail.com
on 3 Mar 2009 at 3:45