sqlmig: support des préfixes avec '.' pour les conversions csv --> sql

This commit is contained in:
Jephté Clain 2018-06-04 14:06:19 +04:00
parent 0ae44bd3ed
commit e78ec7f61c
1 changed files with 1 additions and 1 deletions

2
sqlmig
View File

@ -1260,7 +1260,7 @@ for dbdir in "${dbdirs[@]}"; do
eval "$(awk '{
truncate = ($0 ~ /-data_truncate(.devel)?.csv$/)? "1": ""
sub(/^.*\//, "")
sub(/^[0-9]+/, "")
sub(/^[0-9.]*[0-9]-?/, "")
sub(/\.csv$/, "")
sub(/\.devel$/, "")
sub(/-data(_[a-z]+*)?$/, "")