mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Fixes faulty init scripts
This commit is contained in:
1 parent
f381ccb7a5
commit
cae923f3fc
6 files changed
+8766
-231
No files matched your search
@@ -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;
|
||||
@@ -4,5 +4,5 @@ INSERT INTO
|
||||
public.users (name)
|
||||
VALUES
|
||||
('kiwicopple'),
|
||||
('awailas')
|
||||
('awailas'),
|
||||
('dragarcia');
|
||||
@@ -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,4 +1,5 @@
|
||||
const withPlugins = require('next-compose-plugins')
|
||||
const path = require('path')
|
||||
|
||||
// Next Config
|
||||
const nextConfig = {
|
||||
|
||||
Generated
+8752
-224
File diff suppressed because it is too large.
Load diff
@@ -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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user