feat: Reset auto-increments
This commit is contained in:
parent
bd24d3c3a6
commit
4414225297
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue