You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,22 @@ Spanner has some limitations on schema changes which you must respect:
150
150
* A table's primary key can't be altered.
151
151
* Migrations aren't atomic since django-spanner doesn't support transactions.
152
152
153
+
### `DurationField` arithmetic doesn't work with `DateField` values ([#253](https://github.com/googleapis/python-spanner-django/issues/253))
154
+
155
+
Spanner requires using different functions for arithmetic depending on the
156
+
column type:
157
+
158
+
*`TIMESTAMP` columns (`DateTimeField`) require `TIMESTAMP_ADD` or
159
+
`TIMESTAMP_SUB`
160
+
*`DATE` columns (`DateField`) require `DATE_ADD` or `DATE_SUB`
161
+
162
+
Django doesn't provide a way to determine which database function to use.
0 commit comments