A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
783 B

  1. CREATE TABLE cache (
  2. cache_id BINARY(32) NOT NULL,
  3. cache_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  4. cache_queries INT(4) NOT NULL DEFAULT 0,
  5. cache_process_time DOUBLE NOT NULL DEFAULT 0,
  6. cache_possible_miss BOOLEAN NOT NULL DEFAULT 0,
  7. PRIMARY KEY (cache_id)
  8. );
  9. CREATE INDEX cache_time_idx ON cache (cache_time);
  10. CREATE TABLE cache_data (
  11. cdata_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  12. cdata_cache_id BINARY(32) NOT NULL,
  13. cdata_url VARCHAR(1024) NOT NULL,
  14. cdata_confidence DOUBLE NOT NULL DEFAULT 0,
  15. cdata_skipped BOOLEAN NOT NULL DEFAULT 0,
  16. cdata_excluded BOOLEAN NOT NULL DEFAULT 0,
  17. PRIMARY KEY (cdata_id),
  18. FOREIGN KEY (cdata_cache_id) REFERENCES cache (cache_id)
  19. ON DELETE CASCADE ON UPDATE CASCADE
  20. );