mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Add some MYSQL types to the ddl2cpp script
This commit is contained in:
parent
2b5f8d7666
commit
cab4bc79ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user