ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:axmls:setupgrademethod

This is an old revision of the document!


setUpgradeMethod

Syntax
string setUpgradeMethod (
  optional string $method = ''
  )

Description

Sets the method to be used for upgrading an existing database

Use this method to specify how existing database objects should be upgraded. The method option can be set to ALTER, REPLACE, BEST, or NONE. ALTER attempts to alter each database object directly, REPLACE attempts to rebuild each object from scratch, BEST attempts to determine the best upgrade method for each object, and NONE disables upgrading.

This method is not yet used by AXMLS, but exists for backward compatibility. The ALTER method is automatically assumed when the adoSchema object is instantiated; other upgrade methods are not currently supported.

v5/axmls/setupgrademethod.1447634620.txt.gz · Last modified: 2017/04/21 11:22 (external edit)