Compare commits
No commits in common. "42a5f12fada1a51f4f6d5c272213980e29cce0c9" and "65f5c19a9623e117e9e34a495174dc24add50f36" have entirely different histories.
42a5f12fad
...
65f5c19a96
3 changed files with 6 additions and 9 deletions
|
|
@ -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/aio.png",
|
||||
"tile": "/chatelet/static/image/chatelet.png",
|
||||
"min_lnbits_version": "1.4.0",
|
||||
"contributors": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -86,16 +86,13 @@ 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 chatelet.idx_bookings_room_status "
|
||||
"ON bookings (room_id, status);"
|
||||
"CREATE INDEX idx_chatelet_bookings_room_status "
|
||||
"ON chatelet.bookings (room_id, status);"
|
||||
)
|
||||
await db.execute(
|
||||
"CREATE INDEX chatelet.idx_bookings_payment_hash "
|
||||
"ON bookings (payment_hash);"
|
||||
"CREATE INDEX idx_chatelet_bookings_payment_hash "
|
||||
"ON chatelet.bookings (payment_hash);"
|
||||
)
|
||||
|
||||
# Manual owner-side blocks (maintenance, personal use).
|
||||
|
|
@ -112,7 +109,7 @@ async def m001_initial(db):
|
|||
"""
|
||||
)
|
||||
await db.execute(
|
||||
"CREATE INDEX chatelet.idx_blocks_room ON blocks (room_id);"
|
||||
"CREATE INDEX idx_chatelet_blocks_room ON chatelet.blocks (room_id);"
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 47 KiB |
Loading…
Add table
Add a link
Reference in a new issue