]> iEval git - unical.git/blobdiff - src/ro/ieval/unical/MySQLiteHelper.java
Add function to add event into local database
[unical.git] / src / ro / ieval / unical / MySQLiteHelper.java
index 889ebdaeb7b4faf62518c9219a0913d466818063..dc3595157db2a37f9040b810d286a2f90b290b54 100644 (file)
@@ -12,10 +12,10 @@ public class MySQLiteHelper extends SQLiteOpenHelper {
        public static final String Name="Events";
        
        public static final String ID = "_id";
-       public static final String name = "Name";
+       public static final String title = "Title";
        public static final String description = "Description";
        public static final String date = "Date";
-       public static final String time = "Time";
+       public static final String duration = "Duration";
        public static final String repeat = "repeat";
        public static final String repeatIn = "repeatInterval";
        public static final String location = "Location";
@@ -24,10 +24,10 @@ public class MySQLiteHelper extends SQLiteOpenHelper {
        
        private static final String Database_create = "create table " + Name + "(" + 
                        ID + " integer primary key autoincrement, " +
-                       name + " text not null, " + 
+                       title + " text not null, " + 
                        description + " text, " + 
                        date + " integer, " + 
-                       time + " integer, " +
+                       duration + " integer, " +
                        repeat + " integer, "+
                        repeatIn + " integer, " +
                        location + " text);"
This page took 0.010093 seconds and 4 git commands to generate.