Skip to content

Commit af2d759

Browse files
authored
Merge pull request #3 from pgschema/feature-1
feat: change schema.sql
2 parents ddeb37e + ee72b9f commit af2d759

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

singlefile/schema.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ $$;
7676
CREATE TABLE IF NOT EXISTS users (
7777
id integer PRIMARY KEY,
7878
email text NOT NULL CHECK (email LIKE '%@%'),
79-
name text NOT NULL
79+
name text NOT NULL,
80+
city text NOT NULL
8081
);
8182

8283
COMMENT ON TABLE users IS 'User accounts';
@@ -87,8 +88,6 @@ COMMENT ON COLUMN users.email IS 'User email address';
8788
-- Name: idx_users_email; Type: INDEX; Schema: -; Owner: -
8889
--
8990

90-
CREATE INDEX IF NOT EXISTS idx_users_email ON users (email);
91-
9291
--
9392
-- Name: idx_users_name; Type: INDEX; Schema: -; Owner: -
9493
--

0 commit comments

Comments
 (0)