Skip to content

Commit

Permalink
do not use auto ID for installed apps table
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 2, 2025
1 parent 82b5ba9 commit d5a58bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13997,7 +13997,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
*/
tableName: "ui_table_installed_apps",
fields: [
{name: "id", fieldType: "INT PRIMARY KEY AUTOINCREMENT"},
{name: "id", fieldType: "INTEGER"},
{name: "icon_position", fieldType: "STRING"},
{name: "base_component_id", fieldType: "STRING"},
{name: "content_hash", fieldType: "STRING"},
Expand Down Expand Up @@ -14543,8 +14543,8 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
let alreadyExists = yz.uiDb.sqlui("select * from ui_table_installed_apps where code_id = ?", [app.code_id])
if (alreadyExists.length == 0) {
yz.debug.sqluiDebug("hdfjkshfjkdshfudisyouidsfyffdsbyoiudfsyboibdsfyioudsfbyoibsefyfdsidfsiobdsfoidfsbiodfsoi",
"insert into ui_table_installed_apps ( code_id , base_component_id, logo, display_name,component_type) values (?,?,?,?,?)",
[app.code_id,app.base_component_id,app.logo_url, app.displayName, app.component_type])
"insert into ui_table_installed_apps ( id , code_id , base_component_id, logo, display_name,component_type) values (?,?,?,?,?,?)",
[yz.uiDb.uiDbNextId ++,app.code_id,app.base_component_id,app.logo_url, app.displayName, app.component_type])
}
yz.debug.endOfDebugSection()
},
Expand Down

0 comments on commit d5a58bb

Please sign in to comment.