Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
trac
/
upgrades
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: db44.cpython-310.pyc
o �k�`� � @ sp d dl Z d dlmZ d dlmZmZ d dlmZ d dlm Z d dl mZ d dlm Z dZd d � ZdZdd � ZdS )� N)�DatabaseManager)�Column�Table)�ResourceNotFound)�Report)�printout)�_zEhttps://trac.edgewall.org/wiki/1.3/TracUpgrade#enum-description-fieldc C s� t ddd�td�td�td�td�f g}| j�= t| ��|� g }dD ])}zt| |�}W n ty6 Y q$w t|j�}|rF||_|� � q$|� t|�� q$W d � n1 sXw Y |rod �|�}t td|td�� d S d S ) z)Add `description` column to `enum` table.�enum)�type�name)�keyr r �value�description)� � � � � � � Nz, z�Report(s) %(ids)s could not be upgraded and may need to be manually edited to avoid an "ambiguous column name" error. See %(url)s for more information. )�ids�url)r r �db_transactionr �upgrade_tablesr r �replace_sql_fragment�query�update�append�str�joinr r r )�env�version�cursor� new_schema�failures�id_�rr � r'