This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
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 #203 from jfucci/master
Multiple repository support
- Loading branch information
Showing
7 changed files
with
106 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,4 +148,8 @@ desc textarea{ | |
|
||
#nameDiv { | ||
margin-top: 30px | ||
} | ||
} | ||
|
||
#repos { | ||
display: block; | ||
} |
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,16 @@ | ||
// This file is to help migrate the old database which had projects with a single | ||
// "repositoryUrl" property to a new database in which projects have a "repositories" array | ||
// holding the old repositoryUrl as the first repository and having the ability to add more | ||
|
||
var projectsWithRepoUrl = db.projects.find({ "repositoryUrl": { $exists: true } }); | ||
|
||
while(projectsWithRepoUrl.hasNext()) { | ||
db.projects.update( | ||
{ "repositoryUrl": { $exists: true } }, | ||
{ | ||
$set: { repositories: [ projectsWithRepoUrl.next().repositoryUrl ] }, | ||
$unset: { repositoryUrl: 1 } | ||
} | ||
); | ||
} | ||
|
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