aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-25 14:19:32 -0700
committerzotlabs <mike@macgirvin.com>2017-03-25 14:19:32 -0700
commit5c63f7dd58c5b3b88efcc47120c791f92527f720 (patch)
tree13f356af3e8fe59958753a83c95447fd4ef01eaf /include/dba
parentb0b5db770db0bfc7d3e3913bfd77a178d78d75f3 (diff)
downloadvolse-hubzilla-5c63f7dd58c5b3b88efcc47120c791f92527f720.tar.gz
volse-hubzilla-5c63f7dd58c5b3b88efcc47120c791f92527f720.tar.bz2
volse-hubzilla-5c63f7dd58c5b3b88efcc47120c791f92527f720.zip
provide platform specific install script
Diffstat (limited to 'include/dba')
-rwxr-xr-xinclude/dba/dba_driver.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index e47f97387..ad1d9d194 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -15,7 +15,7 @@ class DBA {
static public $scheme = 'mysql';
static public $logging = false;
- static public $install_script = 'install/schema_mysql.sql';
+ static public $install_script = 'schema_mysql.sql';
static public $null_date = '0001-01-01 00:00:00';
static public $utc_now = 'UTC_TIMESTAMP()';
static public $tquot = "`";
@@ -46,7 +46,7 @@ class DBA {
if(!($port))
$port = 5432;
- self::$install_script = 'install/schema_postgres.sql';
+ self::$install_script = 'schema_postgres.sql';
self::$utc_now = "now() at time zone 'UTC'";
self::$tquot = '"';
self::$scheme = 'pgsql';
@@ -163,7 +163,9 @@ abstract class dba_driver {
}
function get_install_script() {
- return \DBA::$install_script;
+ if(file_exists('install/' . PLATFORM_NAME . '/' . \DBA::$install_script))
+ return 'install/' . PLATFORM_NAME . '/' . \DBA::$install_script;
+ return 'install/' . \DBA::$install_script;
}
function get_table_quote() {