MySQL password changing
[hcoop/domtool2.git] / src / plugins / postgres.sml
index c2539eb..1689840 100644 (file)
@@ -26,6 +26,8 @@ fun adduser {user, passwd} =
     else
        SOME "Error executing CREATE USER script"
 
     else
        SOME "Error executing CREATE USER script"
 
+fun passwd _ = SOME "We don't use PostgreSQL passwords."
+
 fun createdb {user, dbname} =
     if Slave.shell [Config.Postgres.createdb, user, " ", dbname] then
        NONE
 fun createdb {user, dbname} =
     if Slave.shell [Config.Postgres.createdb, user, " ", dbname] then
        NONE
@@ -34,6 +36,7 @@ fun createdb {user, dbname} =
 
 val _ = Dbms.register ("postgres", {getpass = NONE,
                                    adduser = adduser,
 
 val _ = Dbms.register ("postgres", {getpass = NONE,
                                    adduser = adduser,
+                                   passwd = passwd,
                                    createdb = createdb})
 
 end
                                    createdb = createdb})
 
 end