Skip to content

Commit 0863a15

Browse files
committed
chore: revert single file
1 parent 91d3d18 commit 0863a15

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

multifile/tables/orders.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ CREATE TABLE IF NOT EXISTS orders (
99
amount numeric(10,2) DEFAULT 0.00
1010
);
1111

12+
COMMENT ON TABLE orders IS 'Customer orders';
13+
1214
COMMENT ON COLUMN orders.user_id IS 'Reference to user';
1315

1416
--

multifile/tables/users.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44

55
CREATE TABLE IF NOT EXISTS users (
66
id integer PRIMARY KEY,
7-
email text NOT NULL,
8-
name text NOT NULL,
9-
city text NOT NULL
7+
email text NOT NULL CHECK (email LIKE '%@%'),
8+
name text NOT NULL
109
);
1110

1211
COMMENT ON TABLE users IS 'User accounts';

singlefile/schema.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ $$;
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,
80-
city text NOT NULL
79+
name text NOT NULL
8180
);
8281

8382
COMMENT ON TABLE users IS 'User accounts';

0 commit comments

Comments
 (0)