The sub_id column in the carriers should be an INTEGER instead of a LONG
Recently the definition of subId was changed from a long to an int. Here's
a place that still needs the change. Note that this won't "fix" existing
carrier tables and change the column from a LONG to an INTEGER.
This change will only affect new installations.
Change-Id: I6465aa37d41a237bc6fa870bb601db1ddf63e9d9
diff --git a/src/com/android/providers/telephony/TelephonyProvider.java b/src/com/android/providers/telephony/TelephonyProvider.java
index 1d80317..1d66192 100644
--- a/src/com/android/providers/telephony/TelephonyProvider.java
+++ b/src/com/android/providers/telephony/TelephonyProvider.java
@@ -229,7 +229,7 @@
"bearer INTEGER," +
"mvno_type TEXT," +
"mvno_match_data TEXT," +
- "sub_id LONG DEFAULT " + SubscriptionManager.INVALID_SUB_ID + "," +
+ "sub_id INTEGER DEFAULT " + SubscriptionManager.INVALID_SUB_ID + "," +
"profile_id INTEGER default 0," +
"modem_cognitive BOOLEAN default 0," +
"max_conns INTEGER default 0," +
@@ -337,7 +337,7 @@
}
if (oldVersion < (9 << 16 | 6)) {
db.execSQL("ALTER TABLE " + CARRIERS_TABLE +
- " ADD COLUMN sub_id LONG DEFAULT " +
+ " ADD COLUMN sub_id INTEGER DEFAULT " +
SubscriptionManager.INVALID_SUB_ID + ";");
oldVersion = 9 << 16 | 6;
}