Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lms/djangoapps/courseware/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def db_type(self, connection):
elif "postgresql" in connection.settings_dict['ENGINE']:
# Pg's bigserial is implicitly unsigned (doesn't allow negative numbers) and
# goes 1-9.2x10^18
return "BIGSERIAL"
return "BIGINT"
else:
return None

Expand All @@ -31,6 +31,6 @@ def rel_db_type(self, connection):
elif connection.settings_dict['ENGINE'] == 'django.db.backends.sqlite3':
return "integer"
elif "postgresql" in connection.settings_dict['ENGINE']:
return "BIGSERIAL"
return "BIGINT"
else:
return None
Loading