김예미

modify database

...@@ -13,10 +13,10 @@ public class CallLogDataBase { ...@@ -13,10 +13,10 @@ public class CallLogDataBase {
13 public static final String _TABLENAME0 = "calllog"; 13 public static final String _TABLENAME0 = "calllog";
14 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"(" 14 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"("
15 +ID+" INTEGER PRIMARY KEY autoincrement, " 15 +ID+" INTEGER PRIMARY KEY autoincrement, "
16 - +TYPE+" integer not null , " 16 + +TYPE+" integer,"
17 - +NAME + " text not null," 17 + +NAME + " text,"
18 - +NUMBER + " text not null," 18 + +NUMBER + " text,"
19 - +DURATION + " integer not null," 19 + +DURATION + " integer,"
20 +DATE + " text);"; 20 +DATE + " text);";
21 } 21 }
22 } 22 }
......
...@@ -11,7 +11,7 @@ public class ContactDataBase { ...@@ -11,7 +11,7 @@ public class ContactDataBase {
11 public static final String _TABLENAME0 = "contact"; 11 public static final String _TABLENAME0 = "contact";
12 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"(" 12 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"("
13 +NUMBER+" text not null primary key, " 13 +NUMBER+" text not null primary key, "
14 - +NAME+" text not null , " 14 + +NAME+" text,"
15 +PHOTO_ID + " integer," 15 +PHOTO_ID + " integer,"
16 +PERSON_ID + " integer);"; 16 +PERSON_ID + " integer);";
17 } 17 }
......
...@@ -16,13 +16,13 @@ public class SMSDataBase { ...@@ -16,13 +16,13 @@ public class SMSDataBase {
16 public static final String _TABLENAME0 = "sms"; 16 public static final String _TABLENAME0 = "sms";
17 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"(" 17 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"("
18 +MID+" integer not null primary key, " 18 +MID+" integer not null primary key, "
19 - +TID+" integer not null , " 19 + +TID+" integer,"
20 - +TYPE + " integer not null," 20 + +TYPE + " integer,"
21 - +ADDRESS+" text not null , " 21 + +ADDRESS+" text,"
22 +PERSON + " text," 22 +PERSON + " text,"
23 - +CREATOR+" text , " 23 + +CREATOR+" text,"
24 - +DATE + " text not null," 24 + +DATE + " text,"
25 - +BODY + " text not null," 25 + +BODY + " text,"
26 +READ + " integer);"; 26 +READ + " integer);";
27 } 27 }
28 } 28 }
......
...@@ -11,8 +11,8 @@ public class WifiDataBase { ...@@ -11,8 +11,8 @@ public class WifiDataBase {
11 public static final String _TABLENAME0 = "wifi"; 11 public static final String _TABLENAME0 = "wifi";
12 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"(" 12 public static final String _CREATE0 = "create table if not exists "+_TABLENAME0+"("
13 +ID+" integer not null primary key, " 13 +ID+" integer not null primary key, "
14 - +SSID+" text not null , " 14 + +SSID+" text,"
15 - +BSSID + " text not null," 15 + +BSSID + " text,"
16 +WEPKEYS + " text);"; 16 +WEPKEYS + " text);";
17 } 17 }
18 } 18 }
......