Roxen.git / server / modules / tags / insert_cached_href.pike

version» Context lines:

Roxen.git/server/modules/tags/insert_cached_href.pike:323:    "PRIMARY KEY (url)";       private string request_table;    private string data_table;       public void create() {    // Failure to create tables will lead to zero return values.    request_table = get_my_table("request", ({request_table_def}));    data_table = get_my_table("data", ({data_table_def}));    +  if (request_table) {    DBManager.inhibit_backups(my_db, request_table); -  +  } +  if (data_table) {    DBManager.inhibit_backups(my_db, data_table); -  +  }       // If request_table exists but not the column out_of_date, create    // indexed column out_of_date and populate it with the sum of    // latest_request and ttl to optimize the remove_old_entrys.    if(request_table && !sizeof(sql_query("DESCRIBE " + request_table + " out_of_date"))) {    sql_query("ALTER TABLE " + request_table + " ADD COLUMN out_of_date INT UNSIGNED;");    sql_query("ALTER TABLE " + request_table + " ADD INDEX " + request_table + "(out_of_date);");    }       // Upgrade url field to hold longer strings. We must still respect a