[mirrorbrain-commits] r7973 - in /trunk: mirrordoctor/mb/conn.py sql/schema-postgresql.sql

From: <poeml_at_mirrorbrain.org>
Date: Wed, 10 Mar 2010 04:22:20 -0000
Author: poeml
Date: Wed Mar 10 05:22:19 2010
New Revision: 7973

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7973&view=rev
Log:
File sizes stored in the hash table can be larger than integers.

Modified:
    trunk/mirrordoctor/mb/conn.py
    trunk/sql/schema-postgresql.sql

Modified: trunk/mirrordoctor/mb/conn.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/conn.py?rev=7973&r1=7972&r2=7973&view=diff
==============================================================================
--- trunk/mirrordoctor/mb/conn.py (original)
+++ trunk/mirrordoctor/mb/conn.py Wed Mar 10 05:22:19 2010
@@ -181,7 +181,7 @@
             CREATE TABLE "hash" (
                     "file_id" INTEGER REFERENCES filearr PRIMARY KEY,
                     "mtime" INTEGER NOT NULL,
-                    "size"  INTEGER NOT NULL,
+                    "size" BIGINT NOT NULL,
                     "md5"    BYTEA NOT NULL,
                     "sha1"   BYTEA NOT NULL,
                     "sha256" BYTEA NOT NULL,

Modified: trunk/sql/schema-postgresql.sql
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/sql/schema-postgresql.sql?rev=7973&r1=7972&r2=7973&view=diff
==============================================================================
--- trunk/sql/schema-postgresql.sql (original)
+++ trunk/sql/schema-postgresql.sql Wed Mar 10 05:22:19 2010
@@ -25,7 +25,7 @@
 CREATE TABLE "hash" (
         "id" INTEGER REFERENCES filearr PRIMARY KEY,
         "mtime" INTEGER NOT NULL,
-        "size"  INTEGER NOT NULL,
+        "size" BIGINT NOT NULL,
         "md5"    BYTEA NOT NULL,
         "sha1"   BYTEA NOT NULL,
         "sha256" BYTEA NOT NULL,




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Mar 10 2010 - 04:22:23 GMT

This archive was generated by hypermail 2.2.0 : Wed Mar 10 2010 - 04:32:10 GMT