/
Netrunners
/
Millenium_UI
Обзор
Документация
Войти
/
Netrunners
/
Millenium_UI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
backend/open_webui/migrations/util.py
15 строк
309 B
Валерий Конюхов
first_commit
08 июл 2025, 22:20
08 июл 2025, 22:20
a4e8dc9
Код
Авторство
О чём код?
from alembic import op from sqlalchemy import Inspector def get_existing_tables(): con = op.get_bind() inspector = Inspector.from_engine(con) tables = set(inspector.get_table_names()) return tables def get_revision_id(): import uuid return str(uuid.uuid4()).replace("-", "")[:12]