Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/trac/upgrades/__pycache__/ |
Upload File : |
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'