mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-18 17:12:53 +03:00
6e6f0af26e
* feat: add enum type (RATING, SELECT, MULTI_SELECT)
feat: wip enum type
feat: try to alter enum
feat: wip enum
feat: wip enum
feat: schema-builder can handle enum
fix: return default value in field metadata response
* fix: create fieldMedata with options
* fix: lint issues
* fix: rename abstract factory
* feat: drop `PHONE` and `EMAIL` fieldMetadata types
* feat: drop `VARCHAR` fieldMetadata type and rely on `TEXT`
* Revert "feat: drop `PHONE` and `EMAIL` fieldMetadata types"
This reverts commit 3857539f7d
.
31 lines
812 B
Docker
31 lines
812 B
Docker
ARG PG_MAIN_VERSION=14
|
|
|
|
FROM postgres:${PG_MAIN_VERSION} as postgres
|
|
|
|
ARG PG_MAIN_VERSION
|
|
ARG PG_GRAPHQL_VERSION=1.4.2
|
|
ARG TARGETARCH
|
|
|
|
RUN set -eux; \
|
|
ARCH="$(dpkg --print-architecture)"; \
|
|
case "${ARCH}" in \
|
|
aarch64|arm64) \
|
|
TARGETARCH='arm64'; \
|
|
;; \
|
|
amd64|x86_64) \
|
|
TARGETARCH='amd64'; \
|
|
;; \
|
|
*) \
|
|
echo "Unsupported arch: ${ARCH}"; \
|
|
exit 1; \
|
|
;; \
|
|
esac;
|
|
|
|
RUN apt update && apt install -y curl
|
|
|
|
# Install precompiled pg_graphql extensions
|
|
RUN curl -L "https://github.com/supabase/pg_graphql/releases/download/v${PG_GRAPHQL_VERSION}/pg_graphql-v${PG_GRAPHQL_VERSION}-pg${PG_MAIN_VERSION}-${TARGETARCH}-linux-gnu.deb" -o pg_graphql.deb
|
|
RUN dpkg --install pg_graphql.deb
|
|
|
|
COPY init.sql /docker-entrypoint-initdb.d/
|