Remove unused upgrade script 98/184298/1 accepted/tizen/unified/20180717.143444 submit/tizen/20180717.052756
authorsinikang <sinikang@samsung.com>
Tue, 17 Jul 2018 05:10:20 +0000 (14:10 +0900)
committersinikang <sinikang@samsung.com>
Tue, 17 Jul 2018 05:10:20 +0000 (14:10 +0900)
Change-Id: I775c35adb8f7f6e669de93e7d816c17b926fc188

CMakeLists.txt
packaging/tel-plugin-packetservice.spec
resources/500.dnet_db_upgrade_30_40.sh [deleted file]
resources/dnet_db_upgrade_30_40.sql [deleted file]

index 306a1b6dc706c15887cfd05237a9d779efdbd71b..ca79fbf810caf7b86a9a9f21c8972d314b170df4 100644 (file)
@@ -67,7 +67,5 @@ SET_TARGET_PROPERTIES(ps-plugin PROPERTIES PREFIX "" OUTPUT_NAME ps-plugin)
 
 # install
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/resources/dnet_db.sql DESTINATION ${DATAROOTDIR}/ps-plugin)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/resources/dnet_db_upgrade_30_40.sql DESTINATION ${DATAROOTDIR}/ps-plugin)
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/resources/500.dnet_db_upgrade_30_40.sh DESTINATION ${DATAROOTDIR}/upgrade/scripts)
 INSTALL(FILES ${RES_DIR}/dnet_db_init.sql DESTINATION ${DATAROOTDIR}/ps-plugin)
 INSTALL(TARGETS ps-plugin LIBRARY DESTINATION ${LIBDIR}/telephony/plugins)
index 8fc9d4a1b0ae8df829254f7b0942d61c08b03d9b..48b6d45ca32cab71620c86fac3ef49bbe972589b 100644 (file)
@@ -4,7 +4,7 @@
 
 %define major 0
 %define minor 4
-%define patchlevel 23
+%define patchlevel 24
 
 Name:           tel-plugin-packetservice
 Version:        %{major}.%{minor}.%{patchlevel}
@@ -211,8 +211,6 @@ esac
 %defattr(644,root,root,-)
 #%doc COPYING
 %{_datadir}/ps-plugin/dnet_db.sql
-%{_datadir}/ps-plugin/dnet_db_upgrade_30_40.sql
-%{_datadir}/upgrade/scripts/500.dnet_db_upgrade_30_40.sh
 %{_libdir}/telephony/plugins/ps-plugin*
 # This is for backward-compatibility. This does not deteriorate 4.0 Configurability
 # if tv || "undefined"
diff --git a/resources/500.dnet_db_upgrade_30_40.sh b/resources/500.dnet_db_upgrade_30_40.sh
deleted file mode 100644 (file)
index 8d34ed5..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-PATH=/bin:/usr/bin:/sbin:/usr/sbin
-
-/usr/bin/sqlite3 /opt/dbspace/.dnet.db < /usr/share/ps-plugin/dnet_db_upgrade_30_40.sql
-/usr/bin/sqlite3 /opt/dbspace/.dnet2.db < /usr/share/ps-plugin/dnet_db_upgrade_34_40.sql
-
-chown telephony:telephony /opt/dbspace/.dnet.db
-chown telephony:telephony /opt/dbspace/.dnet.db-journal
-chown telephony:telephony /opt/dbspace/.dnet2.db
-chown telephony:telephony /opt/dbspace/.dnet2.db-journal
-
-chsmack -a System /opt/dbspace/.dnet.db
-chsmack -a System /opt/dbspace/.dnet.db-journal
-chsmack -a System /opt/dbspace/.dnet2.db
-chsmack -a System /opt/dbspace/.dnet2.db-journal
diff --git a/resources/dnet_db_upgrade_30_40.sql b/resources/dnet_db_upgrade_30_40.sql
deleted file mode 100644 (file)
index 3b85d16..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-PRAGMA journal_mode = PERSIST;
-PRAGMA synchronous = OFF;
-PRAGMA locking_mode = EXCLUSIVE;
-PRAGMA temp_store = MEMORY;
-PRAGMA cache_size=-5000;
-
-DROP TABLE IF EXISTS "pdp_profile_upgrade";
-CREATE TABLE pdp_profile_upgrade(
-       profile_id           INTEGER PRIMARY KEY,
-       profile_name         TEXT,
-       apn                  TEXT,
-       auth_type            INTEGER,
-       auth_id              TEXT,
-       auth_pwd             TEXT,
-       pdp_protocol         INTEGER,
-       roam_pdp_protocol    INTEGER,
-       proxy_ip_addr        TEXT,
-       home_url             TEXT,
-       linger_time          INTEGER,
-       traffic_class        INTEGER,
-       is_static_ip_addr    INTEGER,
-       ip_addr              TEXT,
-       is_static_dns_addr   INTEGER,
-       dns_addr1            TEXT,
-       dns_addr2            TEXT,
-       network_info_id      INTEGER,
-       svc_category_id      INTEGER,
-       hidden               INTEGER,
-       editable             INTEGER,
-       default_internet_con INTEGER,
-       user_defined         INTEGER,
-       is_roaming_apn       INTEGER,
-       profile_enable       INTEGER
-);
-
-INSERT INTO pdp_profile_upgrade
- SELECT profile_id, profile_name, apn, auth_type, auth_id, auth_pwd, pdp_protocol, roam_pdp_protocol, proxy_ip_addr, home_url, linger_time, traffic_class, is_static_ip_addr, ip_addr, is_static_dns_addr, dns_addr1, dns_addr2, network_info_id, svc_category_id, hidden, editable, default_internet_con, user_defined, is_roaming_apn, profile_enable
- FROM 'pdp_profile';
-
-DROP TABLE 'pdp_profile';
-ALTER TABLE 'pdp_profile_upgrade' RENAME TO 'pdp_profile';
-
-DROP INDEX IF EXISTS "pdp_profile_ix_1";
-CREATE INDEX pdp_profile_ix_1 ON pdp_profile (network_info_id);