Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests for validating the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
feat: Introduces a new feature or enhancement to the codebase
Changelog Entry
Description
[Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]
Previously, we has no way to use mysql but manually migrate the data store.
So, I have made a change to it, now we can start with mysql from scratch.
🔄 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/open-webui/open-webui/pull/3905
**Author:** [@tengattack](https://github.com/tengattack)
**Created:** 7/16/2024
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `feature/mysql-migration`
---
### 📝 Commits (1)
- [`7f5863f`](https://github.com/open-webui/open-webui/commit/7f5863f43a18139e254900085fcda1a5b362a3ef) Add mysql migration support
### 📊 Changes
**4 files changed** (+33 additions, -7 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/webui/internal/db.py` (+7 -3)
📝 `backend/apps/webui/internal/migrations/007_add_user_last_active_at.py` (+1 -1)
📝 `backend/apps/webui/internal/migrations/017_add_user_oauth_sub.py` (+1 -1)
📝 `backend/apps/webui/internal/wrappers.py` (+24 -2)
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [ ] <del>**Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?</del>
- [ ] **Testing:** Have you written and run sufficient tests for validating the changes?
- [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following:
- **feat**: Introduces a new feature or enhancement to the codebase
# Changelog Entry
### Description
- [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]
Previously, we has no way to use mysql but manually migrate the data store.
So, I have made a change to it, now we can start with mysql from scratch.
https://github.com/open-webui/open-webui/discussions/3903 https://github.com/open-webui/open-webui/discussions/2529
### Added
- Add support for mysql migration
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/3905
Author: @tengattack
Created: 7/16/2024
Status: ❌ Closed
Base:
dev← Head:feature/mysql-migration📝 Commits (1)
7f5863fAdd mysql migration support📊 Changes
4 files changed (+33 additions, -7 deletions)
View changed files
📝
backend/apps/webui/internal/db.py(+7 -3)📝
backend/apps/webui/internal/migrations/007_add_user_last_active_at.py(+1 -1)📝
backend/apps/webui/internal/migrations/017_add_user_oauth_sub.py(+1 -1)📝
backend/apps/webui/internal/wrappers.py(+24 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?Changelog Entry
Description
Previously, we has no way to use mysql but manually migrate the data store.
So, I have made a change to it, now we can start with mysql from scratch.
https://github.com/open-webui/open-webui/discussions/3903 https://github.com/open-webui/open-webui/discussions/2529
Added
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.