🔥 Remove SeaORM database support

This commit is contained in:
Manuel Cillero 2024-07-28 18:30:22 +02:00
parent e157576581
commit 90d4d5cde0
18 changed files with 2 additions and 1334 deletions

View file

@ -8,9 +8,6 @@ use crate::response::page::{ErrorPage, ResultPage};
use crate::service::HttpRequest;
use crate::{config, locale, service, trace};
#[cfg(feature = "database")]
use crate::db;
use actix_session::config::{BrowserSession, PersistentSession, SessionLifecycle};
use actix_session::storage::CookieSessionStore;
use actix_session::SessionMiddleware;
@ -50,20 +47,12 @@ impl Application {
// Validates the default language identifier.
LazyLock::force(&locale::LANGID_DEFAULT);
#[cfg(feature = "database")]
// Connects to the database.
LazyLock::force(&db::DBCONN);
// Registers the application's packages.
package::all::register_packages(root_package);
// Registers package actions.
package::all::register_actions();
#[cfg(feature = "database")]
// Runs pending database migrations.
package::all::run_migrations();
// Initializes the packages.
package::all::init_packages();