Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cloud-3188424
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
cloud-3188424
Commits
078743f9
Commit
078743f9
authored
9 years ago
by
Yas Naoi
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/iaas/modules/aws_cloud/aws_cloud.install
+4
-2
4 additions, 2 deletions
modules/iaas/modules/aws_cloud/aws_cloud.install
with
4 additions
and
2 deletions
modules/iaas/modules/aws_cloud/aws_cloud.install
+
4
−
2
View file @
078743f9
...
...
@@ -704,12 +704,14 @@ function aws_cloud_update_7102() {
}
/**
* Remove a primary key and index from cloud_aws_images table
* Remove a
ll
primary key
s, 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'
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment