[Pharo] Personal fitness tracker web app.
Stop initializing the database before the repo is even fully loaded...
Database should be initialized during a repository post-installation hook.
src/MyFitnessTracker/MFTSQLite3Database.class.st
@@ -191,10 +191,10 @@
191
191
{ #category : 'class initialization' }
192
192
MFTSQLite3Database class >> initialize [
193
193
194
Removed:
defaultLocation := (Smalltalk imageDirectory / 'mft.sqlite3')
195
Removed:
fullName.
196
Removed:
(FileSystem / defaultLocation) exists ifFalse: [
197
Removed:
self createDefaultDatabaseAt: defaultLocation ].
194
Added:
" defaultLocation := (Smalltalk imageDirectory / 'mft.sqlite3') "
195
Added:
" fullName. "
196
Added:
" (FileSystem / defaultLocation) exists ifFalse: [ "
197
Added:
" self createDefaultDatabaseAt: defaultLocation ]. "
198
198
allMuscles := self getAllMuscles.
199
199
allMuscleGroups := self getAllMuscleGroups.
200
200
allExercises := self getAllExercises.