Fixes faulty init scripts

This commit is contained in:
Paul Copplestone committed 2020-01-30 12:53:58 +08:00
1 parent f381ccb7a5
commit cae923f3fc
6 files changed
+8766 -231

No files matched your search

+4 -4
View File
@@ -6,11 +6,11 @@ CREATE TABLE public.users (
inserted_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
updated_at timestamp without time zone DEFAULT timezone('utc'::text, now()) NOT NULL,
data jsonb DEFAULT null,
username text
status public.users.data DEFAULT 'ONLINE'::public.user_status
username text,
status user_status DEFAULT 'ONLINE'::public.user_status
);
COMMENT ON TABLE public.users.data IS 'For unstructured data and prototyping.';
COMMENT ON COLUMN public.users.data IS 'For unstructured data and prototyping.';
@@ -24,7 +24,7 @@ CREATE TABLE public.rooms (
slug text,
owner_id bigint REFERENCES users NOT NULL
);
COMMENT ON TABLE public.users.data IS 'For unstructured data and prototyping.';
COMMENT ON COLUMN public.rooms.data IS 'For unstructured data and prototyping.';
-- Create the Replication publication
CREATE PUBLICATION supabase_realtime FOR ALL TABLES;
+1 -1
View File
@@ -4,5 +4,5 @@ INSERT INTO
public.users (name)
VALUES
('kiwicopple'),
('awailas')
('awailas'),
('dragarcia');
+6 -1
View File
@@ -19,9 +19,14 @@ services:
ports:
- "5432:5432"
volumes:
- ./db:/var/lib/postgresql/data
- ./db:/docker-entrypoint-initdb.d/
command:
- "postgres"
- "-c"
- "wal_level=logical"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_PORT: 5432
+1
View File
@@ -1,4 +1,5 @@
const withPlugins = require('next-compose-plugins')
const path = require('path')
// Next Config
const nextConfig = {
+8752 -224
View File
File diff suppressed because it is too large. Load diff
+2 -1
View File
@@ -5,10 +5,11 @@
"start": "next start"
},
"dependencies": {
"@supabase/supabase-js": "^0.1.16",
"@zeit/next-sass": "^1.0.0",
"next": "latest",
"next-compose-plugins": "^2.2.0",
"node-sass": "4.7.2",
"node-sass": "^4.13.1",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}