Skip to content

Commit

Permalink
SQL statement table: more index
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwoerpel committed Aug 9, 2023
1 parent c4f7503 commit 33e5456
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nomenklatura/statement/db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from sqlalchemy import MetaData, Table, Column, DateTime, Unicode, Boolean
from sqlalchemy import Boolean, Column, DateTime, MetaData, Table, Unicode

KEY_LEN = 255
VALUE_LEN = 65535
Expand All @@ -11,9 +11,9 @@ def make_statement_table(metadata: MetaData, name: str = "statement") -> Table:
Column("id", Unicode(KEY_LEN), primary_key=True, unique=True),
Column("entity_id", Unicode(KEY_LEN), index=True, nullable=False),
Column("canonical_id", Unicode(KEY_LEN), index=True, nullable=True),
Column("prop", Unicode(KEY_LEN), nullable=False),
Column("prop_type", Unicode(KEY_LEN), nullable=False),
Column("schema", Unicode(KEY_LEN), nullable=False),
Column("prop", Unicode(KEY_LEN), index=True, nullable=False),
Column("prop_type", Unicode(KEY_LEN), index=True, nullable=False),
Column("schema", Unicode(KEY_LEN), index=True, nullable=False),
Column("value", Unicode(VALUE_LEN), nullable=False),
Column("original_value", Unicode(VALUE_LEN), nullable=True),
Column("dataset", Unicode(KEY_LEN), index=True),
Expand Down

0 comments on commit 33e5456

Please # to comment.