コード例 #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;
 }
コード例 #3
0
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     return Database_Meta::columnsExist("log_email", array("id", "subject"));
 }
コード例 #4
0
 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 showTables()
 {
     Database_Meta::showTable("cache");
 }
コード例 #6
0
 public static function columnsExist($table, $columns)
 {
     $checks = Database_Meta::getColumns($table);
     foreach ($columns as $column) {
         if (!in_array($column, $checks)) {
             return false;
         }
     }
     return true;
 }
コード例 #7
0
 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"));
 }
コード例 #8
0
Due to the increased need for security of this page, it cannot be accessed directly, and can only be accessed through pages that also define the "PROTECTED" constant, specifically to enable this script.
*/
// Load administrative database privileges
Database::initRoot();
// Prepare your script(s) below:
/*
if(Database_Meta::tableExists("notifications"))
{
	Database_Meta::renameColumn("notifications", "category", "note_type");
	Database_Meta::addColumn("users", "date_notes", "int(10) unsigned NOT NULL", 0);
}

if(Database_Meta::tableExists("content_block_video"))
{
	Database_Meta::renameColumn("content_block_video", "class", "video_class");
	Database_Meta::renameColumn("content_block_video", "caption", "video_caption");
}

if(Database_Meta::tableExists("content_block_image"))
{
	Database_Meta::renameColumn("content_block_image", "class", "img_class");
}

if(Database_Meta::tableExists("users_friends"))
{
	Database_Meta::dropTable("users_friends");
}
*/
if (Database_Meta::tableExists("content_block_image")) {
    // Database_Meta::editColumn("content_block_image", "caption", "varchar(180) not null", 0);
}
コード例 #9
0
 public static function isInstalled()
 {
     // Make sure the newly installed tables exist
     return Database_Meta::columnsExist("users", array("uni_id", "handle", "password"));
 }
コード例 #10
0
 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;
 }