[PR #9] [MERGED] Add lightweight auto-migration for missing DB columns #14

Closed
opened 2026-03-02 11:44:07 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: dev


📝 Commits (2)

  • f0ccfea Add lightweight auto-migration for missing DB columns
  • 205a241 chore: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/jhd3197/ServerKit/pull/9 **Author:** [@jhd3197](https://github.com/jhd3197) **Created:** 1/28/2026 **Status:** ✅ Merged **Merged:** 1/28/2026 **Merged by:** [@jhd3197](https://github.com/jhd3197) **Base:** `main` ← **Head:** `dev` --- ### 📝 Commits (2) - [`f0ccfea`](https://github.com/jhd3197/ServerKit/commit/f0ccfea160719ed6d9ed6e8fc13a8f181be8ccad) Add lightweight auto-migration for missing DB columns - [`205a241`](https://github.com/jhd3197/ServerKit/commit/205a2419839f537901f494e7c76b7c9e432dce2e) chore: bump version to 1.2.75 [skip ci] ### 📊 Changes **3 files changed** (+109 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `VERSION` (+1 -1) 📝 `backend/app/__init__.py` (+69 -0) 📝 `backend/cli.py` (+39 -14) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:44:07 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ServerKit#14
No description provided.