Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pysmartdatamodels/pysmartdatamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,6 @@ def generate_sql_schema(model_yaml: str) -> str:

# Initialize SQL schema statements
sql_schema_statements = []
sql_type_statement = []

sql_data_types = ""

Expand Down Expand Up @@ -1195,8 +1194,6 @@ def generate_sql_schema(model_yaml: str) -> str:
field_type = f"{entity}_type"
else:
field_type = f"{key}_type"
# create sql create type statment
sql_type_statement.append(f"CREATE TYPE {field_type} AS ENUM ({','.join(map(repr, enum_values))});")

sql_data_types += "CREATE TYPE " + field_type + " AS ENUM ("
sql_data_types += f"{','.join(map(repr, enum_values))}"
Expand Down
3 changes: 0 additions & 3 deletions pysmartdatamodels/pysmartdatamodels/pysmartdatamodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,6 @@ def generate_sql_schema(model_yaml: str) -> str:

# Initialize SQL schema statements
sql_schema_statements = []
sql_type_statement = []

sql_data_types = ""

Expand Down Expand Up @@ -1194,8 +1193,6 @@ def generate_sql_schema(model_yaml: str) -> str:
field_type = f"{entity}_type"
else:
field_type = f"{key}_type"
# create sql create type statment
sql_type_statement.append(f"CREATE TYPE {field_type} AS ENUM ({','.join(map(repr, enum_values))});")

sql_data_types += "CREATE TYPE " + field_type + " AS ENUM ("
sql_data_types += f"{','.join(map(repr, enum_values))}"
Expand Down