Remove "WITH OIDS" on table creation

This commit is contained in:
Cédric Krier committed 2008-06-16 23:47:45 +02:00
1 parent f796a4f394
commit 80085fb68a
1 file changed
+2 -2
+2 -2
View File
@@ -371,7 +371,7 @@ class ORM(object):
if not cursor.rowcount:
cursor.execute("CREATE TABLE \"%s\" " \
"(id SERIAL NOT NULL, " \
"PRIMARY KEY(id)) WITH OIDS" % self._table)
"PRIMARY KEY(id))" % self._table)
create = True
if self._log_access:
logs = {
@@ -461,7 +461,7 @@ class ORM(object):
"(\"%s\" INTEGER NOT NULL REFERENCES \"%s\" " \
"ON DELETE CASCADE, " \
"\"%s\" INTEGER NOT NULL REFERENCES \"%s\" " \
"ON DELETE CASCADE) WITH OIDS" % \
"ON DELETE CASCADE)" % \
(field._rel, field._id1, self._table,
field._id2, ref))
cursor.execute("CREATE INDEX \"%s_%s_index\" " \