One manage.py migrate should be enough to apply migrations for all applications. Extra calls just slow toaster script down.
Removed calls of migrate for orm and bldcontrol apps. Signed-off-by: Ed Bartosh <[email protected]> --- bitbake/bin/toaster | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster index 0862a35..7645c56 100755 --- a/bitbake/bin/toaster +++ b/bitbake/bin/toaster @@ -58,26 +58,8 @@ webserverStartAll() # python bitbake/lib/toaster/manage.py python manage.py createsuperuser --username=<ME> python $BBBASEDIR/lib/toaster/manage.py migrate --noinput || retval=1 - python $BBBASEDIR/lib/toaster/manage.py migrate orm || retval=2 - - if [ $retval -eq 1 ]; then - echo "Failed db sync, aborting system start" 1>&2 - return $retval - fi - - python $BBBASEDIR/lib/toaster/manage.py migrate orm || retval=1 - - if [ $retval -eq 1 ]; then - printf "\nError on orm migration, rolling back...\n" - python $BBBASEDIR/lib/toaster/manage.py migrate orm 0001_initial --fake - return $retval - fi - - python $BBBASEDIR/lib/toaster/manage.py migrate bldcontrol || retval=1 - if [ $retval -eq 1 ]; then - printf "\nError on bldcontrol migration, rolling back...\n" - python $BBBASEDIR/lib/toaster/manage.py migrate bldcontrol 0001_initial --fake + echo "Failed migrations, aborting system start" 1>&2 return $retval fi -- 2.1.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
