chore: tidy up project structure and normalize formatting

This commit is contained in:
Your Name
2026-02-19 22:43:14 +02:00
parent 47eb1af7ab
commit 3dcbd4a888
29 changed files with 385 additions and 11624 deletions

View File

@@ -12,7 +12,7 @@ pub fn init_db(conn: &Connection) -> Result<(), rusqlite::Error> {
[],
)?;
// Migrate clients table add new columns (safe to re-run)
// Migrate clients table - add new columns (safe to re-run)
let migration_columns = [
"ALTER TABLE clients ADD COLUMN company TEXT",
"ALTER TABLE clients ADD COLUMN phone TEXT",
@@ -46,7 +46,7 @@ pub fn init_db(conn: &Connection) -> Result<(), rusqlite::Error> {
[],
)?;
// Migrate projects table add budget columns (safe to re-run)
// Migrate projects table - add budget columns (safe to re-run)
let project_migrations = [
"ALTER TABLE projects ADD COLUMN budget_hours REAL DEFAULT NULL",
"ALTER TABLE projects ADD COLUMN budget_amount REAL DEFAULT NULL",
@@ -111,7 +111,7 @@ pub fn init_db(conn: &Connection) -> Result<(), rusqlite::Error> {
[],
)?;
// Migrate invoices table add template_id column (safe to re-run)
// Migrate invoices table - add template_id column (safe to re-run)
let invoice_migrations = [
"ALTER TABLE invoices ADD COLUMN template_id TEXT DEFAULT 'clean'",
];