public static function renameValue($typeName, $value, $newValue)
    {
        $db = static::getDb();

        return $db->createCommand(
            'ALTER TYPE ' . $db->quoteColumnName($typeName)
            . ' RENAME VALUE ' . $db->quoteValue($value) . ' TO ' . $db->quoteValue($newValue)
        )->execute();
    }