cinder/cinder/db/sqlalchemy
Gorka Eguileor cea54bb544
Ignore migration 127 error on MariaDB
Older MariaDB, and InnoDB with 4K page sizes [1], don't support a text fields
to have more than 767 bytes, which means that we cannot extend the quota_usage
_resource to 300 characters on migration 127.

Since this migration is to cover a corner case, we ignore the exception
during the migration if we are on a MySQL DB engine.

[1]: https://mariadb.com/kb/en/library/innodb-limitations/#page-sizes

Closes-Bug: #1808598
Change-Id: Id990b98f0ac7aaedf48a77ebee2b083fcbdaaee7
2018-12-19 16:14:59 -06:00
..
migrate_repo Ignore migration 127 error on MariaDB 2018-12-19 16:14:59 -06:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-26 22:45:17 -06:00
api.py Merge "Retry on DBDeadLock affecting worker updates" 2018-12-19 00:40:22 +00:00
models.py Increase the length of resource property in quota_usages 2018-11-02 05:52:33 -04:00