mirror of
https://github.com/lingble/twenty.git
synced 2025-11-24 01:44:51 +00:00
Added script to setup database locally on Linux/WSL (#1879)
* Created script to install and setup PostgreSQL database for Linux/WSL * Updated Docs
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
-- Create table "default" for local setup without docker
|
||||
SELECT 'CREATE DATABASE "default"'
|
||||
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'default')\gexec
|
||||
|
||||
-- Create user "twenty" for local setup without docker
|
||||
SELECT 'CREATE USER twenty PASSWORD ''twenty'''
|
||||
WHERE NOT EXISTS (SELECT FROM pg_user WHERE usename = 'twenty')\gexec
|
||||
|
||||
-- Inflect names for pg_graphql
|
||||
COMMENT ON SCHEMA "public" IS '@graphql({"inflect_names": true})';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user