File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default class PostgresMetaPublications {
68
68
} else if ( tables . length === 0 ) {
69
69
tableClause = ''
70
70
} else {
71
- tableClause = `FOR TABLE ${ tables . map ( ident ) . join ( ',' ) } `
71
+ tableClause = `FOR TABLE ${ tables . map ( ident ) . join ( ',' ) . replace ( / " / g , '' ) } `
72
72
}
73
73
74
74
let publishOps = [ ]
@@ -138,7 +138,10 @@ CREATE PUBLICATION ${ident(name)} ${tableClause}
138
138
} else if ( old ! . tables === null ) {
139
139
throw new Error ( 'Tables cannot be added to or dropped from FOR ALL TABLES publications' )
140
140
} else if ( tables . length > 0 ) {
141
- tableSql = `ALTER PUBLICATION ${ ident ( old ! . name ) } SET TABLE ${ tables . map ( ident ) . join ( ',' ) } ;`
141
+ tableSql = `ALTER PUBLICATION ${ ident ( old ! . name ) } SET TABLE ${ tables
142
+ . map ( ident )
143
+ . join ( ',' )
144
+ . replace ( / " / g, '' ) } ;`
142
145
} else if ( old ! . tables . length === 0 ) {
143
146
tableSql = ''
144
147
} else {
You can’t perform that action at this time.
0 commit comments