v5:dictionary:changetablesql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:dictionary:changetablesql [2016/03/20 23:33] – [Usage] mnewnham | v5:dictionary:changetablesql [2025/08/17 02:04] (current) – [$tableName] mnewnham | ||
---|---|---|---|
Line 20: | Line 20: | ||
===== Parameters ===== | ===== Parameters ===== | ||
==== $tableName ===== | ==== $tableName ===== | ||
- | The table name must not yet exist in the database. Names must conform to any database specific requirements such as length limitations and name casing. | + | The table name may or may not exist in the database. If it does not, then the method automatically calls [[v5: |
--------- | --------- | ||
<WRAP right tip 200px> | <WRAP right tip 200px> | ||
Line 26: | Line 26: | ||
</ | </ | ||
==== $fields ==== | ==== $fields ==== | ||
- | A string holding information regarding the columns to create in the new table. For a detailed description of the format of this string, see [[v5: | + | A string holding information regarding the columns to create in the new table. For a detailed description of the format of this string, see [[v5: |
==== $tableOptions ==== | ==== $tableOptions ==== | ||
An optional array of information that adds information regarding the table creation. This array may also contain field specific information, | An optional array of information that adds information regarding the table creation. This array may also contain field specific information, | ||
==== $dropColumns ==== | ==== $dropColumns ==== | ||
- | By default, any columns not specified in the '' | + | By default, any columns not specified in the '' |
===== Usage ===== | ===== Usage ===== | ||
<code php> | <code php> | ||
Line 44: | Line 44: | ||
$flds = " | $flds = " | ||
- | COL1 C(60) NOTNULL DEFAULT ' | + | COL1 C(60) NOTNULL DEFAULT ' |
"; | "; | ||
v5/dictionary/changetablesql.1458513207.txt.gz · Last modified: (external edit)