MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / create_migration_table

Function create_migration_table

backend/tkhelper/database/postgres/migrate.py:10–27  ·  view source on GitHub ↗

Create migration table if not exists :param conn: asyncpg database connection

(
    conn,
)

Source from the content-addressed store, hash-verified

8
9
10async def create_migration_table(
11 conn,
12):
13 """
14 Create migration table if not exists
15
16 :param conn: asyncpg database connection
17 """
18 try:
19 await conn.execute(
20 f"""
21 CREATE TABLE IF NOT EXISTS {MIGRATION_TABLE} (
22 version INTEGER PRIMARY KEY
23 );
24 """
25 )
26 except Exception as e:
27 logger.error(f"Error creating migration table: {e}")
28
29
30async def get_current_version(

Callers 1

get_current_versionFunction · 0.85

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected