cron, db, cache and migrations

This commit is contained in:
2022-02-13 18:09:26 +01:00
parent 5f36bdb8a6
commit e03efbf09c
8 changed files with 1638 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
create table users(
id serial primary key,
email varchar(320) not null,
password_hash varchar(256) not null
);
---- create above / drop below ----
drop table users;

34
migrations/tern.conf Normal file
View File

@@ -0,0 +1,34 @@
[database]
# host is required (network host or path to Unix domain socket)
host = localhost
port = 5432
# database is required
database = serverctl
# user defaults to OS user
user = serverctl
password = serverctlsecret
version_table = public.schema_version
#
# sslmode generally matches the behavior described in:
# http://www.postgresql.org/docs/9.4/static/libpq-ssl.html#LIBPQ-SSL-PROTECTION
#
# There are only two modes that most users should use:
# prefer - on trusted networks where security is not required
# verify-full - require SSL connection
sslmode = prefer
#
# sslrootcert is generally used with sslmode=verify-full
# sslrootcert = /path/to/root/ca
# Proxy the above database connection via SSH
# [ssh-tunnel]
# host =
# port = 22
# user defaults to OS user
# user =
# password is not required if using SSH agent authentication
# password =
[data]
# Any fields in the data section are available in migration templates
# prefix = foo