mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-09 16:05:42 +00:00
fix migration break
This commit is contained in:
@@ -0,0 +1 @@
|
||||
-- Add down migration script here
|
||||
@@ -0,0 +1,11 @@
|
||||
-- Add up migration script here
|
||||
do
|
||||
$$
|
||||
BEGIN
|
||||
|
||||
IF (NOT EXISTS (SELECT workspace_id FROM script WHERE workspace_id = 'demo' UNION ALL SELECT workspace_id FROM flow WHERE workspace_id = 'demo' UNION ALL SELECT workspace_id FROM app WHERE workspace_id = 'demo'))
|
||||
THEN
|
||||
DELETE FROM workspace_invite WHERE workspace_id = 'demo';
|
||||
END IF;
|
||||
END
|
||||
$$
|
||||
@@ -99,6 +99,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
};
|
||||
|
||||
if server_mode {
|
||||
// migration code to avoid break
|
||||
windmill_api::migrate_db(&db).await?;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user