GymRatTrax / GymRatTrax-FitnessScheduler

GymRatTrax - Personal Fitness Scheduler
http://gymrattrax.com/
4 stars 1 forks source link

DB - Complete workouts (test existing methods) #27

Closed chrisstonedev closed 9 years ago

chrisstonedev commented 9 years ago

From @christopher-stone on March 12, 2015 17:50

Copied from original issue: wford7/AndroidStudio#27

chrisstonedev commented 9 years ago

The database has been rearranged. You will need to "Clear Data" in order to have the app function properly. The Schedule table is now gone and a new Complete table is added. The previous method proposed of storing proposed vs. complete workouts was efficient, but efficiency is not as huge of a priority.

I have not been able to completely test the "complete workout" method and will do more when more UI is available so I can test it. So if you work on the strength/cardio UI and have troubles posting to the database, feel free to commit it anyway so I can see what's going on given a complete database and a complete WorkoutItem object.

chrisstonedev commented 9 years ago

The database has been redone again. The Complete table has been merged into the existing Workout table. So there are three tables.

Testing has been successful. To test the methods yourself, you can run the new DBHelperTest AndroidTestCase.