[PR #1504] [MERGED] Fix broken v27 migration - change mirror interval from int to bigint #15932

Closed
opened 2025-11-02 11:58:15 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1504
Author: @cez81
Created: 4/17/2017
Status: Merged
Merged: 4/30/2017
Merged by: @lunny

Base: masterHead: mirror_interval_bigint


📝 Commits (1)

📊 Changes

1 file changed (+30 additions, -12 deletions)

View changed files

📝 models/migrations/v27.go (+30 -12)

📄 Description

Fix for #1496. Migration to v27 didn't alter the column type to bigint (#1407). This fix will alter the column type and set all mirror intervals that are < Mirror.MinInterval to Mirror.DefaultInterval.
Sqlite is ok because uses same integer type.


🔄 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/go-gitea/gitea/pull/1504 **Author:** [@cez81](https://github.com/cez81) **Created:** 4/17/2017 **Status:** ✅ Merged **Merged:** 4/30/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `mirror_interval_bigint` --- ### 📝 Commits (1) - [`9994626`](https://github.com/go-gitea/gitea/commit/99946269c4e1d6e21fd37e2d96830602a97f0866) Fix broken migration v27 ### 📊 Changes **1 file changed** (+30 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/v27.go` (+30 -12) </details> ### 📄 Description Fix for #1496. Migration to v27 didn't alter the column type to bigint (#1407). This fix will alter the column type and set all mirror intervals that are < Mirror.MinInterval to Mirror.DefaultInterval. Sqlite is ok because uses same integer type. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:58:15 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15932