n4ze3m / dialoqbase

Create chatbots with ease
https://dialoqbase.n4ze3m.com/
MIT License
1.6k stars 264 forks source link

No models avaiable after update 1.2 #128

Closed phpia closed 11 months ago

phpia commented 11 months ago

Captura desde 2023-10-24 14-56-23

Hi! It seems that I cant select any model when create a chatbot Also table dialoqbasemodels is empty

It seems some problem with prisma

Thanks

phpia commented 11 months ago

A migration failed to apply. New migrations cannot be applied before the error is recovered from. Read more about how to resolve migration issues in a production database: https://pris.ly/d/migrate-resolve

Migration name: q_14

Database error code: 42701

Database error: ERROR: column "options" of relation "Bot" already exists

DbError { severity: "ERROR", parsedseverity: Some(Error), code: SqlState(E42701), message: "column \"options\" of relation \"Bot\" already exists", detail: None, hint: None, position: None, where: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("tablecmds.c"), line: Some(6254), routine: Some("check_for_column_name_collision") }

0: sql_schema_connector::apply_migration::apply_script with migration_name="q_14" at schema-engine/connectors/sql-schema-connector/src/apply_migration.rs:106 1: schema_core::commands::apply_migrations::Applying migration with migration_name="q_14" at schema-engine/core/src/commands/apply_migrations.rs:91 2: schema_core::state::ApplyMigrations at schema-engine/core/src/state.rs:197

phpia commented 11 months ago

Solved excuting sql by hand and then: server$ npx prisma migrate resolve --applied "q_14"

n4ze3m commented 11 months ago

Is it okay now? btw, you can hide unwanted models from the admin settings

phpia commented 11 months ago

Yes all working!

Very cool the admin panel for models