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

@ -38,6 +38,8 @@ class DictField(PhangoField):
self.error_default='Sorry, the json dict is invalid'
self.set_default='NOT NULL'
self.type_sql='longtext'
def check(self, value):
@ -73,7 +75,7 @@ class DictField(PhangoField):
def get_type_sql(self):
return 'TEXT '+self.set_default
return 'JSON '+self.set_default
def show_formatted(self, value):