NAME

krang_storable_freezethaw - convert element data between Storable and FreezeThaw strings


SYNOPSIS

  # use database 'svconline' adn convert data of element classes
  # 'from_date' and 'to_date' from Storable to FreezeThaw
  krang_storable_freezethaw -db test_db --stf --class from_date,to_date [ --table element_copy ]
  # use database 'svconline' adn convert data of element classes
  # 'from_date' and 'to_date' from FreezeThaw to Storable
  krang_storable_freezethaw -db test_db --fts --class from_date,to_date [ --table element_copy ]


DESCRIPTION

This script helps migrating between 32bit and 64bit machines.

It converts element data holding serialized strings from Storable-strings to FreezeThaw-strings and vice versa. It operates directly on the database configured in conf/krang.conf.

Storable strings are not portable between 32bit and 64bit architectures, while FreezeThaw strings are. As Krang uses Storable, migrating between 32bit and 64bit machines requires to temporarily replace Storable strings with FreezeThaw strings. Here's the workflow:

1. On the source machine, run the script with the --stf (storable-to-freezethaw) switch.

2. Copy the database to the target machine

3. On the target machine, run the script with the --fts (freezethaw-to-storable) switch.


OPTIONS