diff --git a/Setup-Windows/setupPostgres.bat b/Setup-Windows/setupPostgres.bat index f44e837..0512dd4 100644 --- a/Setup-Windows/setupPostgres.bat +++ b/Setup-Windows/setupPostgres.bat @@ -50,9 +50,11 @@ SET PATH=%PATH%;C:\Librography_data\postgres\bin psql -U postgres -c "CREATE DATABASE %dbname%;" psql -U postgres -c "CREATE USER '%dbuser%'@'localhost' IDENTIFIED BY '%userpassword%';" psql -U postgres -c "GRANT ALL PRIVILEGES ON %dbuser%.* TO '%dbuser%'@'localhost';" - psql -U postgres -c "FLUSH PRIVILEGES;" -psql -U postgres -c "source script-posgresql.sql" +psql -U postgres -f script-postgresql.sql -d applibrography +Rem psql -U postgres -c "\c applibrography; \i script-postgresql.sql;" +Rem psql -U postgres -c "source script-posgresql.sql" +Rem psql -U postgres -c "\i script-postgresql.sql;" echo Done. echo "Postgresql user created." echo "Username: %dbuser%" diff --git a/notas.txt b/notas.txt index a83439c..9b87c3a 100644 --- a/notas.txt +++ b/notas.txt @@ -2,6 +2,16 @@ carateres estranhios mysql build for ant + finalizado script postgresSetup.bat + --> proceder alteraƧao opcional do banco + usar Pgadmin + --> Criar Windows Installer + Inno setup - script criado + ./setup/data is in .zip format + Inno get files from C:\Librography to create installer + - convert sysntax: mysql to postgresql -> sqlite + + + convert syntax: mysql to postgresql -> sqlite \ No newline at end of file diff --git a/setup/data b/setup/data index 0795f52..b81643f 100644 Binary files a/setup/data and b/setup/data differ