diff --git a/components/popUp.tsx b/components/popUp.tsx index 9e3d179..271eeeb 100644 --- a/components/popUp.tsx +++ b/components/popUp.tsx @@ -224,7 +224,7 @@ const PopUp: React.FC = ({ useEffect(() => { setInputs(fields) - }, [fields]) + }, []) const handleInputChange = (id: string, value: string | boolean) => { // Invoke the function if provided diff --git a/migration/16-Table-Interlocuteur.sql b/migration/16-Table-Interlocuteur.sql index 9a3e91d..c3c0330 100644 --- a/migration/16-Table-Interlocuteur.sql +++ b/migration/16-Table-Interlocuteur.sql @@ -10,10 +10,3 @@ CREATE TABLE Interlocuteurs ( PRIMARY KEY (code_interlocuteur), FOREIGN KEY (code_type_interlocuteur) REFERENCES TypeInterlocuteur(code_type_interlocuteur) ON UPDATE CASCADE ); -INSERT INTO Interlocuteurs (civilite, nom, prenom, tel_perso, mail, commentaires, code_type_interlocuteur) VALUES -('M.', 'Dupont', 'Jean', '0123456789', 'jean.dupont@gmail.com', 'Nouveau bénévole.', null), -('Mme', 'Martin', 'Marie', '0987654321', 'marie.martin@gmail.com', 'Responsable de secteur.', null), -('M.', 'Durand', 'Paul', '0123987654', 'paul.durand@gmail.com', 'Volontaire depuis 2 ans.', null), -('Mme', 'Petit', 'Sophie', '0765432109', 'sophie.petit@gmail.com', 'Coordination des événements.', null), -('Aut','Admin','Admin','0123456789','admin@admin.com','Administrateur.', null), -('M.', 'Leroy', 'Julien', '0654321987', 'julien.leroy@gmail.com', 'Gestion des stocks.', null); diff --git a/migration/17-Table-User-Site-Link.sql b/migration/17-Table-User-Site-Link.sql deleted file mode 100644 index 031a8e0..0000000 --- a/migration/17-Table-User-Site-Link.sql +++ /dev/null @@ -1,21 +0,0 @@ -CREATE TABLE SitesRattachement ( - code_interlocuteur INT(6) NOT NULL, - code_site INT(5) NOT NULL, - code_type_utilisateur CHAR(4) NOT NULL, - date_fin_activite DATE, - PRIMARY KEY (code_interlocuteur, code_site), - FOREIGN KEY (code_interlocuteur) REFERENCES Interlocuteurs(code_interlocuteur) ON UPDATE CASCADE ON DELETE CASCADE, - FOREIGN KEY (code_site) REFERENCES Sites(code_site) ON UPDATE CASCADE ON DELETE CASCADE, - FOREIGN KEY (code_type_utilisateur) REFERENCES TypesUtilisateurs(code_type_utilisateur) ON UPDATE CASCADE -); -INSERT INTO SitesRattachement ( - code_interlocuteur, - code_site, - code_type_utilisateur, - date_fin_activite -) VALUES -(1, 1, 'EN', NULL), -(2, 2, 'AP', NULL), -(3, 3, 'SU', NULL), -(4, 4, 'AP', NULL), -(5, 5, 'AD', NULL);