Skip to content

fix(db): widen notes metadata integer columns - #2051

Open
juliusknorr wants to merge 1 commit into
mainfrom
codex/fix-notes-bigint
Open

juliusknorr wants to merge 1 commit into
mainfrom
codex/fix-notes-bigint

Conversation

@juliusknorr

Copy link
Copy Markdown
Member

Fixes #1461.

Migrate notes_meta.file_id to BIGINT using Nextcloud's BigIntMigration. Also widen the metadata primary key id and Unix timestamp last_update to avoid their respective 32-bit limits. The remaining columns are strings and need no changes.

Validation: php tests/migration.php and PHP syntax checks pass. Regression checks cover preserved indexes, auto-increment and existing rows, repeat execution, and values beyond the 32-bit limit using SQLite. MySQL/PostgreSQL execution was not tested locally. The autoloader checker could not finish because its Composer download failed.

AI assistance: Codex (GPT-6) helped implement and validate this change.

@nextcloud-command nextcloud-command added the AI assisted This PR contains AI-assisted commits label Sep 28, 2026
@juliusknorr
juliusknorr force-pushed the codex/fix-notes-bigint branch from 5a416eb to 55629e0 Compare September 28, 2026 07:40
@silverkszlo
silverkszlo force-pushed the codex/fix-notes-bigint branch from 55629e0 to bf992d6 Compare September 30, 2026 07:21
@silverkszlo

Copy link
Copy Markdown
Contributor

Thank you! Is the title of the migration, Version4013... still correct or should it be Version6002... now?

Use BigIntMigration for file IDs, metadata IDs, and update timestamps.

Fixes #1461

Assisted-by: Codex:GPT-6
Signed-off-by: Julius Knorr <jus@bitgrid.net>
@juliusknorr
juliusknorr force-pushed the codex/fix-notes-bigint branch from bf992d6 to 2621a8c Compare October 2, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI assisted This PR contains AI-assisted commits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate notes_meta file_id to bigint

3 participants