diff --git a/swh/lister/bitbucket/models.py b/swh/lister/bitbucket/models.py index 65fba9c..053ae0b 100644 --- a/swh/lister/bitbucket/models.py +++ b/swh/lister/bitbucket/models.py @@ -1,15 +1,15 @@ -# Copyright (C) 2017-2018 the Software Heritage developers +# Copyright (C) 2017-2019 the Software Heritage developers # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information from sqlalchemy import Column, String from swh.lister.core.models import IndexingModelBase class BitBucketModel(IndexingModelBase): """a BitBucket repository""" - __tablename__ = 'bitbucket_repos' + __tablename__ = 'bitbucket_repo' uid = Column(String, primary_key=True) indexable = Column(String, index=True) diff --git a/swh/lister/github/models.py b/swh/lister/github/models.py index 6584b34..47df1a3 100644 --- a/swh/lister/github/models.py +++ b/swh/lister/github/models.py @@ -1,16 +1,16 @@ -# Copyright (C) 2017-2018 the Software Heritage developers +# Copyright (C) 2017-2019 the Software Heritage developers # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information from sqlalchemy import Column, Boolean, Integer from swh.lister.core.models import IndexingModelBase class GitHubModel(IndexingModelBase): """a GitHub repository""" - __tablename__ = 'github_repos' + __tablename__ = 'github_repo' uid = Column(Integer, primary_key=True) indexable = Column(Integer, index=True) fork = Column(Boolean, default=False) diff --git a/swh/lister/phabricator/models.py b/swh/lister/phabricator/models.py index ba7ee73..533a365 100644 --- a/swh/lister/phabricator/models.py +++ b/swh/lister/phabricator/models.py @@ -1,15 +1,15 @@ # Copyright (C) 2019 the Software Heritage developers # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information from sqlalchemy import Column, String, Integer from swh.lister.core.models import IndexingModelBase class PhabricatorModel(IndexingModelBase): """a Phabricator repository""" - __tablename__ = 'phabricator_repos' + __tablename__ = 'phabricator_repo' uid = Column(String, primary_key=True) indexable = Column(Integer, index=True)