sqlmig: corriger le suivi des maj admin
This commit is contained in:
parent
4b85c93251
commit
bad6c4811a
6
sqlmig
6
sqlmig
|
@ -1125,6 +1125,7 @@ if [ -n "$updatedir" ]; then
|
||||||
setx name=basename "$update"
|
setx name=basename "$update"
|
||||||
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
||||||
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
||||||
|
name="${update#$updatedir/}"
|
||||||
mysql_admin_update "$name" "$update" "$updatefile"
|
mysql_admin_update "$name" "$update" "$updatefile"
|
||||||
done
|
done
|
||||||
eend; eclearp
|
eend; eclearp
|
||||||
|
@ -1140,6 +1141,7 @@ if [ -n "$updatedir" ]; then
|
||||||
setx name=basename "$update"
|
setx name=basename "$update"
|
||||||
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
||||||
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
||||||
|
name="${update#$updatedir/}"
|
||||||
oracle_admin_update "$name" "$update" "$updatefile"
|
oracle_admin_update "$name" "$update" "$updatefile"
|
||||||
done
|
done
|
||||||
eend; eclearp
|
eend; eclearp
|
||||||
|
@ -1259,8 +1261,10 @@ for dbdir in "${dbdirs[@]}"; do
|
||||||
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
||||||
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
||||||
if have_tag admin "$update"; then
|
if have_tag admin "$update"; then
|
||||||
|
[ -n "$updatedir" ] && name="${update#$updatedir/}" || name="${update#$dbdir/}"
|
||||||
mysql_admin_update "$name" "$update" "$updatefile"
|
mysql_admin_update "$name" "$update" "$updatefile"
|
||||||
else
|
else
|
||||||
|
name="${update#$dbdir/}"
|
||||||
mysql_user_update "$name" "$update" "$dbname" "$updatefile"
|
mysql_user_update "$name" "$update" "$dbname" "$updatefile"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -1324,8 +1328,10 @@ for dbdir in "${dbdirs[@]}"; do
|
||||||
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
[ "$dbmode" == devel -o "${name%.devel.sql}" == "$name" ] || continue
|
||||||
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
[ -z "$updatefile" -o "$updatefile" == "$update" ] || continue
|
||||||
if have_tag admin "$update"; then
|
if have_tag admin "$update"; then
|
||||||
|
[ -n "$updatedir" ] && name="${update#$updatedir/}" || name="${update#$dbdir/}"
|
||||||
oracle_admin_update "$name" "$update" "$updatefile"
|
oracle_admin_update "$name" "$update" "$updatefile"
|
||||||
else
|
else
|
||||||
|
name="${update#$dbdir/}"
|
||||||
oracle_user_update "$name" "$update" "$dbname" "$updatefile"
|
oracle_user_update "$name" "$update" "$dbname" "$updatefile"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue