 $$
 LANGUAGE PLPGSQL;
 
-CREATE OR REPLACE FUNCTION masqueCompetence(idCompetence IN BIGINT, idEtablissement IN VARCHAR, valMasque IN BOOLEAN)
+CREATE OR REPLACE FUNCTION notes.masqueCompetence(idCompetence IN BIGINT, idEtablissement IN VARCHAR, valMasque IN BOOLEAN)
   RETURNS BOOLEAN AS $$
 DECLARE
   isLast     BOOLEAN;

  ON UPDATE CASCADE ON DELETE CASCADE
);

CREATE OR REPLACE FUNCTION deleteCompetence(idCompetence IN BIGINT, idEtablissement IN VARCHAR)
  RETURNS BOOLEAN AS $$
DECLARE
  nbDevoir   INTEGER;

$$
LANGUAGE PLPGSQL;

CREATE OR REPLACE FUNCTION notes.updateDomaineCompetence(idCompetence IN BIGINT, idEtablissement IN VARCHAR, idDomaine IN BIGINT)
  RETURNS BOOLEAN AS $$
DECLARE
  isLast     BOOLEAN;
