Skip to content

Commit

Permalink
JSONB to TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwalton committed Jul 11, 2023
1 parent 6662332 commit cfa0a1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/app/models/agents.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# from datetime import datetime

# from loguru import logger
# from sqlalchemy.dialects.postgresql import JSONB # Add this line
from sqlalchemy.dialects.postgresql import JSONB # Add this line

from app import db
from app import ma
Expand Down
4 changes: 2 additions & 2 deletions backend/app/models/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime

from loguru import logger
from sqlalchemy.dialects.postgresql import JSONB # Add this line
from sqlalchemy.dialects.postgresql import TEXT # Add this line

from app import db
from app import ma
Expand Down Expand Up @@ -285,7 +285,7 @@ class Meta:
class Artifact(db.Model):
id = db.Column(db.Integer, primary_key=True)
artifact_name = db.Column(db.String(100))
artifact_results = db.Column(JSONB)
artifact_results = db.Column(TEXT)
hostname = db.Column(db.String(100))

def __init__(self, artifact_name, artifact_results, hostname):
Expand Down
2 changes: 1 addition & 1 deletion backend/app/models/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from app import ma

# from loguru import logger
# from sqlalchemy.dialects.postgresql import JSONB # Add this line
from sqlalchemy.dialects.postgresql import JSONB # Add this line


# Class for the disabled rule IDs which will store the rule ID, previous configuration, new configuration, reason for
Expand Down
1 change: 1 addition & 0 deletions backend/copilot.sqbpro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><sqlb_project><db path="C:/Users/walto/Desktop/GitHub/CoPilot/backend/copilot.db" readonly="0" foreign_keys="1" case_sensitive_like="0" temp_store="0" wal_autocheckpoint="1000" synchronous="2"/><attached/><window><main_tabs open="structure browser pragmas query" current="1"/></window><tab_structure><column_width id="0" width="300"/><column_width id="1" width="0"/><column_width id="2" width="100"/><column_width id="3" width="1981"/><column_width id="4" width="0"/><expanded_item id="0" parent="1"/><expanded_item id="1" parent="1"/><expanded_item id="2" parent="1"/><expanded_item id="3" parent="1"/></tab_structure><tab_browse><current_table name="4,10:mainconnectors"/><default_encoding codec=""/><browse_table_settings><table schema="main" name="agent_metadata" show_row_id="0" encoding="" plot_x_axis="" unlock_view_pk="_rowid_"><sort/><column_widths><column index="1" value="40"/><column index="2" value="65"/><column index="3" value="79"/><column index="4" value="40"/><column index="5" value="72"/><column index="6" value="95"/><column index="7" value="71"/></column_widths><filter_values/><conditional_formats/><row_id_formats/><display_formats/><hidden_columns/><plot_y_axes/><global_filter/></table><table schema="main" name="connectors" show_row_id="0" encoding="" plot_x_axis="" unlock_view_pk="_rowid_"><sort/><column_widths><column index="1" value="40"/><column index="2" value="117"/><column index="3" value="112"/><column index="4" value="259"/><column index="5" value="196"/><column index="6" value="146"/><column index="7" value="145"/><column index="8" value="132"/></column_widths><filter_values/><conditional_formats/><row_id_formats/><display_formats/><hidden_columns/><plot_y_axes/><global_filter/></table></browse_table_settings></tab_browse><tab_sql><sql name="SQL 1"></sql><current_tab id="0"/></tab_sql></sqlb_project>

0 comments on commit cfa0a1b

Please sign in to comment.