Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
apisub
Commits
02f094c7
Commit
02f094c7
authored
Sep 29, 2020
by
Stephane Crozat
Browse files
Adding reinit procedure
parent
8c499c0b
Changes
3
Show whitespace changes
Inline
Side-by-side
INSTALL
View file @
02f094c7
...
...
@@ -4,14 +4,15 @@ git clone https://gitlab.utc.fr/crozatst/apisub.git .
# PostgreSQL
## Bas
c
ics
## Basics
apt-get install postgresql postgresql-contrib
### NB : Check postgresql fr_FR locale is avaiblable (if not `dpkg-reconfigure locales`)
## Add external data
add student.csv to
data
add student.csv to
student
## Create user and db
sudo
su postgres
su postgres
sh/apisub_init.sh password
## Create apisub user for backup
...
...
MAJ
0 → 100644
View file @
02f094c7
# Procédure de mise à jour du site pour une nouvelle session d'Api
## Backup
su postgres
pg_dump apisub -f /home/stc/apidump/apisub20200929.sql
scp stc@pic.crzt.fr:/home/stc/apidump/* .
## Mise à jour des dates
```
UPDATE config SET closed='f', openbegin='2021-01-18', openend='2021-01-29';
```
## Niveau des étudiants
- Vider la table student
- Ré-insérer les données à jour dans la table student
```
DELETE FROM student;
\copy student FROM '/tmp/students.csv' DELIMITER ';'
```
## Api
- Vider la liste des inscriptions et des api
```
DELETE FROM subscribe;
DELETE FROM api;
```
lib/admin.php
View file @
02f094c7
...
...
@@ -17,7 +17,7 @@ class Admin {
}
public
function
activeYear
()
{
return
202
0
;
return
202
1
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment