mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Add deleted at index to file table
This commit is contained in:
committed by
Andrés Moya
parent
c4104c816b
commit
69f084e1df
@@ -247,6 +247,13 @@
|
||||
|
||||
{:name "0079-mod-profile-table"
|
||||
:fn (mg/resource "app/migrations/sql/0079-mod-profile-table.sql")}
|
||||
|
||||
{:name "0080-mod-index-names"
|
||||
:fn (mg/resource "app/migrations/sql/0080-mod-index-names.sql")}
|
||||
|
||||
{:name "0081-add-deleted-at-index-to-file-table"
|
||||
:fn (mg/resource "app/migrations/sql/0081-add-deleted-at-index-to-file-table.sql")}
|
||||
|
||||
])
|
||||
|
||||
|
||||
|
||||
11
backend/src/app/migrations/sql/0080-mod-index-names.sql
Normal file
11
backend/src/app/migrations/sql/0080-mod-index-names.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
ALTER INDEX team_font_variant_deleted_at_idx
|
||||
RENAME TO team_font_variant__deleted_at__idx;
|
||||
|
||||
ALTER INDEX team_deleted_at_idx
|
||||
RENAME TO team__deleted_at__idx;
|
||||
|
||||
ALTER INDEX profile_deleted_at_idx
|
||||
RENAME TO profile__deleted_at__idx;
|
||||
|
||||
ALTER INDEX project_deleted_at_idx
|
||||
RENAME TO project__deleted_at__idx;
|
||||
@@ -0,0 +1,3 @@
|
||||
CREATE INDEX file__deleted_at__idx
|
||||
ON file (deleted_at, id)
|
||||
WHERE deleted_at IS NOT NULL;
|
||||
Reference in New Issue
Block a user