mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 02:47:22 +02:00
🎉 Add ordering field to pages (for make it easy sorting on sql).
This commit is contained in:
parent
8e81d796f0
commit
3fcbb204cf
2 changed files with 14 additions and 9 deletions
|
@ -10,6 +10,8 @@ CREATE TABLE IF NOT EXISTS pages (
|
|||
modified_at timestamptz NOT NULL DEFAULT clock_timestamp(),
|
||||
deleted_at timestamptz DEFAULT NULL,
|
||||
|
||||
ordering smallint,
|
||||
|
||||
name text NOT NULL,
|
||||
data bytea NOT NULL,
|
||||
metadata bytea NOT NULL
|
||||
|
@ -27,7 +29,8 @@ CREATE TABLE IF NOT EXISTS pages_history (
|
|||
|
||||
pinned bool NOT NULL DEFAULT false,
|
||||
label text NOT NULL DEFAULT '',
|
||||
data bytea NOT NULL
|
||||
data bytea NOT NULL,
|
||||
metadata bytea NOT NULL
|
||||
);
|
||||
|
||||
-- Indexes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue