Commit 3ece3de4 authored by Tom Niget's avatar Tom Niget

wip: only create postfix tables if missing

parent 2730850f
...@@ -256,13 +256,13 @@ inline = ...@@ -256,13 +256,13 @@ inline =
-h '${postgresql:pgdata-directory}' \ -h '${postgresql:pgdata-directory}' \
-U '${postgresql:superuser}' \ -U '${postgresql:superuser}' \
-d '${postgresql:dbname}' \ -d '${postgresql:dbname}' \
-c "CREATE TABLE addresses ( -c "CREATE TABLE IF NOT EXISTS addresses (
email VARCHAR(50) NOT NULL PRIMARY KEY, email VARCHAR(50) NOT NULL PRIMARY KEY,
active BOOL NOT NULL DEFAULT TRUE, active BOOL NOT NULL DEFAULT TRUE,
passwd VARCHAR(106) NOT NULL passwd VARCHAR(106) NOT NULL
); );
CREATE TABLE aliases ( CREATE TABLE IF NOT EXISTS aliases (
source VARCHAR(50) NOT NULL PRIMARY KEY, source VARCHAR(50) NOT NULL PRIMARY KEY,
target VARCHAR(50) NOT NULL target VARCHAR(50) NOT NULL
); );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment