[Xerte-dev] Re: Preparation for 1.8 Release
David Goodwin
david at palepurple.co.uk
Thu Jul 12 12:44:34 BST 2012
On 12 Jul 2012, at 12:32, Pat Lockley wrote:
> I think this is a use case though
>
> Install once, delete setup (or cripple setup).
>
Yes.
> Installing a second time = upgrade and therefore a different process now?
Yes - hence 'upgrade.php'
And when someone decides they wish to trash their XOT installation / start again, they MAY not know how to clear out MySQL - so (in my mind) it makes sense to do a "drop table if exists" in the DB creation stuff.
If you don't do a drop table thing, you would have either had the case that people end up with duplicate row(s) (which I suspect would cause problem), or your code already deleted/overwrote any records that already existed?
David.
Pale Purple Ltd. (Company No: 5580814)
'Business Web Application Development and Training in PHP'
http://www.palepurple.co.uk
Office: 0845 0046746 Mobile: 07792380669
Follow us on Twitter: @PalePurpleLtd
More information about the Xerte-dev
mailing list