Skip to content

Instantly share code, notes, and snippets.

@ceedubs
Created October 15, 2021 21:09
Show Gist options
  • Save ceedubs/dbcbe0894807e848792faf32b2ddc0f1 to your computer and use it in GitHub Desktop.
Save ceedubs/dbcbe0894807e848792faf32b2ddc0f1 to your computer and use it in GitHub Desktop.
DatabaseIntegrityError when changing from structural to unique in scratch file
.> alias.type ##Text Text
structural ability MyAbility where
  foo: Text
.> update
unique ability MyAbility where
  foo2: Text

MyAbility.foo : '{MyAbility} Text
MyAbility.foo _ = "hi"

MyAbility.bar : '{MyAbility} Text
MyAbility.bar _ = !MyAbility.foo
.> update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment