@deinossrl/dgp-agent 1.5.8 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +23 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1758,6 +1758,29 @@ async function executePgDump(command) {
|
|
|
1758
1758
|
params.schemas.forEach(schema => {
|
|
1759
1759
|
pgDumpArgs.push(`--schema=${schema}`);
|
|
1760
1760
|
});
|
|
1761
|
+
} else if (params.exclude_system_schemas === true && params.connection_type === 'supabase') {
|
|
1762
|
+
// Si el usuario marcó "excluir schemas del sistema" y NO especificó schemas manualmente
|
|
1763
|
+
const supabaseSystemSchemas = [
|
|
1764
|
+
'storage',
|
|
1765
|
+
'auth',
|
|
1766
|
+
'extensions',
|
|
1767
|
+
'realtime',
|
|
1768
|
+
'_realtime',
|
|
1769
|
+
'supabase_functions',
|
|
1770
|
+
'vault',
|
|
1771
|
+
'graphql',
|
|
1772
|
+
'graphql_public',
|
|
1773
|
+
'pgsodium',
|
|
1774
|
+
'pgsodium_masks',
|
|
1775
|
+
'supabase_migrations'
|
|
1776
|
+
];
|
|
1777
|
+
|
|
1778
|
+
logInfo('Excluyendo schemas del sistema de Supabase...');
|
|
1779
|
+
await addCommandLog('info', `Excluyendo ${supabaseSystemSchemas.length} schemas del sistema`);
|
|
1780
|
+
|
|
1781
|
+
supabaseSystemSchemas.forEach(schema => {
|
|
1782
|
+
pgDumpArgs.push(`--exclude-schema=${schema}`);
|
|
1783
|
+
});
|
|
1761
1784
|
}
|
|
1762
1785
|
|
|
1763
1786
|
// Tablas específicas
|