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

View File

@@ -7,7 +7,7 @@ export const getPostgresRestoreCommand = (
database: 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 = (