Skip to content

Commit 6f5fb0f

Browse files
author
Thinh Nguyen
authored
Merge pull request #38 from kushalbakshi/main
Add `session_id` to `session_with_datetime`
2 parents 5b92b6a + d5e0001 commit 6f5fb0f

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/release.yaml

-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ on:
44
jobs:
55
make_github_release:
66
uses: datajoint/.github/.github/workflows/make_github_release.yaml@main
7-
pypi_release:
8-
needs: make_github_release
9-
uses: datajoint/.github/.github/workflows/pypi_release.yaml@main
10-
secrets:
11-
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}}
12-
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
13-
with:
14-
UPLOAD_URL: ${{needs.make_github_release.outputs.release_upload_url}}
157
mkdocs_release:
168
uses: datajoint/.github/.github/workflows/mkdocs_release.yaml@main
179
permissions:

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.
44

5+
## [0.2.0] - 2024-01-25
6+
7+
+ Add - `session_id` attribute to `Session` in `session_with_datetime.py`
8+
+ Update - Remove PyPI release from GitHub Actions workflow
9+
510
## [0.1.7] - 2023-11-30
611

7-
+ Allow null value for `session_datetime` in `session_with_id`
12+
+ Update - Allow null value for `session_datetime` in `session_with_id`
813

914
## [0.1.6] - 2023-09-18
1015

@@ -48,6 +53,7 @@ Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
4853
+ Add - GitHub Action release process
4954
+ Add - `session` schema
5055

56+
[0.2.0]: https://github.com/datajoint/element-session/releases/tag/0.2.0
5157
[0.1.7]: https://github.com/datajoint/element-session/releases/tag/0.1.7
5258
[0.1.6]: https://github.com/datajoint/element-session/releases/tag/0.1.6
5359
[0.1.5]: https://github.com/datajoint/element-session/releases/tag/0.1.5

element_session/session_with_datetime.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ class Session(dj.Manual):
5353
"""Central Session table
5454
5555
Attributes:
56-
Subject (foreign key): Key for Subject table
56+
Subject (foreign key): Primary key from Subject table
5757
session_datetime (datetime): date and time of the session
58+
session_id (int, optional): numerical session identifier
5859
"""
5960

6061
definition = """
6162
-> Subject
6263
session_datetime: datetime
64+
---
65+
session_id=null: int
6366
"""
6467

6568
class Attribute(dj.Part):

element_session/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""Package metadata."""
2-
__version__ = "0.1.7"
2+
__version__ = "0.2.0"

0 commit comments

Comments
 (0)