changeset 576:0837f419fa3d

Rename some functions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 01 Oct 2014 11:28:23 +0300
parents 1ec34a220df3
children ba521a7e7653
files managedb.php
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/managedb.php	Sat Sep 20 02:03:07 2014 +0300
+++ b/managedb.php	Wed Oct 01 11:28:23 2014 +0300
@@ -26,7 +26,7 @@
 //
 // Helper functions
 //
-function stGetTableSchema($dbh, $data)
+function stDBGetTableSchema($dbh, $data)
 {
   $res = array();
   $driver = $dbh->getAttribute(PDO::ATTR_DRIVER_NAME);
@@ -73,7 +73,7 @@
 }
 
 
-function stCreateOneTable($dbh, $name, $schema)
+function stDBCreateOneTable($dbh, $name, $schema)
 {
 //  echo "CREATE TABLE ".$name ." (".$schema.")\n";
   return (stDBExecSQL($dbh, "CREATE TABLE ".$name." (".$schema.")") !== FALSE) ? TRUE : FALSE;
@@ -88,7 +88,7 @@
   {
     echo " - '".$name."'\n";
     stDBExecSQL($dbh, "DROP TABLE IF EXISTS ".$name);
-    if (!stCreateOneTable($dbh, $name, stGetTableSchema($dbh, $schemaData)) && !$upgrade)
+    if (!stDBCreateOneTable($dbh, $name, stDBGetTableSchema($dbh, $schemaData)) && !$upgrade)
       return FALSE;
   }
   return TRUE;