Skip to content

Commit

Permalink
Don't use autogenerated ID for UI DB tables
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 1, 2025
1 parent 8b743c5 commit 5aec1af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13458,8 +13458,10 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
if (steps && (steps.length > 0)) {
lastTraceid = steps[steps.length - 1]
}
yz.uiDb.sqlui("INSERT INTO ui_table_debug_sql_log ( debug_tracer_id , sql_statement , fk_parent_debug_trace_log_id , debug_tick , caller_file_name , caller_line_number ) VALUES (?,?,?,?,?,?)",
debugger
yz.uiDb.sqlui("INSERT INTO ui_table_debug_sql_log ( id , debug_tracer_id , sql_statement , fk_parent_debug_trace_log_id , debug_tick , caller_file_name , caller_line_number ) VALUES (?,?,?,?,?,?,?)",
[
yz.uiDb.uiDbNextId ++,
dbgCode,
sql,
lastTraceid,
Expand Down Expand Up @@ -13902,7 +13904,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
await yz.uiDb.createAlaSqlTable({
tableName: "ui_table_debug_sql_log",
fields: [
{name: "id", fieldType: "INT PRIMARY KEY AUTOINCREMENT"},
{name: "id", fieldType: "INTEGER"},
{name: "sql_statement", fieldType: "STRING"},
{name: "fk_parent_debug_trace_log_id", fieldType: "INTEGER"},
{name: "fk_debug_id", fieldType: "STRING"},
Expand Down Expand Up @@ -14437,6 +14439,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
uiDbTableData: {},
uiDbGlobalVarChangeEvents: {},
uiDbGlobalVars: {},
uiDbNextId: 1,
},
appHelpers: {
addNewAppToRunByBCI: function( { appInstanceId, baseComponentId } ) {
Expand Down

0 comments on commit 5aec1af

Please sign in to comment.