Skip to content

Commit

Permalink
Merge pull request #5 from pmbrull/int-fix
Browse files Browse the repository at this point in the history
Fix types
  • Loading branch information
pmbrull authored Feb 24, 2024
2 parents 88cbee3 + 1c2326f commit 3aad0a0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions gitdb/dao/contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import Any, Dict, List

from sqlalchemy import Column, Integer, Sequence, String
from sqlalchemy import Column, Integer, Sequence, String, BigInteger
from sqlalchemy.orm import DeclarativeMeta, Session

from gitdb.api.client import APIClient
Expand All @@ -29,7 +29,7 @@ class ContributorsModel(base_instance):

__tablename__ = "contributors"

id = Column(Integer, Sequence("contributors_id_sequence"), primary_key=True)
id = Column(BigInteger, Sequence("contributors_id_sequence"), primary_key=True)
contributions = Column(Integer)
user_id = Column(Integer)
user_login = Column(String)
Expand Down
6 changes: 3 additions & 3 deletions gitdb/dao/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import Any, Dict, List

from sqlalchemy import ARRAY, Column, DateTime, Integer, String
from sqlalchemy import ARRAY, Column, DateTime, Integer, String, BigInteger
from sqlalchemy.orm import DeclarativeMeta, Session

from gitdb.api.client import APIClient
Expand Down Expand Up @@ -38,7 +38,7 @@ class IssuesModel(base_instance):

__tablename__ = "issues"

id = Column(Integer, primary_key=True)
id = Column(BigInteger, primary_key=True)
number = Column(Integer, primary_key=True)
title = Column(String)
body = Column(String)
Expand All @@ -62,7 +62,7 @@ class PullsModel(base_instance):

__tablename__ = "pulls"

id = Column(Integer, primary_key=True)
id = Column(BigInteger, primary_key=True)
number = Column(Integer, primary_key=True)
title = Column(String)
body = Column(String)
Expand Down
4 changes: 2 additions & 2 deletions gitdb/dao/reviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import Any, Dict, List, Optional

from pydantic import BaseModel
from sqlalchemy import Column, DateTime, Integer, Sequence, String
from sqlalchemy import Column, DateTime, Integer, Sequence, String, BigInteger
from sqlalchemy.orm import DeclarativeMeta, Session

from gitdb.api.client import APIClient
Expand Down Expand Up @@ -69,7 +69,7 @@ class ReviewsModel(base_instance):

__tablename__ = "latest_reviews"

id = Column(Integer, Sequence("review_id_seq"), primary_key=True)
id = Column(BigInteger, Sequence("review_id_seq"), primary_key=True)
number = Column(Integer)
reviewer = Column(String)
review_state = Column(String)
Expand Down
4 changes: 2 additions & 2 deletions gitdb/dao/stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from typing import Any, Dict, List

from sqlalchemy import Column, DateTime, Integer, Sequence, String
from sqlalchemy import Column, DateTime, Integer, Sequence, String, BigInteger
from sqlalchemy.orm import DeclarativeMeta, Session

from gitdb.api.client import APIClient
Expand Down Expand Up @@ -35,7 +35,7 @@ class StarsModel(base_instance):

__tablename__ = "stargazers"

id = Column(Integer, Sequence("stargazers_id_sequence"), primary_key=True)
id = Column(BigInteger, Sequence("stargazers_id_sequence"), primary_key=True)
starred_at = Column(DateTime)
user_id = Column(Integer)
user_login = Column(String)
Expand Down
4 changes: 2 additions & 2 deletions gitdb/dao/weekly_commits.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime, timedelta
from typing import Dict, List

from sqlalchemy import Column, DateTime, Integer, Sequence
from sqlalchemy import Column, DateTime, Integer, Sequence, BigInteger
from sqlalchemy.orm import DeclarativeMeta, Session

from gitdb.api.client import APIClient
Expand Down Expand Up @@ -32,7 +32,7 @@ class WeeklyCommitsModel(base_instance):

__tablename__ = "weekly_commits"

id = Column(Integer, Sequence("commits_id_sequence"), primary_key=True)
id = Column(BigInteger, Sequence("commits_id_sequence"), primary_key=True)
date = Column(DateTime)
commits = Column(Integer)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def get_long_description():

setup(
name="PyGitDB",
version="0.1.0",
version="0.1.1",
description="Load git stats into a DuckDB db locally for easy analytics.",
long_description=get_long_description(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 3aad0a0

Please sign in to comment.