-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request juju#18951 from wallyworld/storage-ddl-tweaks
juju#18951 Add missing unique indices for generated id columns. Rename size column in storage_instance table. It is really the requested size and the rename helps disambiguate it from the actual size columns in the filesystem and volume tables. Remove unnecessary pool columns from filesystem and volume tables - it doesn't need to be denormalised there since it's recorded on storage_instance. On storage instance and the storage directive tables, introduce 2 separate (nullable) columns for storage pool and storage type - one must be set. Also make volume name column nullable as it's not known till provisioning. Also add consts for storage provisioning status and storage kind to match the DB lookup values. ## QA steps Just unit tests. ## Links **Jira card:** [JUJU-7593](https://warthogs.atlassian.net/browse/JUJU-7593) [JUJU-7593]: https://warthogs.atlassian.net/browse/JUJU-7593?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
Showing
14 changed files
with
342 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.