Commit 1dc72fe8 authored by Justin Bronn's avatar Justin Bronn
Browse files

Now take advantage of new argument accepted by `AddGeometryColumn` in...

Now take advantage of new argument accepted by `AddGeometryColumn` in SpatiaLite 2.3 that allows geometry columns to specified as `NOT NULL`.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@10443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent bbe37492
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -25,8 +25,9 @@ class SpatiaLiteField(Field):
               style.SQL_FIELD(gqn(self.column)) + ', ' +
               style.SQL_FIELD(str(self.srid)) + ', ' +
               style.SQL_COLTYPE(gqn(self.geom_type)) + ', ' +
               style.SQL_KEYWORD(str(self.dim)) + ');')

               style.SQL_KEYWORD(str(self.dim)) + ', ' +
               style.SQL_KEYWORD(str(int(not self.null))) +
               ');')
        return sql

    def _geom_index(self, style, db_table):