 -- }}}
 
 -- {{{ v0.24.4
+
 DROP VIEW monad_auth;
 CREATE VIEW monad_auth
     (id, name, pass, salt, email, datecreated, datemodified, dateactive,

        SET NEW.sortorder = 1;
    END IF;
END;
$$
DELIMITER ;

DROP TRIGGER IF EXISTS monad_menu_item_insert_after;
DELIMITER $$
CREATE TRIGGER monad_menu_item_insert_after AFTER INSERT ON monad_menu_item
FOR EACH ROW BEGIN
    INSERT INTO monad_menu_item_i18n
        SELECT NEW.id, id, CONCAT('Option ', NEW.sortorder), NULL, 1 FROM
            monolyth_language;
END;
$$
DELIMITER ;

-- Monad's main menu.
INSERT INTO monad_admin VALUES (NULL, 1);

    WHERE r.name IN ('monad', '*') AND a.id IS NOT NULL;

DROP FUNCTION IF EXISTS fn_monad_page_i18n_unique_slug;
CREATE FUNCTION fn_monad_page_i18n_unique_slug(oldid INT, str TEXT, lang INT) RETURNS TEXT
BEGIN
    SET @uniq = 0;
