fix doc: replace delete with truncate
This commit is contained in:
parent
75efdde05c
commit
50783c3a75
3 changed files with 6 additions and 6 deletions
|
|
@ -31,10 +31,10 @@ rules:
|
|||
name: company_name
|
||||
- table: access_log
|
||||
query: 'select * from access_log where date < (NOW() - INTERVAL 6 MONTH)'
|
||||
delete: true
|
||||
truncate: true
|
||||
- table: user_ip
|
||||
primary_key: [user_id, ip_id]
|
||||
delete: true
|
||||
truncate: true
|
||||
```
|
||||
|
||||
### Exécution
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ rules:
|
|||
name: company_name
|
||||
- table: access_log
|
||||
query: 'select * from access_log where date < (NOW() - INTERVAL 6 MONTH)'
|
||||
delete: true
|
||||
truncate: true
|
||||
- table: user_ip
|
||||
primary_key: [user_id, ip_id]
|
||||
delete: true
|
||||
truncate: true
|
||||
```
|
||||
|
||||
### Run
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ rules:
|
|||
name: company_name
|
||||
- table: access_log
|
||||
query: 'select * from access_log where date < (NOW() - INTERVAL 6 MONTH)'
|
||||
delete: true
|
||||
truncate: true
|
||||
- table: user_ip
|
||||
primary_key: [user_id, ip_id]
|
||||
delete: true
|
||||
truncate: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue