File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1744,12 +1744,14 @@ describe('database', () => {
1744
1744
1745
1745
// eslint-disable-next-line jest/no-conditional-in-test
1746
1746
if ( payload . db . name . includes ( 'postgres' ) ) {
1747
- added_table_before = drizzlePg . pgTable ( 'added_table_before' , {
1747
+ // eslint-disable-next-line jest/no-conditional-in-test
1748
+ const t = ( payload . db . pgSchema ?. table ?? drizzlePg . pgTable ) as typeof drizzlePg . pgTable
1749
+ added_table_before = t ( 'added_table_before' , {
1748
1750
id : drizzlePg . serial ( 'id' ) . primaryKey ( ) ,
1749
1751
text : drizzlePg . text ( 'text' ) ,
1750
1752
} )
1751
1753
1752
- added_table_after = drizzlePg . pgTable ( 'added_table_after' , {
1754
+ added_table_after = t ( 'added_table_after' , {
1753
1755
id : drizzlePg . serial ( 'id' ) . primaryKey ( ) ,
1754
1756
text : drizzlePg . text ( 'text' ) ,
1755
1757
} )
You can’t perform that action at this time.
0 commit comments