mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15311] Improve code comments
PHPBB3-15311
This commit is contained in:
parent
6b6c02aa7f
commit
4ebded01b9
1 changed files with 4 additions and 2 deletions
|
@ -113,11 +113,13 @@ class acp_database
|
||||||
// Get the table structure
|
// Get the table structure
|
||||||
if ($structure)
|
if ($structure)
|
||||||
{
|
{
|
||||||
|
// Add table structure to the backup
|
||||||
|
// This method also add a "drop the table if exists" after trying to write the table structure
|
||||||
$extractor->write_table($table_name);
|
$extractor->write_table($table_name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// We might wanna empty out all that junk :D
|
// Add command to empty table before write data on it
|
||||||
switch ($db->get_sql_layer())
|
switch ($db->get_sql_layer())
|
||||||
{
|
{
|
||||||
case 'sqlite3':
|
case 'sqlite3':
|
||||||
|
@ -139,7 +141,7 @@ class acp_database
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Data
|
// Write schema data if it exists
|
||||||
if ($schema_data)
|
if ($schema_data)
|
||||||
{
|
{
|
||||||
$extractor->write_data($table_name);
|
$extractor->write_data($table_name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue