-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from ReconfigureIO/feature/simulation-reports…
…-fixed add ability to upload and retrieve simulation reports
- Loading branch information
Showing
18 changed files
with
584 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Platform v0.1.0 | ||
|
||
# Platform v0.1.0 | ||
|
||
## Features | ||
- Added support for storing and retrieving Simulation Reports | ||
|
||
## Bugfixes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package migration201809061242 | ||
|
||
import ( | ||
"errors" | ||
|
||
"github.com/jinzhu/gorm" | ||
_ "github.com/jinzhu/gorm/dialects/postgres" | ||
gormigrate "gopkg.in/gormigrate.v1" | ||
) | ||
|
||
var Migration = gormigrate.Migration{ | ||
ID: "201809061242", | ||
Migrate: func(tx *gorm.DB) error { | ||
err := tx.AutoMigrate(&SimulationReport{}).Error | ||
return err | ||
}, | ||
Rollback: func(tx *gorm.DB) error { | ||
return errors.New("Migration failed. Hit rollback conditions while adding Simulation Reports table to DB") | ||
}, | ||
} |
Oops, something went wrong.