AudioDidact\DB\MySQLDAL::makeAlterQuery
Generates SQL query to add missing columns to the given tables
Signature
protected function makeAlterQuery(array
$currentTables,
array
$correctTables )
Parameters
$currentTables
—
array
- dictionary in the form of ["tableName"=>[table_schema]] representing the values
that are currently existing in the database
$correctTables
—
array
- dictionary in the form of ["tableName"=>[table_schema]] representing the correct
values
Returns
- string
Test Coverage
Information
- Coverage: 10/11 Lines (90.909090909091%)
- Tests: 1
- Passed: 1 (100%)
Tests
- [ PASSED ] — MySQLDALTest::testUpdateDB