mirror of
https://github.com/tsirysndr/music-player.git
synced 2026-01-09 13:18:05 -05:00
15 lines
306 B
Rust
15 lines
306 B
Rust
use std::fs::File;
|
|
|
|
use sea_orm_migration::prelude::*;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
File::create(
|
|
std::env::var("DATABASE_URL")
|
|
.unwrap()
|
|
.replace("sqlite://", ""),
|
|
)
|
|
.expect("Failed to create database file");
|
|
cli::run_cli(migration::Migrator).await;
|
|
}
|