Implement new PostgreSQL 15 features in publication dialog and SQL. #5868

This commit is contained in:
Anil Sahoo
2023-05-25 16:25:12 +05:30
committed by GitHub
parent 702bc8c8ce
commit 8b7eeca545
91 changed files with 3105 additions and 202 deletions

View File

@@ -16,7 +16,9 @@ describe('PublicationSchema', ()=>{
let mount;
let schemaObj = new PublicationSchema(
{
publicationTable: ()=>[],
allTables: ()=>[],
allSchemas:()=>[],
getColumns: ()=>[],
role: ()=>[],
},
{
@@ -69,5 +71,11 @@ describe('PublicationSchema', ()=>{
expect(status).toBe(true);
});
it('pubschema disabled', ()=>{
let disabled = _.find(schemaObj.fields, (f)=>f.id=='pubschema').disabled;
let status = disabled({pubtable: [],all_table: true});
expect(status).toBe(true);
});
});