chore: tidy up project structure and normalize formatting
This commit is contained in:
@@ -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'",
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user