Embed database migrations
authorJan Dittberner <jandd@cacert.org>
Thu, 29 Mar 2018 18:08:41 +0000 (20:08 +0200)
committerJan Dittberner <jandd@cacert.org>
Thu, 29 Mar 2018 18:08:41 +0000 (20:08 +0200)
commit4dd5e0982050ae92a9a37cb62e606b2807a85c27
treed2b9900068afe3d747524b43fbae49b86feaa7c8
parentaea93c328e76fba300f5dd2c380b46c62a6db904
Embed database migrations

- switch from goose to github.com/rubenv/sql-migrate
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
87 files changed:
.gitignore
Gopkg.lock
Makefile
boardvoting.go
boardvoting/main.go [new file with mode: 0644]
boardvoting/migrations/20170421134856_0.1.0_original.sql [new file with mode: 0644]
boardvoting/migrations/20170421143052_fix_duplicates.sql [new file with mode: 0644]
boardvoting/migrations/20170421143114_add_constraints.sql [new file with mode: 0644]
boardvoting/static/js/jquery.min.js [new file with mode: 0644]
boardvoting/static/js/jquery.min.map [new file with mode: 0644]
boardvoting/static/semantic.min.css [new file with mode: 0644]
boardvoting/static/semantic.min.js [new file with mode: 0644]
boardvoting/static/styles.css [new file with mode: 0644]
boardvoting/static/themes/default/assets/fonts/icons.eot [new file with mode: 0644]
boardvoting/static/themes/default/assets/fonts/icons.svg [new file with mode: 0644]
boardvoting/static/themes/default/assets/fonts/icons.ttf [new file with mode: 0644]
boardvoting/static/themes/default/assets/fonts/icons.woff [new file with mode: 0644]
boardvoting/static/themes/default/assets/fonts/icons.woff2 [new file with mode: 0644]
boardvoting/static/themes/default/assets/images/flags.png [new file with mode: 0644]
boardvoting/templates/closed_motion_mail.txt [new file with mode: 0644]
boardvoting/templates/create_motion_form.html [new file with mode: 0644]
boardvoting/templates/create_motion_mail.txt [new file with mode: 0644]
boardvoting/templates/denied.html [new file with mode: 0644]
boardvoting/templates/direct_vote_form.html [new file with mode: 0644]
boardvoting/templates/direct_vote_mail.txt [new file with mode: 0644]
boardvoting/templates/edit_motion_form.html [new file with mode: 0644]
boardvoting/templates/footer.html [new file with mode: 0644]
boardvoting/templates/header.html [new file with mode: 0644]
boardvoting/templates/motion.html [new file with mode: 0644]
boardvoting/templates/motion_fragments.html [new file with mode: 0644]
boardvoting/templates/motions.html [new file with mode: 0644]
boardvoting/templates/proxy_vote_form.html [new file with mode: 0644]
boardvoting/templates/proxy_vote_mail.txt [new file with mode: 0644]
boardvoting/templates/remind_voter_mail.txt [new file with mode: 0644]
boardvoting/templates/update_motion_mail.txt [new file with mode: 0644]
boardvoting/templates/withdraw_motion_form.html [new file with mode: 0644]
boardvoting/templates/withdraw_motion_mail.txt [new file with mode: 0644]
db/dbconf.yml [deleted file]
db/migrations/20170421134856_0.1.0_original.sql [deleted file]
db/migrations/20170421143052_fix_duplicates.sql [deleted file]
db/migrations/20170421143114_add_constraints.sql [deleted file]
db/migrations_embedded.go [new file with mode: 0644]
models.go
static/js/jquery.js [deleted file]
static/js/jquery.min.js [deleted file]
static/js/jquery.min.map [deleted file]
static/semantic.css [deleted file]
static/semantic.js [deleted file]
static/semantic.min.css [deleted file]
static/semantic.min.js [deleted file]
static/styles.css [deleted file]
static/themes/basic/assets/fonts/icons.eot [deleted file]
static/themes/basic/assets/fonts/icons.svg [deleted file]
static/themes/basic/assets/fonts/icons.ttf [deleted file]
static/themes/basic/assets/fonts/icons.woff [deleted file]
static/themes/default/assets/fonts/icons.eot [deleted file]
static/themes/default/assets/fonts/icons.svg [deleted file]
static/themes/default/assets/fonts/icons.ttf [deleted file]
static/themes/default/assets/fonts/icons.woff [deleted file]
static/themes/default/assets/fonts/icons.woff2 [deleted file]
static/themes/default/assets/images/flags.png [deleted file]
static/themes/github/assets/fonts/octicons-local.ttf [deleted file]
static/themes/github/assets/fonts/octicons.svg [deleted file]
static/themes/github/assets/fonts/octicons.ttf [deleted file]
static/themes/github/assets/fonts/octicons.woff [deleted file]
static/themes/material/assets/fonts/icons.eot [deleted file]
static/themes/material/assets/fonts/icons.svg [deleted file]
static/themes/material/assets/fonts/icons.ttf [deleted file]
static/themes/material/assets/fonts/icons.woff [deleted file]
templates/closed_motion_mail.txt [deleted file]
templates/create_motion_form.html [deleted file]
templates/create_motion_mail.txt [deleted file]
templates/denied.html [deleted file]
templates/direct_vote_form.html [deleted file]
templates/direct_vote_mail.txt [deleted file]
templates/edit_motion_form.html [deleted file]
templates/footer.html [deleted file]
templates/header.html [deleted file]
templates/motion.html [deleted file]
templates/motion_fragments.html [deleted file]
templates/motions.html [deleted file]
templates/proxy_vote_form.html [deleted file]
templates/proxy_vote_mail.txt [deleted file]
templates/remind_voter_mail.txt [deleted file]
templates/update_motion_mail.txt [deleted file]
templates/withdraw_motion_form.html [deleted file]
templates/withdraw_motion_mail.txt [deleted file]