1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Disabled ID reuse in database

This commit is contained in:
krateng 2022-04-04 16:18:47 +02:00
parent e0af117805
commit 2748d0e360

View File

@ -5,7 +5,6 @@ import math
from datetime import datetime from datetime import datetime
from ..globalconf import data_dir from ..globalconf import data_dir
from .dbcache import cached_wrapper, cached_wrapper_individual, invalidate_entity_cache from .dbcache import cached_wrapper, cached_wrapper_individual, invalidate_entity_cache
from doreah.logging import log from doreah.logging import log
@ -34,13 +33,15 @@ DB['tracks'] = sql.Table(
sql.Column('id',sql.Integer,primary_key=True), sql.Column('id',sql.Integer,primary_key=True),
sql.Column('title',sql.String), sql.Column('title',sql.String),
sql.Column('title_normalized',sql.String), sql.Column('title_normalized',sql.String),
sql.Column('length',sql.Integer) sql.Column('length',sql.Integer),
sqlite_autoincrement=True
) )
DB['artists'] = sql.Table( DB['artists'] = sql.Table(
'artists', meta, 'artists', meta,
sql.Column('id',sql.Integer,primary_key=True), sql.Column('id',sql.Integer,primary_key=True),
sql.Column('name',sql.String), sql.Column('name',sql.String),
sql.Column('name_normalized',sql.String) sql.Column('name_normalized',sql.String),
sqlite_autoincrement=True
) )
DB['trackartists'] = sql.Table( DB['trackartists'] = sql.Table(
'trackartists', meta, 'trackartists', meta,