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

@ -44,6 +44,8 @@ class JsonField(PhangoField):
self.set_default='NOT NULL'
self.type_sql='longtext'
def check(self, value):
if type(value).__name__=='str':
@ -75,7 +77,7 @@ class JsonField(PhangoField):
def get_type_sql(self):
return 'LONGTEXT '+self.set_default
return 'JSON '+self.set_default
def show_formatted(self, value):