feat: Reset auto-increments

This commit is contained in:
Carlos Solís 2025-02-10 04:51:29 +00:00
parent bd24d3c3a6
commit 4414225297

View file

@ -97,5 +97,12 @@ if [[ -n $(type curl) && -n "${dbengine}" && -n $(type "${dbengine}") && -n $(ty
done <"${idsdownfile}"
rm "${tmpfile}" 2>/dev/null
rm "${idsdownfile}" 2>/dev/null
"${dbengine}" "${db}" -N -B -q -e "alter table \`post-thread\` auto_increment = 1"
"${dbengine}" "${db}" -N -B -q -e "alter table \`post-thread-user\` auto_increment = 1"
"${dbengine}" "${db}" -N -B -q -e "alter table \`post-user\` auto_increment = 1"
"${dbengine}" "${db}" -N -B -q -e "alter table \`post-tag\` auto_increment = 1"
"${dbengine}" "${db}" -N -B -q -e "alter table \`post\` auto_increment = 1"
"${dbengine}" "${db}" -N -B -q -e "alter table \`photo\` auto_increment = 1"
"${dbengine}" "${db}" -N -B -q -e "alter table \`contact\` auto_increment = 1"
date
fi