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:
parent
342964eda7
commit
c67a926f26
2 changed files with 2 additions and 5 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue