mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 06:51:08 +02:00
[ticket/15311] Improve code comments
PHPBB3-15311
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user