Schema: Ist-Stand statt Migrationskette, Umstellungscode entfernt

Es gibt genau eine Datenbank, die laufend mit dem Code mitgezogen wird
(Rolling Release). schema.sql beschreibt deshalb jetzt den aktuellen
Stand (Vorlage: Dump vom 22.11.2026) ohne DO-Block, ADD COLUMN IF NOT
EXISTS und Umbenennungen; auf der bestehenden DB sind alle Anweisungen
No-ops, eine frische bekommt dasselbe Schema.

Dazu fliegt der Code, der nur die Umstellung getragen hat: die
Handle-Umschrift (MigrateHandles, HandleFrom, freeHandle samt
go-unidecode) und der Hashtag-Backfill beim Start. kver handles und
legacy_name bleiben, bis alle Betroffenen ihren neuen Handle kennen.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 13:16:23 +01:00
co-authored by Claude Fable 5.1
parent a545cefaea
commit a4a31cbc64
9 changed files with 38 additions and 356 deletions
-2
View File
@@ -15,8 +15,6 @@ github.com/jackc/puddle/v2 v2.2.4 h1:N6Mz6EGB9DL0bz3OEfxJ7eoOpjRHnnjpOh+G8kbLoG8
github.com/jackc/puddle/v2 v2.2.4/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
github.com/klauspost/cpuid/v2 v2.4.2 h1:xRw7IZEsAgVCp6trS/DgWbTAqpixhmywgVgBjYGg1bQ=
github.com/klauspost/cpuid/v2 v2.4.2/go.mod h1:19jmZ9mjzoF//ddRSUsv0zfBTJWh3QJh9FNxZTMrGxU=
github.com/mozillazg/go-unidecode v0.2.0 h1:vFGEzAH9KSwyWmXCOblazEWDh7fOkpmy/Z4ArmamSUc=
github.com/mozillazg/go-unidecode v0.2.0/go.mod h1:zB48+/Z5toiRolOZy9ksLryJ976VIwmDmpQ2quyt1aA=
github.com/oschwald/maxminddb-golang v1.13.1 h1:G3wwjdN9JmIK2o/ermkHM+98oX5fS+k5MbwsmL4MRQE=
github.com/oschwald/maxminddb-golang v1.13.1/go.mod h1:K4pgV9N/GcK694KSTmVSDTODk4IsCNThNdTmnaBZ/F8=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=