public function makeDefault( Theme $model, $config = [] ) {

		$modelClass	= static::$modelClass;

		$type = CoreGlobal::TYPE_SITE;

		if( $model->type !== $type ) {

			return false;
		}

		// Disable All
		$modelClass::updateAll( [ 'default' => false ], "`default`=1 AND `type`='$type'" );

		// Make Default
		$model->default = true;

		// Update
		return parent::update( $model, [
			'attributes' => [ 'default' ]
		]);
	}