-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1300 from chv348/KAA-1566-release-010
KAA-1566: Error occurs with long fields in Administration UI
- Loading branch information
Showing
12 changed files
with
103 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
server/upgrade/data-migration-0.10.0-0.10.1/upgradeKaa0100to0101.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright 2014-2016 CyberVision, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with 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. | ||
# | ||
|
||
SQL_PROVIDER_NAME=$1 | ||
|
||
if [ -z "${SQL_PROVIDER_NAME}" ]; then | ||
echo "Please specify sql provider name. | ||
mariadb or postgresql" | ||
else | ||
case $SQL_PROVIDER_NAME in | ||
mariadb) | ||
echo "Upgrade mariadb 0.10.0 to 0.10.1 Kaa version" | ||
mysql -usqladmin -padmin kaa < upgradeSql0100to0101kaaVersionMariadb.sql | ||
;; | ||
postgresql) | ||
echo "Upgrade postgresql 0.10.0 to 0.10.1 Kaa version" | ||
sudo -u postgres psql -d kaa -a -f upgradeSql0100to0101kaaVersionPostgreSQL.sql | ||
;; | ||
*) | ||
exit 1 | ||
;; | ||
esac | ||
|
||
echo "Upgrade finished!" | ||
fi | ||
|
||
|
||
|
||
|
21 changes: 21 additions & 0 deletions
21
server/upgrade/data-migration-0.10.0-0.10.1/upgradeSql0100to0101kaaVersionMariadb.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright 2014 CyberVision, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with 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. | ||
*/ | ||
|
||
ALTER TABLE base_schems MODIFY description VARCHAR(1024); | ||
ALTER TABLE plugin MODIFY description VARCHAR(1024); | ||
ALTER TABLE topic MODIFY description VARCHAR(1024); | ||
ALTER TABLE endpoint_group MODIFY description VARCHAR(1024); | ||
ALTER TABLE events_class_family MODIFY description VARCHAR(1024); |
22 changes: 22 additions & 0 deletions
22
server/upgrade/data-migration-0.10.0-0.10.1/upgradeSql0100to0101kaaVersionPostgreSQL.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright 2014 CyberVision, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with 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. | ||
*/ | ||
|
||
ALTER TABLE base_schems ALTER COLUMN description TYPE varchar(1024); | ||
ALTER TABLE plugin ALTER COLUMN description TYPE varchar(1024); | ||
ALTER TABLE topic ALTER COLUMN description TYPE varchar(1024); | ||
ALTER TABLE endpoint_group ALTER COLUMN description TYPE varchar(1024); | ||
ALTER TABLE events_class_family ALTER COLUMN description TYPE varchar(1024); | ||
|