Skip to content

Instantly share code, notes, and snippets.

@martinusso
Last active August 29, 2015 14:26
Show Gist options
  • Save martinusso/9b065bae1ec8636454d2 to your computer and use it in GitHub Desktop.
Save martinusso/9b065bae1ec8636454d2 to your computer and use it in GitHub Desktop.
Creating schema in database PostgreSQL
@echo off
if "%1" == "" goto :EOF
if "%2" == "" (
set database=monde
) else (
set database=%2
)
echo Creating schema %1 in database %database%
psql -U postgres -f %1 %database%
@martinusso
Copy link
Author

> restore.bat _base_.sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment