We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55b87d commit 5d49f4dCopy full SHA for 5d49f4d
tests.py
@@ -353,8 +353,8 @@ class EmptyModel(Model): pass
353
assert not hasattr(one, 'bar')
354
355
@mark.xfail(raises=AttributeError)
356
- def test_replace_column_same_type(self):
357
- self.db.run("ALTER TABLE foo ADD COLUMN biz int NOT NULL DEFAULT 0")
+ def test_replace_column_same_type_different_name(self):
+ self.db.run("ALTER TABLE foo ADD COLUMN biz text NOT NULL DEFAULT 0")
358
self.db.run("ALTER TABLE foo DROP COLUMN bar")
359
one = self.db.one("SELECT foo.*::foo FROM foo LIMIT 1")
360
assert one.biz == 0
0 commit comments