@cryptotaxi247 / CoPilot / commits / cfa0a1bc

JSONB to TEXT

Taylor committed Jul 10, 2023 at 22:03 UTC cfa0a1bc807ddf24e11d04fd315515bd44d882ce
4 files changed +5 -4
backend/app/models/agents.py
+1 -1
@@ -1,7 +1,7 @@
1 # from datetime import datetime
2
3 # from loguru import logger
4 -# from sqlalchemy.dialects.postgresql import JSONB # Add this line
4 +from sqlalchemy.dialects.postgresql import JSONB # Add this line
5
6 from app import db
7 from app import ma
backend/app/models/models.py
+2 -2
@@ -1,7 +1,7 @@
1 from datetime import datetime
2
3 from loguru import logger
4 -from sqlalchemy.dialects.postgresql import JSONB # Add this line
4 +from sqlalchemy.dialects.postgresql import TEXT # Add this line
5
6 from app import db
7 from app import ma
@@ -285,7 +285,7 @@ cases_schema = CaseSchema(many=True)
285 class Artifact(db.Model):
286 id = db.Column(db.Integer, primary_key=True)
287 artifact_name = db.Column(db.String(100))
288 - artifact_results = db.Column(JSONB)
288 + artifact_results = db.Column(TEXT)
289 hostname = db.Column(db.String(100))
290
291 def __init__(self, artifact_name, artifact_results, hostname):
backend/app/models/rules.py
+1 -1
@@ -4,7 +4,7 @@ from app import db
4 from app import ma
5
6 # from loguru import logger
7 -# from sqlalchemy.dialects.postgresql import JSONB # Add this line
7 +from sqlalchemy.dialects.postgresql import JSONB # Add this line
8
9
10 # Class for the disabled rule IDs which will store the rule ID, previous configuration, new configuration, reason for
backend/copilot.sqbpro new
+1
@@ -0,0 +1 @@
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>