0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 16:48:16 -05:00

🐛 Add missing version field on pages table.

This commit is contained in:
Andrey Antukh 2019-11-29 12:52:52 +01:00
parent 45cc4e0d27
commit cd43a6c90e

View file

@ -10,6 +10,7 @@ CREATE TABLE IF NOT EXISTS pages (
modified_at timestamptz NOT NULL DEFAULT clock_timestamp(),
deleted_at timestamptz DEFAULT NULL,
version bigint NOT NULL,
ordering smallint,
name text NOT NULL,
@ -23,8 +24,8 @@ CREATE TABLE IF NOT EXISTS pages_history (
user_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE,
page_id uuid NOT NULL REFERENCES pages(id) ON DELETE CASCADE,
created_at timestamptz NOT NULL,
modified_at timestamptz NOT NULL,
created_at timestamptz NOT NULL DEFAULT clock_timestamp(),
modified_at timestamptz NOT NULL DEFAULT clock_timestamp(),
version bigint NOT NULL DEFAULT 0,
pinned bool NOT NULL DEFAULT false,