From 248eb584f83dc321b92912de22ec75a60ad773b9 Mon Sep 17 00:00:00 2001 From: Gary Miller Date: Thu, 4 Mar 2021 08:49:03 +1100 Subject: [PATCH] adl 1.0 change; (v1,v2) -> (key,value) --- typescript/hx-adl/src/gen-sql-alter-format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/hx-adl/src/gen-sql-alter-format.ts b/typescript/hx-adl/src/gen-sql-alter-format.ts index 3ec2aec..54842f7 100644 --- a/typescript/hx-adl/src/gen-sql-alter-format.ts +++ b/typescript/hx-adl/src/gen-sql-alter-format.ts @@ -535,7 +535,7 @@ function generateTemplate(template: Template, dbtables: DbTable[]) { const attributes: { [key: string]: {} | null } = {}; attributes['tablename'] = dbtable.name; for (const annotation of dbtable.scopedDecl.decl.annotations) { - attributes[annotation.v1.name] = annotation.v2; + attributes[annotation.key.name] = annotation.value; } return attributes; }),