mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-04-26 08:25:59 +03:00
[PR #9] [MERGED] Add lightweight auto-migration for missing DB columns #14
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ServerKit#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jhd3197/ServerKit/pull/9
Author: @jhd3197
Created: 1/28/2026
Status: ✅ Merged
Merged: 1/28/2026
Merged by: @jhd3197
Base:
main← Head:dev📝 Commits (2)
f0ccfeaAdd lightweight auto-migration for missing DB columns205a241chore: bump version to 1.2.75 [skip ci]📊 Changes
3 files changed (+109 additions, -15 deletions)
View changed files
📝
VERSION(+1 -1)📝
backend/app/__init__.py(+69 -0)📝
backend/cli.py(+39 -14)📄 Description
Introduces an _auto_migrate_columns function in app initialization to automatically add missing columns to existing tables. Refactors the CLI migrate_db command to use a unified expected columns list and checks both 'applications' and 'wordpress_sites' tables for missing columns, improving consistency and reducing manual migration steps.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.