Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 155475f40f | |||
|
6c9e1cfd06 |
|||
| 9ea6acb3f6 | |||
|
50783c3a75 |
5 changed files with 11 additions and 6 deletions
|
|
@ -1,5 +1,9 @@
|
|||
## [Unreleased]
|
||||
|
||||
## v1.2.1
|
||||
### Fixed
|
||||
- add default type of string
|
||||
|
||||
## v1.2.0
|
||||
### Added
|
||||
- add "lorem_word" faker
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ func GetRows(db *sql.DB, query, table, dbType string) map[int]map[string]data.Da
|
|||
value := values[i]
|
||||
d := data.Data{
|
||||
IsVirtual: false,
|
||||
IsString: true,
|
||||
IsNull: value == nil,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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