fix: add no owner options to pg_restore

This commit is contained in:
Yusoof Moh 2025-05-10 00:12:33 +07:00
parent f575317906
commit 3bd54ff61e
No known key found for this signature in database

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 = (