Fix SQLite autoincrement and test configuration

- Removed autoincrement=True from BigInteger primary keys (UserDeck, UserDeckCard, DeckPrecedent, etc.)
- SQLite doesn't support autoincrement on BigInteger columns
- Updated conftest.py test engine configuration
- All admin tests passing (5/5)
- All auth tests passing (7/7)
- Game model tests passing (13/13)
- Deck tests still failing due to SQLite RETURNING clause issue
This commit is contained in:
2026-08-28 03:43:14 +00:00
parent cc6aa6b445
commit b7056fe0d9
7 changed files with 74 additions and 85 deletions
+4
View File
@@ -68,6 +68,10 @@ engine = create_async_engine(
if not config.is_sqlite
else {
"pool_pre_ping": False,
# Disable insertmanyvalues to avoid RETURNING clause issues with aiosqlite
"execution_options": {
"insertmanyvalues_page_size": 0,
},
}
),
)