Skip to content

Issues in demo folder's README #507

@Falestio

Description

@Falestio

While following the setup instructions in the demo folder’s README, I encountered a couple of issues:

  1. Creating a field called user return an error
    The current README suggests creating the tasks table with a column named user:
CREATE TABLE tasks (
  id SERIAL PRIMARY KEY,
  created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
  user UUID NOT NULL,
  title TEXT,
  completed BOOLEAN DEFAULT FALSE
);

However, user is a reserved keyword in Postgre, which causes an error when running this query in supabase

fix:

CREATE TABLE tasks (
  id SERIAL PRIMARY KEY,
  created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW(),
  "user" UUID NOT NULL,
  title TEXT,
  completed BOOLEAN DEFAULT FALSE
);
  1. Incorrect SUPABASE_URL Domain
    Current README:
SUPABASE_URL="https://example.supabase.com"
SUPABASE_KEY="<your_key>"

However, the correct domain should be .co not .com.

fix:

SUPABASE_URL="https://example.supabase.co"
SUPABASE_KEY="<your_key>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions