sqlmig: support des préfixes avec '.' pour les conversions csv --> sql
This commit is contained in:
parent
0ae44bd3ed
commit
e78ec7f61c
2
sqlmig
2
sqlmig
|
@ -1260,7 +1260,7 @@ for dbdir in "${dbdirs[@]}"; do
|
||||||
eval "$(awk '{
|
eval "$(awk '{
|
||||||
truncate = ($0 ~ /-data_truncate(.devel)?.csv$/)? "1": ""
|
truncate = ($0 ~ /-data_truncate(.devel)?.csv$/)? "1": ""
|
||||||
sub(/^.*\//, "")
|
sub(/^.*\//, "")
|
||||||
sub(/^[0-9]+/, "")
|
sub(/^[0-9.]*[0-9]-?/, "")
|
||||||
sub(/\.csv$/, "")
|
sub(/\.csv$/, "")
|
||||||
sub(/\.devel$/, "")
|
sub(/\.devel$/, "")
|
||||||
sub(/-data(_[a-z]+*)?$/, "")
|
sub(/-data(_[a-z]+*)?$/, "")
|
||||||
|
|
Loading…
Reference in New Issue