sql builder little enhancement and user table field rename
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 14 Jan 2013 06:16:36 +0000 (07:16 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 14 Jan 2013 06:16:36 +0000 (07:16 +0100)
sql/builder.sh
sql/sql.d/052-user-rename-tsusp.sql [new file with mode: 0644]

index 7cdcdf2..2c4bbfa 100755 (executable)
@@ -90,7 +90,7 @@ elif [ "$1" = "dumpall" ]; then
         pg_dump -h $DBHOST -U $DBUSER $DBBASE > $2
     fi
 elif [ "$1" = "add" ]; then
-    cat "$2" | psql $pg_args
+    cat "$2" | sqlexe $sht
 else
     echo " USAGE"
     echo "   ./builder create"
diff --git a/sql/sql.d/052-user-rename-tsusp.sql b/sql/sql.d/052-user-rename-tsusp.sql
new file mode 100644 (file)
index 0000000..e219983
--- /dev/null
@@ -0,0 +1 @@
+ALTER TABLE #PFX#users RENAME COLUMN tsusp TO lintm;