@@ -24,7 +24,6 @@ def upgrade() -> None:
2424 sa .Column ("created_at" , sa .DateTime (timezone = True ), nullable = False ),
2525 sa .Column ("id" , sa .UUID (), nullable = False ),
2626 sa .Column ("run_id" , sa .UUID (), nullable = False ),
27- sa .Column ("sql_query_id" , sa .BigInteger , nullable = True ),
2827 sa .Column ("status" , sa .SmallInteger (), nullable = False ),
2928 sa .Column ("name" , sa .String (), nullable = False ),
3029 sa .Column ("type" , sa .String (length = 32 ), nullable = False ),
@@ -37,10 +36,8 @@ def upgrade() -> None:
3736 postgresql_partition_by = "RANGE (created_at)" ,
3837 )
3938 op .create_index (op .f ("ix__operation__run_id" ), "operation" , ["run_id" ], unique = False )
40- op .create_index (op .f ("ix__operation__sql_query_id" ), "operation" , ["sql_query_id" ], unique = False )
4139
4240
4341def downgrade () -> None :
4442 op .drop_index (op .f ("ix__operation__run_id" ), table_name = "operation" )
45- op .drop_index (op .f ("ix__operation__sql_query_id" ), table_name = "operation" )
4643 op .drop_table ("operation" )
0 commit comments