mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-02 04:18:38 -04:00
Add security prices
* Import them from Gnucash's pricedb * Add support for querying prices from lua for reports * Add documentation for lua reports
This commit is contained in:
1
db.go
1
db.go
@ -22,6 +22,7 @@ func initDB() *gorp.DbMap {
|
||||
dbmap.AddTableWithName(Security{}, "securities").SetKeys(true, "SecurityId")
|
||||
dbmap.AddTableWithName(Transaction{}, "transactions").SetKeys(true, "TransactionId")
|
||||
dbmap.AddTableWithName(Split{}, "splits").SetKeys(true, "SplitId")
|
||||
dbmap.AddTableWithName(Price{}, "prices").SetKeys(true, "PriceId")
|
||||
dbmap.AddTableWithName(Report{}, "reports").SetKeys(true, "ReportId")
|
||||
|
||||
err = dbmap.CreateTablesIfNotExists()
|
||||
|
Reference in New Issue
Block a user