Phoenix-Wing / Reservoir

Database and frontend for managing faction data in Phoenix Wing.
MIT License
1 stars 0 forks source link

Cannot wipe database #57

Open BD103 opened 8 months ago

BD103 commented 8 months ago

Running the following fails:

$ edgedb database wipe

Shortened traceback:

edgedb error: SchemaDefinitionError: cannot alter link 'airships' of object type 'default::Country' because this affects expression of link 'owner' of object type 'ship::Airship'
  Detail: possibly more than one element returned by an expression for the computed link 'owner' of object type 'ship::Airship' explicitly declared as 'single'
  edb.errors.SchemaDefinitionError: cannot alter link 'airships' of object type 'default::Country' because this affects expression of link 'owner' of object type 'ship::Airship'
BD103 commented 8 months ago

You can get around this by unlinking the project and re-initializing it:

$ edgedb project unlink -D
$ edgedb project init