add add_admin migration

This commit is contained in:
Dario Piotrowicz 2023-02-28 13:59:35 +00:00
parent a97dbfa814
commit 47ce3a6e89
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
-- Migration number: 0009 2023-02-28T13:58:08.319Z
ALTER TABLE actors
ADD is_admin INTEGER;
UPDATE actors SET is_admin = 1
WHERE id =
(SELECT id
FROM actors
ORDER BY cdate ASC LIMIT 1 );