MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / _need_upgrade

Function _need_upgrade

apps/base/migrations/migrations_005.py:4–10  ·  view source on GitHub ↗
(columns: list[tuple])

Source from the content-addressed store, hash-verified

2
3
4def _need_upgrade(columns: list[tuple]) -> bool:
5 for column in columns:
6 # PRAGMA table_info 返回 (cid, name, type, notnull, dflt_value, pk)
7 if column[1] == "size":
8 column_type = (column[2] or "").upper()
9 return "BIGINT" not in column_type
10 return False
11
12
13async def migrate():

Callers 1

migrateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected