Closed bottlenecked closed 6 years ago
Hi, thanks for contributing.
I think no one had this issue since old version 1.x of tds_ecto forced dbo
schema. I added prefix support when started working on version 2 and tried at first to force prefix to dbo if not specified. Later, I realised that user default schema could be set to something else. So I removed that code. This is probably point which I didn't check at that point.
Currently I'm preparing some improvements in tds related to varchar/nvarchars, so once I'm done I will merge this change too.
Thank you!
Great, good to know :)
Hi all, when running migrations from the test suite I get back the following error
Digging in some more, it seems that the
CREATE TABLE
statement creates tables under the default schema when no schema is specified, ie.dbo
. But the following query explicitly check for an empty schema name when running migrations, so that the create table statement is always executed and fails subsequent executions with the error above.So I propose the
info.[TABLE_SCHEMA] = '#{prefix}'
check is eschewed completely when no prefix is specified.Running
SELECT @@VERSION
gives the following:Does this happen to anyone else?