mirror of
https://github.com/danielbrendel/hortusfox-web.git
synced 2026-01-08 22:01:08 -06:00
18 lines
411 B
PHP
18 lines
411 B
PHP
<?php
|
|
|
|
/**
|
|
* This class extends the base model class and represents your associated table
|
|
*/
|
|
class VersionModel extends \Asatru\Database\Model {
|
|
/**
|
|
* @return string
|
|
*/
|
|
public static function getSqlVersion()
|
|
{
|
|
try {
|
|
return static::raw('SELECT VERSION() AS version')->first()->get('version');
|
|
} catch (\Exception $e) {
|
|
return '';
|
|
}
|
|
}
|
|
} |