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.

1234567891011121314151617181920
  1. CREATE TABLE cache (
  2. cache_id BLOB NOT NULL,
  3. cache_time INTEGER NOT NULL DEFAULT (STRFTIME('%s', 'now')),
  4. cache_queries INTEGER NOT NULL DEFAULT 0,
  5. cache_process_time REAL NOT NULL DEFAULT 0,
  6. cache_possible_miss INTEGER 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 ROWID,
  12. cdata_cache_id BLOB NOT NULL,
  13. cdata_url TEXT NOT NULL,
  14. cdata_confidence REAL NOT NULL DEFAULT 0,
  15. cdata_skipped INTEGER NOT NULL DEFAULT 0,
  16. cdata_excluded INTEGER 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. );