public static function drop($typeName, $cascade = false)
    {
        $db = static::getDb();

        return $db->createCommand(
            'DROP TYPE IF EXISTS ' . $db->quoteColumnName($typeName)
            . ($cascade ? ' CASCADE' : '')
        )->execute();
    }