Remove obsolete network_tags table as a part of db upgrade cleanup

This commit is contained in:
Alena Prokharchyk 2012-04-11 16:14:47 -07:00
parent d290296060
commit be04f2bd63
2 changed files with 23 additions and 1 deletions

View File

@ -57,6 +57,11 @@ public class Upgrade301to302 implements DbUpgrade {
@Override
public File[] getCleanupScripts() {
return null;
String script = Script.findScript("", "db/schema-301to302-cleanup.sql");
if (script == null) {
throw new CloudRuntimeException("Unable to find db/schema-301to302-cleanup.sql");
}
return new File[] { new File(script) };
}
}

View File

@ -0,0 +1,17 @@
# Copyright 2012 Citrix Systems, Inc. Licensed under the
# Apache License, Version 2.0 (the "License"); you may not use this
# file except in compliance with the License. Citrix Systems, Inc.
# reserves all rights not expressly granted by the License.
# You may obtain a copy of the License at http:#www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#Schema cleanup from 3.0.1 to 3.0.2;
DROP TABLE IF EXISTS `cloud`.`network_tags`;