mirror of
https://github.com/ankitects/anki.git
synced 2025-12-10 13:26:56 -05:00
fix order of cards table to fix saveas bug
This commit is contained in:
parent
de09e37006
commit
9bbb240d37
2 changed files with 3 additions and 3 deletions
|
|
@ -60,9 +60,9 @@ cardsTable = Table(
|
|||
Column('noCount', Integer, nullable=False, default=0),
|
||||
# caching
|
||||
Column('spaceUntil', Float, nullable=False, default=0),
|
||||
Column('relativeDelay', Float, nullable=False, default=0), # obsolete
|
||||
Column('isDue', Boolean, nullable=False, default=0),
|
||||
Column('type', Integer, nullable=False, default=2),
|
||||
Column('relativeDelay', Float, nullable=False, default=0), # obsolete
|
||||
Column('combinedDue', Integer, nullable=False, default=0))
|
||||
|
||||
class Card(object):
|
||||
|
|
|
|||
|
|
@ -1779,10 +1779,10 @@ order by priority desc, combinedDue""")
|
|||
deck.s.statement("""
|
||||
alter table cards add column spaceUntil float not null default 0""")
|
||||
deck.s.statement("""
|
||||
alter table cards add column isDue boolean not null default 0""")
|
||||
deck.s.statement("""
|
||||
alter table cards add column relativeDelay float not null default 0.0""")
|
||||
deck.s.statement("""
|
||||
alter table cards add column isDue boolean not null default 0""")
|
||||
deck.s.statement("""
|
||||
alter table cards add column type integer not null default 0""")
|
||||
deck.s.statement("""
|
||||
alter table cards add column combinedDue float not null default 0""")
|
||||
|
|
|
|||
Loading…
Reference in a new issue