[PR #978] [CLOSED] [WIP] Add NOT NULL constraints to repository #15693

Closed
opened 2025-11-02 11:52:27 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/978
Author: @ethantkoenig
Created: 2/19/2017
Status: Closed

Base: masterHead: not_null


📝 Commits (1)

  • cd2ea6e Add NOT NULL constraints to repository

📊 Changes

3 files changed (+77 additions, -7 deletions)

View changed files

📝 models/migrations/migrations.go (+2 -0)
models/migrations/v17.go (+68 -0)
📝 models/repo.go (+7 -7)

📄 Description

#962

I'm having trouble with my migration; right now, it does not actually add NOT NULL constraints to the existing columns of the repository table. If someone who knows what they're doing could point me in the right direction, I would appreciate it! 😄

I've tested locally using Postgres 9.5.5


🔄 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/978 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 2/19/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `not_null` --- ### 📝 Commits (1) - [`cd2ea6e`](https://github.com/go-gitea/gitea/commit/cd2ea6efab058bb79ea732a64ac33df7f764fd16) Add NOT NULL constraints to repository ### 📊 Changes **3 files changed** (+77 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v17.go` (+68 -0) 📝 `models/repo.go` (+7 -7) </details> ### 📄 Description #962 I'm having trouble with my migration; right now, it does not actually add `NOT NULL` constraints to the existing columns of the `repository` table. If someone who knows what they're doing could point me in the right direction, I would appreciate it! :smile: I've tested locally using Postgres 9.5.5 --- <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:52:27 -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#15693