removed custom migration logic, integrated sqlx
native migrations, and reorganized migration files for clarity and maintainability
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user