add # 新增偷菜功能

This commit is contained in:
2026-10-21 17:57:55 +08:00
parent dd47ab70c4
commit c7d97e294a
17 changed files with 495 additions and 30 deletions
+2
View File
@@ -116,6 +116,8 @@ class MigrationTests(unittest.IsolatedAsyncioTestCase):
def create_v1(self, path, unknown=False, version=1):
with closing(sqlite3.connect(path)) as db, db:
for statement in SCHEMA:
if statement.startswith('CREATE TABLE thefts('):
continue
if version == 1 and statement.startswith("CREATE TABLE inventory("):
statement = """CREATE TABLE inventory(
identity TEXT, name TEXT, seeds INTEGER,