New method for update tables using directly old tables in mariadb

This commit is contained in:
Antonio de la Rosa 2024-04-16 01:27:29 +02:00
parent dec0613c75
commit 2599eabed0
9 changed files with 151 additions and 22 deletions

View file

@ -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):