This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
-
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.
* 🎨 Modularize and capitalize * 🍱 Add a migration script * 💚 Apply migration & fix * 📝 Fix nb
- Loading branch information
Showing
9 changed files
with
171 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Development tools. | ||
Tracking versions & migrations: | ||
.. autosummary:: | ||
:toctree: . | ||
version_zdno | ||
migration_zdno | ||
Auxiliary modules: | ||
.. autosummary:: | ||
:toctree: . | ||
id | ||
""" | ||
from . import id | ||
from ._versions import migration_zdno, version_zdno |
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,4 +1,4 @@ | ||
from lnschema_core.id import base62 | ||
from lnschema_core.dev.id import base62 | ||
|
||
|
||
def featureset() -> str: | ||
|
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,24 @@ | ||
from datetime import datetime as datetime | ||
from typing import Optional | ||
|
||
from lnschema_core._timestamps import CreatedAt | ||
from lnschema_core._users import CreatedBy | ||
from sqlmodel import Field, SQLModel | ||
|
||
|
||
class version_zdno(SQLModel, table=True): # type: ignore | ||
"""Schema versions.""" | ||
|
||
v: str = Field(primary_key=True) | ||
migration: Optional[str] = None | ||
user_id: str = CreatedBy | ||
created_at: datetime = CreatedAt | ||
|
||
|
||
class migration_zdno(SQLModel, table=True): # type: ignore | ||
"""Latest migration. | ||
This stores the reference to the latest migration script deployed. | ||
""" | ||
|
||
version_num: Optional[str] = Field(primary_key=True) |
File renamed without changes.
Oops, something went wrong.