Switch to using Docker
This commit refactors all code in this project to make use of docker. This has not yet been documented properly.
This commit is contained in:
parent
9ece280e72
commit
76ef5d8e68
43 changed files with 943 additions and 545 deletions
28
distillery/resources/templates/bookkeeping/create.sql
Normal file
28
distillery/resources/templates/bookkeeping/create.sql
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
-- create the database if it doesn't exist yet
|
||||
CREATE DATABASE IF NOT EXISTS `${DATABASE}`;
|
||||
|
||||
-- use the database we just created
|
||||
USE `${DATABASE}`;
|
||||
|
||||
-- create the bookkeeping table
|
||||
CREATE TABLE IF NOT EXISTS `${TABLE}`(
|
||||
-- automatically created fields
|
||||
pk INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
created DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
|
||||
-- slug of the website
|
||||
slug TEXT NOT NULL UNIQUE,
|
||||
|
||||
-- local file path
|
||||
filesystem_base TEXT NOT NULL,
|
||||
|
||||
-- sql access credentials
|
||||
sql_database TEXT NOT NULL,
|
||||
sql_user TEXT NOT NULL,
|
||||
sql_password TEXT NOT NULL,
|
||||
|
||||
-- graphdb credentials
|
||||
graphdb_repository TEXT NOT NULL,
|
||||
graphdb_user TEXT NOT NULL,
|
||||
graphdb_password TEXT NOT NULL
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue