Closed expede closed 4 years ago
Hm, I suspect that we messed something up here when we introduced composite primary keys. Prior to that, PKs were checked in a completely different way for the purpose of migrations.
Have you experienced this on both PostgreSQL and SQLite backends, or only one of them?
It's happening on PostgreSQL — I haven't tried on SQLite.
Thanks for bringing this to my attention, this turned out to be related to three different bugs. Those bugs managed to cancel each other out in various circumstances, which is how it made it past testing. All three should be fixed by now, but please let me know if you still see this issue with latest HEAD.
Hi there — big fan of this project, and have really been enjoying using it so far. Unfortunately, I'm having some issues with migrations on 0.5.0.0 where
migrate
(andautoMigrate
) fail, even on newly created tables.I did some simple troubleshooting, and came up with some results that point in the direction of validation.
...which is strange, because it is listed as being a primary key in the Selda table definition. Any thoughts?
In either case, I'm trying to add a new columns... but am not sure if this approach is correct because I haven't been able to get any version of this to work. Perhaps the issue is somewhere in here? (Renamed the above
User
toUser0
, and created a newdata User
that has the required column)