Compare commits
No commits in common. "main" and "v1.2.0" have entirely different histories.
5 changed files with 6 additions and 11 deletions
|
|
@ -1,9 +1,5 @@
|
|||
## [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)'
|
||||
truncate: true
|
||||
delete: true
|
||||
- table: user_ip
|
||||
primary_key: [user_id, ip_id]
|
||||
truncate: true
|
||||
delete: 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)'
|
||||
truncate: true
|
||||
delete: true
|
||||
- table: user_ip
|
||||
primary_key: [user_id, ip_id]
|
||||
truncate: true
|
||||
delete: true
|
||||
```
|
||||
|
||||
### Run
|
||||
|
|
|
|||
|
|
@ -73,7 +73,6 @@ 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)'
|
||||
truncate: true
|
||||
delete: true
|
||||
- table: user_ip
|
||||
primary_key: [user_id, ip_id]
|
||||
truncate: true
|
||||
delete: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue