[ticket/15311] Improve code comments

PHPBB3-15311
This commit is contained in:
Rubén Calvo 2018-05-08 14:11:21 +02:00
parent 6b6c02aa7f
commit 4ebded01b9

View file

@ -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);