Commit 0a7c83c1 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

FTS-597: Drop unused tables

parent b35f657f
......@@ -20,17 +20,6 @@ from sqlalchemy import Column, Integer
from base import Base
class CredentialVersion(Base):
__tablename__ = 't_credential_vers'
major = Column(Integer, primary_key=True)
minor = Column(Integer, primary_key=True)
patch = Column(Integer, primary_key=True)
def __str__(self):
return "%d.%d.%d" % (self.major, self.minor, self.patch)
class SchemaVersion(Base):
__tablename__ = 't_schema_vers'
......
......@@ -21,7 +21,7 @@ import pylons
from routes import request_config
from webob.exc import HTTPNotFound
from fts3.model import CredentialVersion, SchemaVersion
from fts3.model import SchemaVersion
from fts3rest.lib.api import doc
from fts3rest.lib.base import BaseController, Session
......@@ -64,15 +64,12 @@ class ApiController(BaseController):
@jsonify
def api_version(self):
cred_v = Session.query(CredentialVersion).all()
cred_v = cred_v[0] if cred_v else None
schema_v = Session.query(SchemaVersion).all()
schema_v = schema_v[0] if schema_v else None
return {
'api': API_VERSION,
'core': self.fts_core_version,
'schema': cred_v,
'delegation': schema_v,
'schema': schema_v,
'_links': {
'curies': [{'name': 'fts', 'href': 'https://svnweb.cern.ch/trac/fts3'}],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment