CRAFTERCMS-818
Added code to protect against falling into infinite loop when having circular dependencies
CRAFTERCMS-818
minor bug fix
CRAFTERCMS-819
Improved alter table scripts not to run on each startup
Merge pull request #221 from dejan-brkic/2.3.x

CRAFTERCMS-818