mirror of
https://github.com/lingble/twenty.git
synced 2025-11-06 07:37:56 +00:00
Setup Hasura-auth locally
This commit is contained in:
committed by
Charles Bochet
parent
43e71c6c93
commit
39ffb0f90b
@@ -1,2 +1,17 @@
|
||||
CREATE DATABASE twenty;
|
||||
CREATE DATABASE hasura;
|
||||
CREATE DATABASE hasura;
|
||||
|
||||
-- From: https://raw.githubusercontent.com/nhost/hasura-auth/main/docker/initdb.d/0001-create-schema.sql
|
||||
\c twenty;
|
||||
-- auth schema
|
||||
CREATE SCHEMA IF NOT EXISTS auth;
|
||||
-- https://github.com/hasura/graphql-engine/issues/3657
|
||||
CREATE EXTENSION IF NOT EXISTS pgcrypto WITH SCHEMA public;
|
||||
CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;
|
||||
CREATE OR REPLACE FUNCTION public.set_current_timestamp_updated_at() RETURNS trigger LANGUAGE plpgsql AS $$
|
||||
declare _new record;
|
||||
begin _new := new;
|
||||
_new."updated_at" = now();
|
||||
return _new;
|
||||
end;
|
||||
$$;
|
||||
Reference in New Issue
Block a user