Skip to content

Database should use foreign keys #1417

@lesderid

Description

@lesderid
  • Gitea version (or commit ref): 1.1.0
  • Git version: Not relevant
  • Operating system: Not relevant
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Gitea's database should use foreign keys. This is much cleaner and makes it easier to do maintenance on the database (e.g. removing spam) without forgetting to delete certain records or deleting too many records.

Metadata

Metadata

Assignees

No one assigned

    Labels

    reviewed/wontfixThe problem described in this issue/fixed in this pull request is not a problem we will fixtype/enhancementAn improvement of existing functionalitytype/upstreamThis is an issue in one of Gitea's dependencies and should be reported there

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions