File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Hex v2
1+ # Project Hex
22
33![ Hex v2] ( ./public/hex-v2.png )
44
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const onRequestGet: PagesFunction<Env> = async (context) => {
2222 return json ( engines . results . map ( e => ( {
2323 id : e . id ,
2424 ownerId : e . owner_id ,
25- ownerName : e . is_system_default ? 'Hex Project' : e . owner_name ,
25+ ownerName : e . is_system_default ? 'Project Hex ' : e . owner_name ,
2626 ownerIcon : e . owner_icon ,
2727 definition : JSON . parse ( e . definition as string ) ,
2828 version : e . version ,
Original file line number Diff line number Diff line change 22-- This script creates the system user and inserts the three default engines
33-- It uses INSERT OR IGNORE to be idempotent (safe to run multiple times)
44
5+ -- Enable foreign keys and start transaction
6+ PRAGMA defer_foreign_keys= ON ;
7+ PRAGMA foreign_keys= OFF;
8+
59-- Create system user (if not exists)
610INSERT OR IGNORE INTO profiles (
711 id,
@@ -93,3 +97,6 @@ INSERT OR IGNORE INTO engines (
9397 datetime(' now' ),
9498 datetime(' now' )
9599);
100+
101+ PRAGMA foreign_keys= ON ;
102+ PRAGMA defer_foreign_keys= OFF;
You can’t perform that action at this time.
0 commit comments