fix: functions migrations
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
INSERT INTO migration.history as h (filename, executed_at, up, down, version)
|
||||
VALUES (?, now(), ?, ?, nextval('migration.version_seq'))
|
||||
VALUES (?, now(), ?, ?, (
|
||||
select coalesce(max(version), 0)+1
|
||||
from migration.history f2
|
||||
where filename = f2.filename
|
||||
))
|
||||
RETURNING to_json(h);
|
||||
|
||||
Reference in New Issue
Block a user