update
This commit is contained in:
parent
8bc9983704
commit
f40f76b8c1
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user