Пример #1
0
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     $pass1 = Database_Meta::columnsExist("users", array("handle", "uni_id"));
     $pass2 = Database_Meta::columnsExist("users_handles", array("handle", "uni_id"));
     return $pass1 and $pass2;
 }
Пример #2
0
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     $pass1 = Database_Meta::columnsExist("authentication", array("domain", "shared_key"));
     $pass2 = Database_Meta::columnsExist("authentication_tokens", array("public_salt", "expires"));
     return $pass1 and $pass2;
 }
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     return Database_Meta::columnsExist("log_email", array("id", "subject"));
 }
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     return Database_Meta::columnsExist("site_variables", array("key_group", "key_name", "value"));
 }
Пример #5
0
 public static function sql()
 {
     Database::exec("\n\t\tCREATE TABLE IF NOT EXISTS `cache`\n\t\t(\n\t\t\t`key`\t\t\tvarchar(28)\t\t\t\t\tNOT NULL\tDEFAULT '',\n\t\t\t`value`\t\t\ttext\t\t\t\t\t\tNOT NULL\tDEFAULT '',\n\t\t\t`expire`\t\tint(10)\t\t\t\t\t\tNOT NULL\tDEFAULT '0',\n\t\t\t\n\t\t\tUNIQUE (`key`),\n\t\t\tINDEX (`expire`)\n\t\t) ENGINE=InnoDB  DEFAULT CHARSET=utf8 ;\n\t\t");
     return Database_Meta::columnsExist("cache", array("key", "value", "expire"));
 }
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     return Database_Meta::columnsExist("log_threat_tracker", array("severity", "date_logged", "threat_type", "uni_id", "ip"));
 }
Пример #7
0
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     return Database_Meta::columnsExist("users", array("uni_id", "handle", "password"));
 }
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     $pass1 = Database_Meta::columnsExist("version_control_commits", array("branch_id", "commit_id"));
     return $pass1;
 }