-
-
Notifications
You must be signed in to change notification settings - Fork 28
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 #2820 from dimagi/copy-connect-v7-global-database-…
…upgrades Copy connect v7 global database upgrades
- Loading branch information
Showing
5 changed files
with
112 additions
and
20 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
29 changes: 29 additions & 0 deletions
29
app/src/org/commcare/android/database/global/models/ConnectKeyRecordV6.java
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,29 @@ | ||
package org.commcare.android.database.global.models; | ||
|
||
import org.commcare.android.storage.framework.Persisted; | ||
import org.commcare.models.framework.Persisting; | ||
import org.commcare.modern.database.Table; | ||
|
||
/** | ||
* DB model for storing the encrypted/encoded Connect DB passphrase | ||
* Used up to global DB V6 | ||
* | ||
* @author dviggiano | ||
*/ | ||
@Table(ConnectKeyRecordV6.STORAGE_KEY) | ||
public class ConnectKeyRecordV6 extends Persisted { | ||
public static final String STORAGE_KEY = "connect_key"; | ||
@Persisting(1) | ||
String encryptedPassphrase; | ||
|
||
public ConnectKeyRecordV6() { | ||
} | ||
|
||
public ConnectKeyRecordV6(String encryptedPassphrase) { | ||
this.encryptedPassphrase = encryptedPassphrase; | ||
} | ||
|
||
public String getEncryptedPassphrase() { | ||
return encryptedPassphrase; | ||
} | ||
} |
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