models: Unify tablenames using singular as main archive's convention

Related P434
This commit is contained in:
Antoine R. Dumont (@ardumont) 2019-06-18 07:06:09 +02:00
parent 6d11705908
commit fc92c79b7e
No known key found for this signature in database
GPG key ID: 52E2E9840D10C3B8
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
# 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
@ -9,7 +9,7 @@ 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)

View file

@ -1,4 +1,4 @@
# 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
@ -9,7 +9,7 @@ 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)

View file

@ -9,7 +9,7 @@ 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)