Skip to content
Snippets Groups Projects
Commit 078743f9 authored by Yas Naoi's avatar Yas Naoi
Browse files

Added "Remove all *primary keys*, *unique keys* and *index* from

cloud_aws_images table" to
aws_cloud.install
parent 436c18ca
No related branches found
No related tags found
No related merge requests found
......@@ -704,12 +704,14 @@ function aws_cloud_update_7102() {
}
/**
* Remove a primary key and index from cloud_aws_images table
* Remove all primary keys, unique keys and index from cloud_aws_images table
*/
function aws_cloud_update_7130() {
$aws_cloud_images_table = aws_cloud_get_table_info(AWS_CLOUD_IMAGES_TABLE);
// Drop all primary keys.
db_drop_primary_key($aws_cloud_images_table);
// Drop all index.
db_drop_index($aws_cloud_images_table);
db_drop_index($aws_cloud_images_table, 'image_id');
// Drop all unique keys
db_drop_unique_key($aws_cloud_images_table, 'image_id');
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment