modify workflow

This commit is contained in:
collerek
2021-04-04 17:39:09 +02:00
parent 593d233a46
commit 38a094baf7
2 changed files with 3 additions and 2 deletions

View File

@ -14,6 +14,7 @@ jobs:
tests:
name: "Python ${{ matrix.python-version }}"
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'collerek/ormar'
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

View File

@ -26,7 +26,7 @@ class DataSource(ormar.Model):
class DataSourceTable(ormar.Model):
class Meta(BaseMeta):
tablename = "tables"
tablename = "source_tables"
id: int = ormar.Integer(primary_key=True)
name: str = ormar.String(max_length=200, index=True)
@ -37,7 +37,7 @@ class DataSourceTable(ormar.Model):
class DataSourceTableColumn(ormar.Model):
class Meta(BaseMeta):
tablename = "columns"
tablename = "source_columns"
id: int = ormar.Integer(primary_key=True)
name: str = ormar.String(max_length=200, index=True)