From 4414225297fd820a8dec54e1153e59a8bf621939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Sol=C3=ADs?= Date: Mon, 10 Feb 2025 04:51:29 +0000 Subject: [PATCH] feat: Reset auto-increments --- friendica-find-missing-servers.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/friendica-find-missing-servers.sh b/friendica-find-missing-servers.sh index 048740e..6a96b8c 100755 --- a/friendica-find-missing-servers.sh +++ b/friendica-find-missing-servers.sh @@ -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