Skip to content
Snippets Groups Projects
Verified Commit fc92c79b authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

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

Related P434
parent 6d117059
No related branches found
Tags v0.0.23
1 merge request!70phabricator: model: Reference the forge's instance name in model
# 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)
# 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)
......
......@@ -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)
  • Phabricator Migration user @phabricator-migration ·
    Owner

    Some references in the commit message have been migrated:

    • P434 is now swh/meta$431
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment