From 22bcecc9b3a80ddd53d5854d726c4b01567468dd Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 3 Jul 2020 20:06:04 +0200 Subject: [PATCH] new go version, new upstream versions --- .gitlab-ci.yml | 2 +- create-schema.sql | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1fb9f76..f745033 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,7 +5,7 @@ stages: variables: IMAGE_NAME: registry.hottis.de/dockerized/mosquitto-with-auth HUB_IMAGE_NAME: wollud1969/mosquitto-with-auth - GO_BINARIES: go1.12.6.linux-amd64.tar.gz + GO_BINARIES: go1.14.4.linux-amd64.tar.gz build: stage: build image: registry.hottis.de/dockerized/base-build-env:latest diff --git a/create-schema.sql b/create-schema.sql index f8e77be..aed44d9 100644 --- a/create-schema.sql +++ b/create-schema.sql @@ -15,9 +15,10 @@ CREATE TABLE acls_t ( id INTEGER AUTO_INCREMENT, user INTEGER NOT NULL, topic VARCHAR(256) NOT NULL, - rw INTEGER(1) NOT NULL DEFAULT 1, -- 1 is read, 2 is write, 3 is readwrite, 4 is subscribe + -- rw, bitmask: 1 is read, 2 is write, 3 is readwrite, 4 is subscribe + rw INTEGER(1) NOT NULL DEFAULT 1, PRIMARY KEY (id), - CONSTRAINT `fk_book_author` + CONSTRAINT `fk_user_acl` FOREIGN KEY (user) REFERENCES users_t (id) ON DELETE CASCADE ON UPDATE CASCADE