Skip to content

Commit 75f45be

Browse files
Modify username column to be NOT NULL with default
Set username column to NOT NULL with a default value.
1 parent 4604303 commit 75f45be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

migrations/1.0.0_create_t1.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
CREATE TABLE t0 (
22
id SERIAL PRIMARY KEY,
3-
username VARCHAR(50)
3+
username VARCHAR(50) NOT NULL DEFAULT ''
44
);

0 commit comments

Comments
 (0)