public static function rename($oldTypeName, $newTypeName)
    {
        $db = static::getDb();

        return $db->createCommand(
            'ALTER TYPE ' . $db->quoteColumnName($oldTypeName)
            . ' RENAME TO ' . $db->quoteColumnName($newTypeName)
        )->execute();
    }