From 2c057bac4fe8d3f2e97ba9304df634ffae9c783b Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Sun, 17 Dec 2023 11:33:10 -0700 Subject: [PATCH] fix: for SQL, int64 generates a bigint --- tm_admin/generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tm_admin/generator.py b/tm_admin/generator.py index 4a71e4a1..59e27d1a 100755 --- a/tm_admin/generator.py +++ b/tm_admin/generator.py @@ -56,7 +56,7 @@ def __init__(self, self.yaml = YamlFile(filespec) self.createTypes() self.yaml2py = {'int32': 'int', - 'int64': 'bigint', + 'int64': 'int', 'bool': 'bool', 'string': 'str', 'bytes': 'bytes', @@ -66,7 +66,7 @@ def __init__(self, } self.yaml2sql = {'int32': 'int', - 'int64': 'int', + 'int64': 'bigint', 'bool': 'bool', 'string': 'character varying', 'bytes': 'bytea',