sqlmig: support des préfixes alphanumériques pour les fichiers csv

This commit is contained in:
Jephté Clain 2018-06-18 09:06:02 +04:00
parent fe0e2718d8
commit d620760681
1 changed files with 1 additions and 1 deletions

2
sqlmig
View File

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