Consolidated 3.x-era → 4.8.x upgrade migration (for Client B et al.)#98
Merged
Merged
Conversation
Documented reference path to bring a pre-4.1.0 ("3.x era") install up to the
4.8.x framework schema in one shot. Pre-4.1.0 schema changes lived in the
CHANGELOG (not .sql files); this consolidates ~3.8.0 -> 4.8.0 into one
idempotent file, built to the FINAL 4.8.x shape (version tables created already
without obfuscation columns, rather than create-then-drop).
Generated from a live v4.8.1 install's SHOW CREATE TABLE: 19 CREATE TABLE IF
NOT EXISTS + 15 ADD COLUMN IF NOT EXISTS + 12 DROP COLUMN IF EXISTS. Explicit
charset/collation stripped (inherit DB default) - MySQL utf8mb4_0900_ai_ci is
not valid on MariaDB. Built for MariaDB (column-level IF [NOT] EXISTS).
First consumer: Client B (kyte-php 3.7.3, MariaDB). Rehearse on a clone before
prod; config.php 4.x constants + the cron data-migration are out of scope here.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ion header The file both ADDS (safe before the code swap) and DROPS obfuscation columns (the pre-4.8 code still reads them, so must be after). Header now spells out sections 1&2 -> composer update -> section 3. Also corrected the config note: 4.x auto-defaults new constants (AUTH_STRATEGY_DISPATCHER='off' = legacy HMAC), so an HMAC install needs little/no config change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidated 3.x-era → 4.8.x upgrade migration
A documented, idempotent reference path to bring a pre-4.1.0 ("3.x era") install up to the 4.8.x framework schema in one shot. Pre-4.1.0 schema changes were documented in the CHANGELOG (not
.sqlfiles); this consolidates everything from ~3.8.0 → 4.8.0 into a single file, built to the final 4.8.x shape (e.g. version tables are created already without the obfuscation columns, rather than create-then-drop).First consumer: Client B (kyte-php 3.7.3, MariaDB). Diffed the full 4.8.1 framework set (53 tables) against their live schema (34 tables).
Contents (generated from a live v4.8.1 install's
SHOW CREATE TABLE)CREATE TABLE IF NOT EXISTS— the 6 versioning tables, 5 cron tables, 3 AI/Bedrock tables,KyteActivityLog,KyteRefreshToken,KyteMCPToken,KyteMCPSession,KyteLibraryAssignment.ADD COLUMN IF NOT EXISTS—Application.auth_mode+language;sensitive×4;KyteAccount.default_language;KyteUser.language;KyteScriptAssignment.global_scope;KyteError×6.DROP COLUMN IF EXISTS— the obfuscation columns (4.8.0).Portability / safety decisions
utf8mb4_0900_ai_cicollation MariaDB doesn't support, and this also avoids "illegal mix of collations" against the install's existing tables.IF [NOT] EXISTSclauses are MariaDB extensions (MySQL 8.0 doesn't support them on ADD/DROP COLUMN). Noted in the header.NOT covered here (deliberately) — see the upgrade plan
CronJob*set is empty).This is a reference/rehearsal artifact, not a drop-in prod run. Rehearse on a clone of the target DB + a staging install, smoke-test, then apply to the real install.
🤖 Generated with Claude Code