From f40f76b8c1b1d2616de289b81c4170ad698c6962 Mon Sep 17 00:00:00 2001 From: raimbass Date: Fri, 7 Nov 2025 10:52:29 +0100 Subject: [PATCH] update --- .../scripts/note.txt | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 observabilite/observability/vm_observabilite_applicatif/scripts/note.txt diff --git a/observabilite/observability/vm_observabilite_applicatif/scripts/note.txt b/observabilite/observability/vm_observabilite_applicatif/scripts/note.txt new file mode 100644 index 0000000..2f27427 --- /dev/null +++ b/observabilite/observability/vm_observabilite_applicatif/scripts/note.txt @@ -0,0 +1,53 @@ +sudo mv /opt/tomcat/webapps/archiweb-api-1.0.0.war /opt/tomcat/webapps/api.war + +ALTER TABLE utilisateur ADD COLUMN token_reinitialisation VARCHAR(255); + +root@vmApplicatif:/opt/tomcat/webapps# psql -U archiweb_user -d archiweb_db +Password for user archiweb_user: archiweb_pass + +archiweb_db=> \dt + List of tables + Schema | Name | Type | Owner +--------+------------------+-------+--------------- + public | contenu_cours | table | archiweb_user + public | cours | table | archiweb_user + public | devoir | table | archiweb_user + public | enseignement | table | archiweb_user + public | inscription | table | archiweb_user + public | note | table | archiweb_user + public | rendu_devoir | table | archiweb_user + public | role | table | archiweb_user + public | utilisateur | table | archiweb_user + public | utilisateur_role | table | archiweb_user +(10 rows) + +archiweb_db=> \d utilisateur + Table "public.utilisateur" + Column | Type | Collation | Nullable | Default +--------------+------------------------+-----------+----------+----------------------------------------- + id | bigint | | not null | nextval('utilisateur_id_seq'::regclass) + login | character varying(8) | | not null | + mot_de_passe | character varying(255) | | not null | + nom | character varying(100) | | | + prenom | character varying(100) | | | + email | character varying(255) | | | + +NB: +archiweb_db=> ALTER TABLE utilisateur ADD COLUMN token_reinitialisation VARCHAR(255); +ALTER TABLE +archiweb_db=> \d utilisateur + Table "public.utilisateur" + Column | Type | Collation | Nullable | Default +------------------------+------------------------+-----------+----------+----------------------------------------- + id | bigint | | not null | nextval('utilisateur_id_seq'::regclass) + login | character varying(8) | | not null | + mot_de_passe | character varying(255) | | not null | + nom | character varying(100) | | | + prenom | character varying(100) | | | + email | character varying(255) | | | + token_reinitialisation | character varying(255) | | | + +archiweb_db=> \q + +root@vmApplicatif:/opt/tomcat/webapps# sudo systemctl restart postgresql +root@vmApplicatif:/opt/tomcat/webapps# sudo systemctl status postgresql \ No newline at end of file