New method for update tables using directly old tables in mariadb
This commit is contained in:
parent
dec0613c75
commit
2599eabed0
9 changed files with 151 additions and 22 deletions
|
|
@ -145,6 +145,8 @@ class PhangoField:
|
|||
# Value used for help strings in tooltips in forms
|
||||
|
||||
self.help=''
|
||||
|
||||
self.type_sql='varchar({})'.format(self.size)
|
||||
|
||||
def get_type_sql(self):
|
||||
"""This method is used for describe the new field in a sql language format."""
|
||||
|
|
@ -222,6 +224,7 @@ class PrimaryKeyField(PhangoField):
|
|||
self.name_form=HiddenForm
|
||||
self.required=False
|
||||
self.error_default="The value is zero"
|
||||
self.type_sql='int({})'.format(self.size)
|
||||
|
||||
def check(self, value):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue