migration 6 drops deleted image property index in sqlite
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
John Bresnahan | ||
Grizzly |
Fix Released
|
Low
|
John Bresnahan |
Bug Description
At version 5 of the glance db in sqlite, I see the following schema/indices:
sqlite> select * from migrate_version;
Glance Migrations|
sqlite> .schema image_properties
CREATE TABLE image_properties (
id INTEGER NOT NULL,
image_id INTEGER NOT NULL,
"key" VARCHAR(255) NOT NULL,
value TEXT,
created_at DATETIME NOT NULL,
updated_at DATETIME,
deleted_at DATETIME,
deleted BOOLEAN NOT NULL,
PRIMARY KEY (id),
UNIQUE (image_id, "key"),
FOREIGN KEY(image_id) REFERENCES images (id),
CHECK (deleted IN (0, 1))
);
CREATE INDEX ix_image_
CREATE INDEX ix_image_
CREATE INDEX ix_image_
sqlite> .indices
ix_image_
ix_image_
ix_image_
ix_images_deleted
ix_images_is_public
After upgrading to version 6, however, I see
sqlite> .schema image_properties
CREATE TABLE image_properties (
id INTEGER NOT NULL,
image_id INTEGER NOT NULL,
name VARCHAR(255) NOT NULL,
value TEXT,
created_at DATETIME NOT NULL,
updated_at DATETIME,
deleted_at DATETIME,
deleted BOOLEAN NOT NULL,
PRIMARY KEY (id),
CHECK (deleted IN (0, 1)),
UNIQUE (image_id, name),
FOREIGN KEY(image_id) REFERENCES images (id)
);
CREATE INDEX ix_image_
sqlite> .indices
ix_image_
ix_images_deleted
ix_images_is_public
From the text of the change, this does not seem intentional.
This doesn't really seem like a big deal, as the index is preserved in mysql at least. Just wanted to document it.
Changed in glance: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in glance: | |
milestone: | none → grizzly-rc1 |
Changed in glance: | |
assignee: | nobody → John Bresnahan (jbresnah) |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/23873
Review: https:/