From dc33fa8416ce6b447494c6efdf46518da37ac1cc Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Tue, 26 Aug 2025 21:13:53 +0900 Subject: Add database migration and entities --- .zed/tasks.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to '.zed') diff --git a/.zed/tasks.json b/.zed/tasks.json index 4648b2c..e725a43 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -1,4 +1,36 @@ [ + { + "label": "Run migrations", + "command": "sea-orm-cli", + "args": ["migrate", "up"], + + "env": { + "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" + }, + + "use_new_terminal": false, + "allow_concurrent_runs": false, + "reveal": "no_focus", + "reveal_target": "dock", + "hide": "never", + "shell": "system" + }, + { + "label": "Generate entity files", + "command": "sea-orm-cli", + "args": ["generate", "entity", "--lib", "--ignore-tables", "migrations", "-o", "entity/src/"], + + "env": { + "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" + }, + + "use_new_terminal": false, + "allow_concurrent_runs": false, + "reveal": "no_focus", + "reveal_target": "dock", + "hide": "never", + "shell": "system" + }, { "label": "Run release server", "command": "cargo", -- cgit v1.2.3