|
|
|
@ -59,7 +59,7 @@ func NewDBConnection() *InsightDBConnector {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (c *InsightDBConnector) CreateTables() {
|
|
|
|
func (c *InsightDBConnector) CreateTables() {
|
|
|
|
tableCreationScripts := []string{"create-insight-user-table.sql", "create-insight-timeentry-table.sql"}
|
|
|
|
tableCreationScripts := []string{"create-insight-user-table.sql", "create-insight-timeEntry-table.sql"}
|
|
|
|
|
|
|
|
|
|
|
|
for _, scriptName := range tableCreationScripts {
|
|
|
|
for _, scriptName := range tableCreationScripts {
|
|
|
|
c.ExecuteSqlScript(InsightDatabaseName, scriptName)
|
|
|
|
c.ExecuteSqlScript(InsightDatabaseName, scriptName)
|
|
|
|
|