-
Notifications
You must be signed in to change notification settings - Fork 0
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 #30 from toolsplus/feature/update-repository-model
Update repository with new fields and remove deprecated fields
- Loading branch information
Showing
9 changed files
with
93 additions
and
123 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
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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
# --- !Ups | ||
CREATE TABLE atlassian_host ( | ||
client_key VARCHAR PRIMARY KEY NOT NULL, | ||
key VARCHAR NOT NULL, | ||
public_key VARCHAR NOT NULL, | ||
oauth_client_id VARCHAR, | ||
shared_secret VARCHAR NOT NULL, | ||
server_version VARCHAR NOT NULL, | ||
plugins_version VARCHAR NOT NULL, | ||
base_url VARCHAR NOT NULL, | ||
product_type VARCHAR NOT NULL, | ||
description VARCHAR NOT NULL, | ||
service_entitlement_number VARCHAR, | ||
installed VARCHAR NOT NULL | ||
CREATE TABLE atlassian_host | ||
( | ||
client_key VARCHAR PRIMARY KEY NOT NULL, | ||
key VARCHAR NOT NULL, | ||
oauth_client_id VARCHAR, | ||
shared_secret VARCHAR NOT NULL, | ||
base_url VARCHAR NOT NULL, | ||
display_url VARCHAR NOT NULL, | ||
display_url_servicedesk_help_center VARCHAR NOT NULL, | ||
product_type VARCHAR NOT NULL, | ||
description VARCHAR NOT NULL, | ||
service_entitlement_number VARCHAR, | ||
entitlement_id VARCHAR, | ||
entitlement_number VARCHAR, | ||
installed VARCHAR NOT NULL | ||
); | ||
CREATE UNIQUE INDEX uq_ac_host_client_key | ||
ON atlassian_host (client_key); | ||
ON atlassian_host (client_key); | ||
CREATE INDEX uq_ac_host_base_url | ||
ON atlassian_host (base_url); | ||
ON atlassian_host (base_url); | ||
|
||
# --- !Downs | ||
DROP TABLE atlassian_host; |
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
13 changes: 7 additions & 6 deletions
13
src/test/scala/io/toolsplus/atlassian/connect/play/slick/fixtures/AtlassianHostFixture.scala
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
package io.toolsplus.atlassian.connect.play.slick.fixtures | ||
|
||
import io.toolsplus.atlassian.connect.play.api.models.DefaultAtlassianHost | ||
import io.toolsplus.atlassian.connect.play.api.models.{AtlassianHost, DefaultAtlassianHost} | ||
import io.toolsplus.atlassian.connect.play.slick.generators.AtlassianHostGen | ||
|
||
trait AtlassianHostFixture extends AtlassianHostGen { | ||
val defaultHost = DefaultAtlassianHost( | ||
val defaultHost: DefaultAtlassianHost = DefaultAtlassianHost( | ||
"a890cfe7-3518-3920-b0b5-6fa412a7f3d4", | ||
"io.toolsplus.atlassian.connect.play.scala.seed", | ||
"MIGfMA0GCSqGDc10pQ4Xo+l/BaWhmiHXDDQ/tOjgfqaDxiXuIi/Jhk4D73aHbL9FwIDAQAB", | ||
None, | ||
"LkbauUXN71J8jxRi9Nbf+8dwGtXxqta+Fu6k86aF+0IIzxkZ/GlggElYVoCqQg", | ||
"100035", | ||
"1.2.35", | ||
"https://example.atlassian.net", | ||
"https://example.atlassian.net", | ||
"https://example.atlassian.net", | ||
"jira", | ||
"Atlassian JIRA at https://example.atlassian.net", | ||
None, | ||
None, | ||
None, | ||
installed = true | ||
) | ||
val host = atlassianHostGen.sample.getOrElse(defaultHost) | ||
val host: DefaultAtlassianHost = atlassianHostGen.sample.getOrElse(defaultHost) | ||
} |
Oops, something went wrong.