gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: implicit primary keys need default t


From: gnunet
Subject: [taler-bank] branch master updated: implicit primary keys need default type
Date: Wed, 19 May 2021 08:08:09 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new d2627aa  implicit primary keys need default type
d2627aa is described below

commit d2627aaa082bc5c6ed1ab979ec1472c5db293ead
Author: MS <ms@taler.net>
AuthorDate: Wed May 19 08:08:06 2021 +0200

    implicit primary keys need default type
---
 talerbank/settings.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/talerbank/settings.py b/talerbank/settings.py
index d031d3b..e87da85 100644
--- a/talerbank/settings.py
+++ b/talerbank/settings.py
@@ -107,6 +107,11 @@ DATABASES = {}
 DBNAME = TC.value_string("bank", "database", required=True)
 DBNAME = os.environ.get("TALER_BANK_ALTDB", DBNAME)
 
+# Tells Django to add a BigAutoField column to every table that
+# doesn't have a primary key explicitly defined.  Such column will
+# then be the primary key.
+DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
+
 if not DBNAME:
     raise Exception("DB not specified (neither in config or as" "cli 
argument)")
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]