refactor: ♻️ new limits for database varchars
This commit is contained in:
parent
032a19931d
commit
502334ea79
6 changed files with 7 additions and 7 deletions
|
@ -2,5 +2,5 @@
|
|||
CREATE TABLE IF NOT EXISTS "post"(
|
||||
creation_time TIMESTAMPTZ PRIMARY KEY UNIQUE NOT NULL DEFAULT NOW(),
|
||||
user_id BIGSERIAL NOT NULL REFERENCES "user"(id),
|
||||
post VARCHAR NOT NULL UNIQUE
|
||||
post VARCHAR(8192) NOT NULL UNIQUE
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue