revert sea-orm because of issue with table list
This commit is contained in:
parent
176735fae1
commit
ae32a57181
@ -31,13 +31,13 @@ lazy_static = "^1.4.0"
|
|||||||
itertools = "^0.10.5"
|
itertools = "^0.10.5"
|
||||||
serde = "^1.0.158"
|
serde = "^1.0.158"
|
||||||
serde_derive = "^1.0.158"
|
serde_derive = "^1.0.158"
|
||||||
sea-orm = { version = "^0.11.1", features = [], default-features = false }
|
sea-orm = { version = "^0.10.6", features = [], default-features = false }
|
||||||
actix-admin-macros = { version = "0.4.0", path = "actix_admin_macros" }
|
actix-admin-macros = { version = "0.4.0", path = "actix_admin_macros" }
|
||||||
derive_more = "0.99.17"
|
derive_more = "0.99.17"
|
||||||
regex = "1.7.1"
|
regex = "1.7.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
sea-orm = { version = "^0.11.1", features = [ "sqlx-sqlite", "runtime-actix-native-tls", "macros" ], default-features = true }
|
sea-orm = { version = "^0.10.6", features = [ "sqlx-sqlite", "runtime-actix-native-tls", "macros" ], default-features = true }
|
||||||
actix-rt = "2.8.0"
|
actix-rt = "2.8.0"
|
||||||
azure_auth = { path = "./examples/azure_auth/azure_auth" }
|
azure_auth = { path = "./examples/azure_auth/azure_auth" }
|
||||||
oauth2 = "4.3"
|
oauth2 = "4.3"
|
||||||
|
@ -87,7 +87,6 @@ pub fn derive_actix_admin_view_model(input: proc_macro::TokenStream) -> proc_mac
|
|||||||
async fn create_entity(db: &DatabaseConnection, mut model: ActixAdminModel) -> Result<ActixAdminModel, ActixAdminError> {
|
async fn create_entity(db: &DatabaseConnection, mut model: ActixAdminModel) -> Result<ActixAdminModel, ActixAdminError> {
|
||||||
let new_model = ActiveModel::from(model.clone());
|
let new_model = ActiveModel::from(model.clone());
|
||||||
let insert_operation = Entity::insert(new_model).exec(db).await?;
|
let insert_operation = Entity::insert(new_model).exec(db).await?;
|
||||||
|
|
||||||
model.primary_key = Some(insert_operation.last_insert_id.to_string());
|
model.primary_key = Some(insert_operation.last_insert_id.to_string());
|
||||||
|
|
||||||
Ok(model)
|
Ok(model)
|
||||||
|
Loading…
Reference in New Issue
Block a user