npm: make NpmVisitModel use the main declarative base class from core.models

This is needed by the (refactored) db init mechanism, since this later uses
the main declarative base class (thus the main MetaData instance) to gather
tables to be created/dropped.
This commit is contained in:
David Douard 2019-09-03 10:17:14 +02:00
parent 342964eda7
commit c67a926f26
2 changed files with 2 additions and 5 deletions

View file

@ -3,11 +3,8 @@
# See top-level LICENSE file for more information
from sqlalchemy import Column, String, DateTime, Integer, BigInteger, Sequence
from sqlalchemy.ext.declarative import declarative_base
from swh.lister.core.models import IndexingModelBase, ABCSQLMeta
SQLBase = declarative_base()
from swh.lister.core.models import IndexingModelBase, SQLBase, ABCSQLMeta
class NpmVisitModel(SQLBase, metaclass=ABCSQLMeta):