5757from sqlmesh .utils import major_minor , random_id
5858from sqlmesh .utils .date import TimeLike , now_timestamp , time_like_to_str
5959from sqlmesh .utils .errors import SQLMeshError
60- from sqlmesh .utils .migration import blob_text_type , index_text_type
6160
6261logger = logging .getLogger (__name__ )
6362
@@ -104,20 +103,17 @@ def __init__(
104103 self .plan_dags_table = exp .table_ ("_plan_dags" , db = self .schema )
105104 self .versions_table = exp .table_ ("_versions" , db = self .schema )
106105
107- index_type = index_text_type (self .engine_adapter .dialect )
108- blob_type = blob_text_type (self .engine_adapter .dialect )
109-
110106 self ._snapshot_columns_to_types = {
111- "name" : exp .DataType .build (index_type ),
112- "identifier" : exp .DataType .build (index_type ),
113- "version" : exp .DataType .build (index_type ),
114- "snapshot" : exp .DataType .build (blob_type ),
115- "kind_name" : exp .DataType .build (index_type ),
107+ "name" : exp .DataType .build ("text" ),
108+ "identifier" : exp .DataType .build ("text" ),
109+ "version" : exp .DataType .build ("text" ),
110+ "snapshot" : exp .DataType .build ("text" ),
111+ "kind_name" : exp .DataType .build ("text" ),
116112 }
117113
118114 self ._environment_columns_to_types = {
119- "name" : exp .DataType .build (index_type ),
120- "snapshots" : exp .DataType .build (blob_type ),
115+ "name" : exp .DataType .build ("text" ),
116+ "snapshots" : exp .DataType .build ("text" ),
121117 "start_at" : exp .DataType .build ("text" ),
122118 "end_at" : exp .DataType .build ("text" ),
123119 "plan_id" : exp .DataType .build ("text" ),
@@ -129,17 +125,17 @@ def __init__(
129125 }
130126
131127 self ._seed_columns_to_types = {
132- "name" : exp .DataType .build (index_type ),
133- "identifier" : exp .DataType .build (index_type ),
134- "content" : exp .DataType .build (blob_type ),
128+ "name" : exp .DataType .build ("text" ),
129+ "identifier" : exp .DataType .build ("text" ),
130+ "content" : exp .DataType .build ("text" ),
135131 }
136132
137133 self ._interval_columns_to_types = {
138- "id" : exp .DataType .build (index_type ),
134+ "id" : exp .DataType .build ("text" ),
139135 "created_ts" : exp .DataType .build ("bigint" ),
140- "name" : exp .DataType .build (index_type ),
141- "identifier" : exp .DataType .build (index_type ),
142- "version" : exp .DataType .build (index_type ),
136+ "name" : exp .DataType .build ("text" ),
137+ "identifier" : exp .DataType .build ("text" ),
138+ "version" : exp .DataType .build ("text" ),
143139 "start_ts" : exp .DataType .build ("bigint" ),
144140 "end_ts" : exp .DataType .build ("bigint" ),
145141 "is_dev" : exp .DataType .build ("boolean" ),
0 commit comments