From 00389384499356508b2dfb42c95dab68662b4a1a Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Thu, 4 Oct 2012 23:59:19 -0400 Subject: [PATCH] added default option --- PLC/Parameter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PLC/Parameter.py b/PLC/Parameter.py index 14a8b189..d4927c42 100644 --- a/PLC/Parameter.py +++ b/PLC/Parameter.py @@ -19,6 +19,7 @@ class Parameter: min = None, max = None, optional = None, ro = False, + default=None, nullok = False, primary_key = False, indexed = False, @@ -43,6 +44,9 @@ class Parameter: # Whether the DB field is read-only. self.ro = ro + # default value + self.default = default + # Whether the DB field can be NULL. self.nullok = nullok -- 2.47.0