Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SonarQube Configuration

# Exclude auto-generated gRPC files from analysis
sonar.exclusions=**/grpc/**/*_pb2.py,**/grpc/**/*_pb2.pyi,**/grpc/**/*_pb2_grpc.py

# Exclude common directories
sonar.coverage.exclusions=**/grpc/**,**/tests/**,**/__pycache__/**

# Python specific settings
sonar.python.version=3.13
17 changes: 17 additions & 0 deletions src/migrations/20251009093017_new_mods_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- +goose Up
CREATE TYPE mod_status AS ENUM ('UPLOADING', 'UPLOADED', 'FAILED', 'HIDDEN', 'BANNED');

CREATE TABLE IF NOT EXISTS mods (
id SERIAL PRIMARY KEY,
author_id INT NOT NULL,
title VARCHAR(255) NOT NULL,
description TEXT,
version INT NOT NULL DEFAULT 1,
s3_key VARCHAR(255),
status mod_status NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

-- +goose Down
DROP TABLE IF EXISTS mods;
DROP TYPE IF EXISTS mod_status;
2 changes: 1 addition & 1 deletion src/modservice/grpc/mod_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from . import mod_pb2 as mod__pb2

GRPC_GENERATED_VERSION = '1.74.0'
GRPC_GENERATED_VERSION = '1.75.1'
GRPC_VERSION = grpc.__version__
_version_not_supported = False

Expand Down