File tree Expand file tree Collapse file tree
src/collective/dms/scanbehavior Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ Changelog
551.3.3 (unreleased)
66------------------
77
8- - Nothing changed yet .
9-
8+ - Removed scan_id column .
9+ [sgeulette]
1010
11111.3.2 (2025-12-16)
1212------------------
Original file line number Diff line number Diff line change 3838 handler =" .upgrades.v3"
3939 profile =" collective.dms.scanbehavior:default" />
4040
41+ <genericsetup : upgradeStep
42+ title =" Migration profile for collective.dms.scanbehavior to 4"
43+ description =" Upgrade from 3 to 4"
44+ source =" 3"
45+ destination =" 4"
46+ handler =" .upgrades.v4"
47+ profile =" collective.dms.scanbehavior:default" />
48+
4149</configure >
Original file line number Diff line number Diff line change 33 <index name =" scan_id" meta_type =" FieldIndex" >
44 <indexed_attr value =" scan_id" />
55 </index >
6- <column value =" scan_id" />
6+ <!-- <column value="scan_id"/> -- >
77</object >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<metadata >
3- <version >3 </version >
3+ <version >4 </version >
44</metadata >
Original file line number Diff line number Diff line change @@ -41,3 +41,11 @@ def v3(context):
4141 logger .info ('Removed index "%s"...' % index )
4242 else :
4343 logger .info ('Trying to remove an unexisting index with name "%s"...' % index )
44+
45+
46+ def v4 (context ):
47+ catalog = api .portal .get_tool ("portal_catalog" )
48+ registered_columns = catalog .schema ()
49+ if "scan_id" in registered_columns :
50+ catalog .delColumn ("scan_id" )
51+ logger .info ("Removed column 'scan_id'..." )
You can’t perform that action at this time.
0 commit comments