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�`� � @ s$ d dl mZmZmZmZ dd� ZdS )� )�Table�Column�Index�DatabaseManagerc C s� |� d� |� d� tddd�td�td�tdd d �tdd d �td�td �tdg�f }t| ��� \}}|�|�D ]}|� |� q9|� d� |� d� dS )zfRename the columns `kind` and `change` in the `node_change` table for compatibity with MySQL. z:CREATE TEMPORARY TABLE nc_old AS SELECT * FROM node_changezDROP TABLE node_change�node_change)�rev�path�change_type)�keyr r � node_type� )�sizer � base_path�base_revz�INSERT INTO node_change (rev,path,node_type,change_type,base_path,base_rev) SELECT rev,path,kind,change,base_path,base_rev FROM nc_oldzDROP TABLE nc_oldN)�executer r r r � get_connector�to_sql)�env�ver�cursor�table�db_connector�_�stmt� r �4/usr/lib/python3/dist-packages/trac/upgrades/db17.py� do_upgrade s"