Table.php
system/Database/SQLite3/Table.php
1 class
16 methods
class Table
Provides missing features for altering tables that are common in other supported databases, but are missing from SQLite. These are needed in order to support migrations during testing when another database is used as the primary engine, but SQLite in memory databases are used for faster test execution.
__construct
(Connection $db, Forge $forge)
fromTable
(string $table)
run
()
dropColumn
($columns)
modifyColumn
(array $fieldsToModify)
dropPrimaryKey
()
dropForeignKey
(string $foreignName)
addPrimaryKey
(array $fields)
addForeignKey
(array $foreignKeys)
createTable
()
copyData
()
formatFields
($fields)
isIntegerType
(string $type)
isNumericType
(string $type)
formatKeys
($keys)
dropIndexes
()