Commit 3c02faa1d9c90f8bf53f85f72dfa21e9dfe78cd5
1 parent
0d5d4242
Exists in
master
and in
1 other branch
bugfix sql
Showing
1 changed file
with
13 additions
and
2 deletions
Show diff stats
database/update/script_sql/db-update-2020-10-22.sql
... | ... | @@ -3,6 +3,17 @@ use database; |
3 | 3 | -- |
4 | 4 | -- Ajout du champ stats.last_connex_dur |
5 | 5 | -- |
6 | + | |
7 | +-- On execute TOUT ou RIEN, c'est plus sur | |
8 | +START TRANSACTION; | |
9 | + | |
10 | + | |
6 | 11 | ALTER TABLE stats |
7 | - ADD last_connex_dur INT NOT NULL DEFAULT 0 AFTER last_login_time COMMENT 'Temps de connexion de la derniere session', | |
8 | - CHANGE connex_dur connex_dur_tot INT(11) NOT NULL DEFAULT 0 COMMENT "Total temps connexion cumulé sur l'année (sec)"; | |
12 | + ADD last_connex_dur INT NOT NULL DEFAULT 0 AFTER last_login_time COMMENT 'Temps de connexion de la derniere session'; | |
13 | + | |
14 | +ALTER TABLE stats | |
15 | + CHANGE connex_dur connex_dur_tot INT(11) NOT NULL DEFAULT 0 COMMENT 'Total temps connexion cumulé sur année (sec)'; | |
16 | + | |
17 | + | |
18 | +-- Fin transaction, execution | |
19 | +COMMIT; | |
9 | 20 | \ No newline at end of file | ... | ... |