Publier Globinours 1.0.0-rc.3
This commit is contained in:
parent
ea8c24d622
commit
9a2b4068da
325 changed files with 38230 additions and 20 deletions
9
migrations/025_animal_archive_and_trash.sql
Normal file
9
migrations/025_animal_archive_and_trash.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
ALTER TABLE animals ADD COLUMN archived_at TEXT;
|
||||
ALTER TABLE animals ADD COLUMN deletion_reason TEXT;
|
||||
|
||||
-- L'ancien bouton « Archiver » utilisait deleted_at : on conserve donc ces fiches
|
||||
-- comme archives et on libère la nouvelle corbeille.
|
||||
UPDATE animals SET archived_at = deleted_at, deleted_at = NULL WHERE deleted_at IS NOT NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_animals_archived_at ON animals(archived_at);
|
||||
CREATE INDEX IF NOT EXISTS idx_animals_deleted_at ON animals(deleted_at);
|
||||
Loading…
Add table
Add a link
Reference in a new issue