Markov: remove some cruft that is now obsolete
This commit is contained in:
parent
45af15a1ef
commit
57be7f8026
@ -83,7 +83,6 @@ class Markov(Module):
|
||||
k2 TEXT NOT NULL,
|
||||
v TEXT NOT NULL
|
||||
)''')
|
||||
db.execute('CREATE INDEX markov_chain_key_index ON markov_chain (k1, k2)')
|
||||
sql = 'INSERT INTO drbotzo_modules VALUES (?,?)'
|
||||
db.execute(sql, (self.__class__.__name__, 1))
|
||||
db.commit()
|
||||
@ -137,8 +136,6 @@ class Markov(Module):
|
||||
if (version < 4):
|
||||
db = self.get_db()
|
||||
try:
|
||||
db.execute('''
|
||||
DROP INDEX markov_chain_key_index''')
|
||||
db.execute('UPDATE drbotzo_modules SET version = ? WHERE module = ?',
|
||||
(4, self.__class__.__name__))
|
||||
db.commit()
|
||||
|
Loading…
Reference in New Issue
Block a user