File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/cli/src/actions/pull Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ export function syncEnums({
5555 . addArg ( ( a ) => a . StringLiteral . setValue ( dbEnum . schema_name ) ) ,
5656 ) ;
5757 }
58- } catch ( _error : unknown ) {
58+ } catch ( error : any ) {
59+ if ( error ?. message !== `Declaration not found: @@schema` ) throw error ;
5960 //Waiting to support multi-schema
6061 //TODO: remove catch after multi-schema support is implemented
6162 }
@@ -362,7 +363,8 @@ export function syncTable({
362363 b . setDecl ( getAttributeRef ( '@@schema' , services ) ) . addArg ( ( a ) => a . StringLiteral . setValue ( table . schema ) ) ,
363364 ) ;
364365 }
365- } catch ( _error : unknown ) {
366+ } catch ( error : any ) {
367+ if ( error ?. message !== `Declaration not found: @@schema` ) throw error ;
366368 //Waiting to support multi-schema
367369 //TODO: remove catch after multi-schema support is implemented
368370 }
You can’t perform that action at this time.
0 commit comments