Fixed SD Promt
This commit is contained in:
@@ -86,6 +86,10 @@ async def _migrate_messages_columns(db):
|
||||
await db.execute("ALTER TABLE messages ADD COLUMN image_prompt TEXT")
|
||||
if "image_path" not in cols:
|
||||
await db.execute("ALTER TABLE messages ADD COLUMN image_path TEXT")
|
||||
if "image_prompt_alt" not in cols:
|
||||
await db.execute("ALTER TABLE messages ADD COLUMN image_prompt_alt TEXT")
|
||||
if "image_path_alt" not in cols:
|
||||
await db.execute("ALTER TABLE messages ADD COLUMN image_path_alt TEXT")
|
||||
|
||||
|
||||
async def _migrate_personas_columns(db):
|
||||
@@ -105,6 +109,8 @@ async def _migrate_personas_columns(db):
|
||||
await db.execute("ALTER TABLE personas ADD COLUMN avatar_path TEXT DEFAULT ''")
|
||||
if "alternate_greetings_json" not in cols:
|
||||
await db.execute("ALTER TABLE personas ADD COLUMN alternate_greetings_json TEXT DEFAULT '[]'")
|
||||
if "appearance_prose" not in cols:
|
||||
await db.execute("ALTER TABLE personas ADD COLUMN appearance_prose TEXT DEFAULT ''")
|
||||
|
||||
|
||||
async def _migrate_sessions_columns(db):
|
||||
@@ -170,3 +176,5 @@ async def _migrate_characters_columns(db):
|
||||
await db.execute("ALTER TABLE characters ADD COLUMN avatar_path TEXT DEFAULT ''")
|
||||
if "alternate_greetings_json" not in cols:
|
||||
await db.execute("ALTER TABLE characters ADD COLUMN alternate_greetings_json TEXT DEFAULT '[]'")
|
||||
if "appearance_prose" not in cols:
|
||||
await db.execute("ALTER TABLE characters ADD COLUMN appearance_prose TEXT DEFAULT ''")
|
||||
|
||||
Reference in New Issue
Block a user