Skip to content

Commit

Permalink
no need to initialize sequence every time
Browse files Browse the repository at this point in the history
  • Loading branch information
rpiazza committed Apr 1, 2024
1 parent bf840b1 commit dcc83e6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stix2/datastore/relational_db/relational_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ def _create_schemas(self):

def _create_table_objects(self):
self.sequence = Sequence("my_general_seq", metadata=self.metadata, start=1)
with self.database_connection.begin() as trans:
print(trans.execute(self.sequence))
tables = create_core_tables(self.metadata)
for stix_class in _get_all_subclasses(_DomainObject):
new_tables = generate_object_table(stix_class, self.metadata, "sdo")
Expand Down

0 comments on commit dcc83e6

Please sign in to comment.