-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NXDRIVE-1999: Direct Transfer let user select document type (#3695)
* NXDRIVE-1999: Direct Transfer let user select document type
- Loading branch information
1 parent
092580d
commit 0fe28c6
Showing
22 changed files
with
632 additions
and
59 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 |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
# To check and update on each beta release !!! | ||
versions_history = { | ||
"5.2.8": 21, | ||
"5.3.0": 22, | ||
} |
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,32 @@ | ||
from sqlite3 import Cursor | ||
|
||
from ..migration import MigrationInterface | ||
|
||
|
||
class MigrationInitial(MigrationInterface): | ||
def upgrade(self, cursor: Cursor) -> None: | ||
""" | ||
Update the States table. | ||
""" | ||
self._update_state_table(cursor) | ||
|
||
def downgrade(self, cursor: Cursor) -> None: | ||
"""Update the States table.""" | ||
# Drop Column doc_type to States table | ||
cursor.execute("ALTER TABLE States DROP COLUMN doc_type") | ||
|
||
@property | ||
def version(self) -> int: | ||
return 22 | ||
|
||
@property | ||
def previous_version(self) -> int: | ||
return 21 | ||
|
||
@staticmethod | ||
def _update_state_table(cursor: Cursor) -> None: | ||
"""Update the States table.""" | ||
cursor.execute("ALTER TABLE States ADD doc_type VARCHAR") | ||
|
||
|
||
migration = MigrationInitial() |
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
Oops, something went wrong.