| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ jobs: | |||
| 30 | 30 | if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | |
| 31 | 31 | with: | |
| 32 | 32 | limit-access-to-actor: true | |
| 33 | - - uses: actions/cache@v2 | ||
| 33 | + - uses: actions/cache@v3 | ||
| 34 | 34 | id: cache | |
| 35 | 35 | with: | |
| 36 | 36 | path: ${{ env.pythonLocation }} | |
@@ -53,7 +53,7 @@ jobs: | |||
| 53 | 53 | - name: Install Material for MkDocs Insiders | |
| 54 | 54 | if: github.event.pull_request.head.repo.fork == false && steps.cache.outputs.cache-hit != 'true' | |
| 55 | 55 | run: python -m poetry run pip install git+https://${{ secrets.ACTIONS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git | |
| 56 | - - uses: actions/cache@v2 | ||
| 56 | + - uses: actions/cache@v3 | ||
| 57 | 57 | with: | |
| 58 | 58 | key: mkdocs-cards-${{ github.ref }} | |
| 59 | 59 | path: .cache | |
@@ -68,7 +68,7 @@ jobs: | |||
| 68 | 68 | - uses: actions/upload-artifact@v3 | |
| 69 | 69 | with: | |
| 70 | 70 | name: docs-zip | |
| 71 | - path: ./docs.zip | ||
| 71 | + path: ./site/docs.zip | ||
| 72 | 72 | - name: Deploy to Netlify | |
| 73 | 73 | uses: nwtgck/actions-netlify@v1.1.5 | |
| 74 | 74 | with: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,16 +11,21 @@ jobs: | |||
| 11 | 11 | runs-on: ubuntu-20.04 | |
| 12 | 12 | steps: | |
| 13 | 13 | - uses: actions/checkout@v3.1.0 | |
| 14 | + - name: Clean site | ||
| 15 | + run: | | ||
| 16 | + rm -rf ./site | ||
| 17 | + mkdir ./site | ||
| 14 | 18 | - name: Download Artifact Docs | |
| 15 | 19 | uses: dawidd6/action-download-artifact@v2.24.2 | |
| 16 | 20 | with: | |
| 17 | 21 | github_token: ${{ secrets.GITHUB_TOKEN }} | |
| 18 | 22 | workflow: build-docs.yml | |
| 19 | 23 | run_id: ${{ github.event.workflow_run.id }} | |
| 20 | 24 | name: docs-zip | |
| 25 | + path: ./site/ | ||
| 21 | 26 | - name: Unzip docs | |
| 22 | 27 | run: | | |
| 23 | - rm -rf ./site | ||
| 28 | + cd ./site | ||
| 24 | 29 | unzip docs.zip | |
| 25 | 30 | rm -f docs.zip | |
| 26 | 31 | - name: Deploy to Netlify | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,7 +26,7 @@ jobs: | |||
| 26 | 26 | if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | |
| 27 | 27 | with: | |
| 28 | 28 | limit-access-to-actor: true | |
| 29 | - - uses: actions/cache@v2 | ||
| 29 | + - uses: actions/cache@v3 | ||
| 30 | 30 | id: cache | |
| 31 | 31 | with: | |
| 32 | 32 | path: ${{ env.pythonLocation }} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ jobs: | |||
| 33 | 33 | if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }} | |
| 34 | 34 | with: | |
| 35 | 35 | limit-access-to-actor: true | |
| 36 | - - uses: actions/cache@v2 | ||
| 36 | + - uses: actions/cache@v3 | ||
| 37 | 37 | id: cache | |
| 38 | 38 | with: | |
| 39 | 39 | path: ${{ env.pythonLocation }} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -62,7 +62,7 @@ The user is probably, in some way, telling your application: | |||
| 62 | 62 | 2 | |
| 63 | 63 | ``` | |
| 64 | 64 | ||
| 65 | - And the would be this table (with a single row): | ||
| 65 | + And the result would be this table (with a single row): | ||
| 66 | 66 | ||
| 67 | 67 | <table> | |
| 68 | 68 | <tr> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,10 @@ | |||
| 2 | 2 | ||
| 3 | 3 | ## Latest Changes | |
| 4 | 4 | ||
| 5 | + * 👷 Refactor CI artifact upload/download for docs previews. PR [#514](https://github.com/tiangolo/sqlmodel/pull/514) by [@tiangolo](https://github.com/tiangolo). | ||
| 6 | + * ✏️ Fix typo in internal function name `get_sqlachemy_type()`. PR [#496](https://github.com/tiangolo/sqlmodel/pull/496) by [@cmarqu](https://github.com/cmarqu). | ||
| 7 | + * ⬆ Bump actions/cache from 2 to 3. PR [#497](https://github.com/tiangolo/sqlmodel/pull/497) by [@dependabot[bot]](https://github.com/apps/dependabot). | ||
| 8 | + * ✏️ Fix typo in docs. PR [#446](https://github.com/tiangolo/sqlmodel/pull/446) by [@davidbrochart](https://github.com/davidbrochart). | ||
| 5 | 9 | * ⬆ Bump dawidd6/action-download-artifact from 2.24.0 to 2.24.2. PR [#493](https://github.com/tiangolo/sqlmodel/pull/493) by [@dependabot[bot]](https://github.com/apps/dependabot). | |
| 6 | 10 | * ✏️ Fix typo in `docs/tutorial/create-db-and-table.md`. PR [#477](https://github.com/tiangolo/sqlmodel/pull/477) by [@FluffyDietEngine](https://github.com/FluffyDietEngine). | |
| 7 | 11 | * ✏️ Fix small typos in docs. PR [#481](https://github.com/tiangolo/sqlmodel/pull/481) by [@micuffaro](https://github.com/micuffaro). | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,9 @@ | |||
| 3 | 3 | set -x | |
| 4 | 4 | set -e | |
| 5 | 5 | ||
| 6 | + cd ./site | ||
| 7 | + | ||
| 6 | 8 | if [ -f docs.zip ]; then | |
| 7 | 9 | rm -rf docs.zip | |
| 8 | 10 | fi | |
| 9 | - zip -r docs.zip ./site | ||
| 11 | + zip -r docs.zip ./ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -372,7 +372,7 @@ def __init__( | |||
| 372 | 372 | ModelMetaclass.__init__(cls, classname, bases, dict_, **kw) | |
| 373 | 373 | ||
| 374 | 374 | ||
| 375 | - def get_sqlachemy_type(field: ModelField) -> Any: | ||
| 375 | + def get_sqlalchemy_type(field: ModelField) -> Any: | ||
| 376 | 376 | if issubclass(field.type_, str): | |
| 377 | 377 | if field.field_info.max_length: | |
| 378 | 378 | return AutoString(length=field.field_info.max_length) | |
@@ -419,7 +419,7 @@ def get_column_from_field(field: ModelField) -> Column: # type: ignore | |||
| 419 | 419 | sa_column = getattr(field.field_info, "sa_column", Undefined) | |
| 420 | 420 | if isinstance(sa_column, Column): | |
| 421 | 421 | return sa_column | |
| 422 | - sa_type = get_sqlachemy_type(field) | ||
| 422 | + sa_type = get_sqlalchemy_type(field) | ||
| 423 | 423 | primary_key = getattr(field.field_info, "primary_key", False) | |
| 424 | 424 | index = getattr(field.field_info, "index", Undefined) | |
| 425 | 425 | if index is Undefined: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments