Refactored 1.sql to use yii migrations.