cron, db, cache and migrations
This commit is contained in:
9
migrations/001_create_users.sql
Normal file
9
migrations/001_create_users.sql
Normal 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
34
migrations/tern.conf
Normal 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
|
Reference in New Issue
Block a user