$fields
$fields : array
All of the fields this table represents.
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.
$db : \CodeIgniter\Database\SQLite3\Connection
Database connection.
$forge : \CodeIgniter\Database\SQLite3\Forge
Handle to our forge.
__construct(\CodeIgniter\Database\SQLite3\Connection $db, \CodeIgniter\Database\SQLite3\Forge $forge)
Table constructor.
\CodeIgniter\Database\SQLite3\Connection | $db | |
\CodeIgniter\Database\SQLite3\Forge | $forge |
fromTable(string $table) : \CodeIgniter\Database\SQLite3\Table
Reads an existing database table and collects all of the information needed to recreate this table.
string | $table |
dropColumn(string $column) : \CodeIgniter\Database\SQLite3\Table
Drops a column from the table.
string | $column |
modifyColumn(array $field) : \CodeIgniter\Database\SQLite3\Table
Modifies a field, including changing data type, renaming, etc.
array | $field |
dropForeignKey(string $column) : \CodeIgniter\Database\SQLite3\Table
Drops a foreign key from this table so that it won't be recreated in the future.
string | $column |
Loading…