NAME
convert_dlsite - convert original dlsite table to new schema
SYNOPSIS
convert_dlsite [-inv] database
SUPPORT
Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.
FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.
DESCRIPTION
After January 2009, I changed the schema extension definition of the dlsite
table, to better support additional applications and track additional
information. The updated schema has expanded field length for the commtype and
provider. Because schema extensions do not support versioning, the schema extension/table
name was kept the same and the
convert_dlsite script was written to help anyone else
who may have chosen to use this schema extension.
The program convert_dlsite reads the old format dlsite table,
and creates a dlsite table with the commtype and provider fields
extended.
The original dlsite table is saved with a suffix of "-". The new format dlsite
table replaces database.dlsite.
convert_dlsite converts a single dlsite table at a time and does
not have to be run in the particular directory where database.dlsite resides.
OPTIONS
-
-i
Ask before converting dlsite table.
-
-n
Just show what would happen.
-
-v
Be more verbose.
EXAMPLE
% convert_dlsite -i db/usarray
: convert db/usarray.dlsite ? n
% convert_dlsite -v usarray
converting usarray.dlsite
SEE ALSO
mk_dbops(1)
BUGS AND CAVEATS
The following error message can be ignored:
2009-048 22:50:04 perl *complain*: Table 'db.dlsite' has invalid length 4758.
2009-048 22:50:04 perl *complain*: If more than one process is writing to this database,
**please** turn on locking in the descriptor file.
Not thoroughly tested.
Odd things may happen if the descriptor file basename differs from the
basename of the dlsite table that is found by following the dbpath.
AUTHOR
Jennifer Eakins
Antelope User Group Contributed Software