Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Designate a primary key instead of an index

  • Loading branch information...
commit 7cbb7136f5b1c0f49dd25912c755d9cdd4b492aa 1 parent fc88993
Ian Young iangreenleaf authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  Db/Files.php
3  Db/Files.php
View
@@ -18,8 +18,7 @@ public static function init()
{
$db = Scisr_Db::getDb();
$create = <<<EOS
-CREATE TABLE IF NOT EXISTS FileInfo (file text, parsed text);
-CREATE INDEX IF NOT EXISTS Files_index_file ON FileInfo (file);
+CREATE TABLE IF NOT EXISTS FileInfo (file text PRIMARY KEY, parsed text);
EOS;
$db->exec($create);
}
Please sign in to comment.
Something went wrong with that request. Please try again.