Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
feat: correction de la bdd
Browse files Browse the repository at this point in the history
  • Loading branch information
EuphoriaReal committed Apr 18, 2024
1 parent 4253e16 commit cf844d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/insert_test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ WHERE NOT EXISTS (

INSERT INTO Inscription(idInscription, mail, password, isAdmin)
-- VALUES (2, 'user@gmail.com', 'user', 0);
SELECT * FROM (SELECT 2, 'user@gmail.com', 'user', 'user', 0) AS tmp
SELECT * FROM (SELECT 2, 'user@gmail.com', 'user', 0) AS tmp
WHERE NOT EXISTS (
SELECT idInscription FROM Inscription WHERE idInscription = 2
);

INSERT INTO Personne(action, nom, prenom, sexe, nationalite, adresse, complementAdresse, codePostal, ville, pays, telephone, mobile, courriel2, personneNom, personnePrenom, personneTelephone, personneCourriel, numLicence, typeLicence, assurance, optionSki, optionSlackline, optionTrail, optionVTT, optionAssurance, seance, lInscription)
INSERT INTO Personne(action, nom, prenom, dateNaissance, sexe, nationalite, adresse, complementAdresse, codePostal, ville, pays, telephone, mobile, courriel2, personneNom, personnePrenom, personneTelephone, personneCourriel, numLicence, typeLicence, assurance, optionSki, optionSlackline, optionTrail, optionVTT, optionAssurance, seance, lInscription)
-- VALUES ('C', 'DUPONT', 'Jean', '1999-01-01', 'H', 'FR', '1 rue de la Paix', '', '75000', 'Paris', 'FR', '0123456789', '0123456789', '', '', '', '', '', '', 'J', 'RC', 0, 0, 0, 0, 0, 1, 2);
SELECT * FROM (SELECT 'C', 'DUPONT', 'Jean', '1999-01-01', 'H', 'FR', '1 rue de la Paix', '', '75000', 'Paris', 'FR', '0123456789', '0123456789', '', '', '', '', '', '', 'J', 'RC', 0, 0, 0, 0, 0, 1, 2) AS tmp
WHERE NOT EXISTS (
Expand Down
2 changes: 0 additions & 2 deletions server/api/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ try {
}

// eslint-disable-next-line no-undef
//add user to database

export default defineEventHandler(async (event) => {
console.log("Received event", event)
if (!connection) {
Expand Down

0 comments on commit cf844d0

Please sign in to comment.