Merge pull request #1860 from yusoofsh/pgrestore-no-owner

Add no owner options to pg_restore
This commit is contained in:
Mauricio Siu
2025-05-10 15:22:41 -06:00
committed by GitHub
+1 -1
View File
@@ -7,7 +7,7 @@ export const getPostgresRestoreCommand = (
database: string, database: string,
databaseUser: string, databaseUser: string,
) => { ) => {
return `docker exec -i $CONTAINER_ID sh -c "pg_restore -U ${databaseUser} -d ${database} --clean --if-exists"`; return `docker exec -i $CONTAINER_ID sh -c "pg_restore -U ${databaseUser} -d ${database} -O --clean --if-exists"`;
}; };
export const getMariadbRestoreCommand = ( export const getMariadbRestoreCommand = (