How do I convert DB schema?
Say, your current DB has the following items: "name,email,web site,phone
number,time stamp,password" with sizes "20,20,40,25,15,20". You want to
change it to "name,phone number,email,status,comment,time stamp,password"
with sizes "30,25,20,15,150,15,20". What you want to do is, first backup
your old DB (the .txt file) and its configuration .ini file by copying
the files to wherever you want. This way if something went wrong (like
electricity went out) during DB conversion, you can restore the file by
copying old DB and .ini file back. Please note that even if electricity
went out, POD should recover and resume the DB conversion operation
just fine (but you probably would like to be as safe as possible with
important data). After you copied the files, open DBAdmin.html, fill in
the DB name (likely "fldb") and password, then in the multi-line
text box "Info of the previous entry items" under "Database Entry
Info Configuration" section) fill in:
name,20
email,20
web site,40
phone number,25
time stamp,15
password,20
Effectively you're assigning your current DB item names as previous item
names, which is truely the case after DB conversion. (of course, an easier
way would by simply copy the content that's in the multi-line text box "Info
of the current entry items" under "Database Entry Info Configuration"
section to the "Info of the previous entry items" box). Then in the
"Info of the current entry items" boxk, put the new items names and sizes
as the "Names of current entry items" etc. Of course, the data type should
be changed to new types too. Data types for the old DB items do
not matter, so you can either delete them from the "Info of the previous
entry items" box or leave them it, which should not do harm either.
At last, check the "Convert to new items next time POD is run?" checkbox.
Fill in password at the bottom of configuration page, and press the submit
button to submit the new configurations online. Now you're all set. However,
please note that after the submission, the DB schema is not changed yet.
Only when POD (fldb.exe) is launched next time will your new DB schema
be detected and actual conversion take place. Therefore, you should
probably want to visit your DB after you finished configuration of the
new schema, which will complete the whole conversion process.