diff --git a/config.json b/config.json index b4dd31c..5b3f34f 100644 --- a/config.json +++ b/config.json @@ -5,7 +5,7 @@ "repo": "https://git.atitlan.io/aiolabs/chatelet", "short_description": "Nostr-native room rentals (Airbnb-style) for LNbits", "description": "", - "tile": "/chatelet/static/image/chatelet.png", + "tile": "/chatelet/static/image/aio.png", "min_lnbits_version": "1.4.0", "contributors": [ { diff --git a/migrations.py b/migrations.py index 702b634..4a6cb37 100644 --- a/migrations.py +++ b/migrations.py @@ -86,13 +86,16 @@ async def m001_initial(db): """ ) # Overlap checks scan by room + status; index the hot path. + # NOTE: the schema qualifier goes on the INDEX name, not the table — SQLite + # attaches the ext DB as schema `chatelet`, and `CREATE INDEX ON schema.table` + # is a syntax error there. (Matches the restaurant extension's pattern.) await db.execute( - "CREATE INDEX idx_chatelet_bookings_room_status " - "ON chatelet.bookings (room_id, status);" + "CREATE INDEX chatelet.idx_bookings_room_status " + "ON bookings (room_id, status);" ) await db.execute( - "CREATE INDEX idx_chatelet_bookings_payment_hash " - "ON chatelet.bookings (payment_hash);" + "CREATE INDEX chatelet.idx_bookings_payment_hash " + "ON bookings (payment_hash);" ) # Manual owner-side blocks (maintenance, personal use). @@ -109,7 +112,7 @@ async def m001_initial(db): """ ) await db.execute( - "CREATE INDEX idx_chatelet_blocks_room ON chatelet.blocks (room_id);" + "CREATE INDEX chatelet.idx_blocks_room ON blocks (room_id);" ) diff --git a/static/image/aio.png b/static/image/aio.png new file mode 100644 index 0000000..63dc24b Binary files /dev/null and b/static/image/aio.png differ