mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
add primary key constraint support
This commit is contained in:
parent
91114a72c5
commit
a3d968cd55
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ sqlite.enable_shared_cache(True)
|
||||||
|
|
||||||
from sqlalchemy import (Table, Integer, Float, Column, MetaData,
|
from sqlalchemy import (Table, Integer, Float, Column, MetaData,
|
||||||
ForeignKey, Boolean, String, Date,
|
ForeignKey, Boolean, String, Date,
|
||||||
UniqueConstraint, Index)
|
UniqueConstraint, Index, PrimaryKeyConstraint)
|
||||||
from sqlalchemy import create_engine
|
from sqlalchemy import create_engine
|
||||||
from sqlalchemy.orm import mapper, sessionmaker, relation, backref, \
|
from sqlalchemy.orm import mapper, sessionmaker, relation, backref, \
|
||||||
object_session as _object_session
|
object_session as _object_session
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue