From cab4bc79edaf01faba52419d300a9e774ab476bc Mon Sep 17 00:00:00 2001 From: Brett-Michael Green Date: Tue, 16 Jun 2020 17:15:47 -0400 Subject: [PATCH] Add some MYSQL types to the ddl2cpp script --- scripts/ddl2cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 113a80a7..4e633a1a 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -271,6 +271,7 @@ types = { 'float4': 'floating_point', # PostgreSQL 'real': 'floating_point', 'numeric': 'floating_point', # PostgreSQL + 'decimal' : 'floating_point', # MYSQL 'date': 'day_point', 'datetime': 'time_point', 'time': 'time_of_day', @@ -282,6 +283,7 @@ types = { 'timestamptz': 'time_point', # PostgreSQL 'enum': 'text', # MYSQL 'set': 'text', # MYSQL, + 'longtext' : 'text', #MYSQL 'json' : 'text', # PostgreSQL 'jsonb' : 'text', # PostgreSQL 'tinyint unsigned': 'tinyint_unsigned', #MYSQL