removed custom migration logic, integrated sqlx native migrations, and reorganized migration files for clarity and maintainability

This commit is contained in:
2025-08-05 05:00:38 +02:00
parent 59b19a22ff
commit bc1735448a
8 changed files with 47 additions and 248 deletions

View File

@@ -1,11 +1,10 @@
use std::path::Path;
mod db;
mod migrations;
#[tokio::main]
async fn main() {
let migrations_folder = String::from("src/migrations");
let migrations_folder = String::from("./migrations");
let db_path = Path::new("owlynews.sqlite3");
let migrations_path = Path::new(&migrations_folder);