Merge pull request 'chore: prep v0.1.0 for the catalog (fix SQLite migration + icon)' (#13) from chore/catalog-release-prep into main

Reviewed-on: #13
This commit is contained in:
padreug 2026-07-19 21:17:11 +00:00
commit 42a5f12fad
3 changed files with 9 additions and 6 deletions

View file

@ -5,7 +5,7 @@
"repo": "https://git.atitlan.io/aiolabs/chatelet", "repo": "https://git.atitlan.io/aiolabs/chatelet",
"short_description": "Nostr-native room rentals (Airbnb-style) for LNbits", "short_description": "Nostr-native room rentals (Airbnb-style) for LNbits",
"description": "", "description": "",
"tile": "/chatelet/static/image/chatelet.png", "tile": "/chatelet/static/image/aio.png",
"min_lnbits_version": "1.4.0", "min_lnbits_version": "1.4.0",
"contributors": [ "contributors": [
{ {

View file

@ -86,13 +86,16 @@ async def m001_initial(db):
""" """
) )
# Overlap checks scan by room + status; index the hot path. # 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( await db.execute(
"CREATE INDEX idx_chatelet_bookings_room_status " "CREATE INDEX chatelet.idx_bookings_room_status "
"ON chatelet.bookings (room_id, status);" "ON bookings (room_id, status);"
) )
await db.execute( await db.execute(
"CREATE INDEX idx_chatelet_bookings_payment_hash " "CREATE INDEX chatelet.idx_bookings_payment_hash "
"ON chatelet.bookings (payment_hash);" "ON bookings (payment_hash);"
) )
# Manual owner-side blocks (maintenance, personal use). # Manual owner-side blocks (maintenance, personal use).
@ -109,7 +112,7 @@ async def m001_initial(db):
""" """
) )
await db.execute( await db.execute(
"CREATE INDEX idx_chatelet_blocks_room ON chatelet.blocks (room_id);" "CREATE INDEX chatelet.idx_blocks_room ON blocks (room_id);"
) )

BIN
static/image/aio.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB