diff options
| author | Tolmachev Igor <me@igorek.dev> | 2025-08-26 21:13:53 +0900 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2025-08-26 21:13:53 +0900 |
| commit | dc33fa8416ce6b447494c6efdf46518da37ac1cc (patch) | |
| tree | 6bf069f70c953f14b3a7e84ed4a7bbcde3de7012 /.zed/tasks.json | |
| parent | 9cb5689c87978c4e05e87f631ebf92a626d583b0 (diff) | |
| download | queue_server-dc33fa8416ce6b447494c6efdf46518da37ac1cc.tar.gz queue_server-dc33fa8416ce6b447494c6efdf46518da37ac1cc.zip | |
Add database migration and entities
Diffstat (limited to '.zed/tasks.json')
| -rw-r--r-- | .zed/tasks.json | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.zed/tasks.json b/.zed/tasks.json index 4648b2c..e725a43 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json | |||
| @@ -1,5 +1,37 @@ | |||
| 1 | [ | 1 | [ |
| 2 | { | 2 | { |
| 3 | "label": "Run migrations", | ||
| 4 | "command": "sea-orm-cli", | ||
| 5 | "args": ["migrate", "up"], | ||
| 6 | |||
| 7 | "env": { | ||
| 8 | "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" | ||
| 9 | }, | ||
| 10 | |||
| 11 | "use_new_terminal": false, | ||
| 12 | "allow_concurrent_runs": false, | ||
| 13 | "reveal": "no_focus", | ||
| 14 | "reveal_target": "dock", | ||
| 15 | "hide": "never", | ||
| 16 | "shell": "system" | ||
| 17 | }, | ||
| 18 | { | ||
| 19 | "label": "Generate entity files", | ||
| 20 | "command": "sea-orm-cli", | ||
| 21 | "args": ["generate", "entity", "--lib", "--ignore-tables", "migrations", "-o", "entity/src/"], | ||
| 22 | |||
| 23 | "env": { | ||
| 24 | "DATABASE_URL": "postgres://itmo_queue:itmo_queue@localhost/itmo_queue" | ||
| 25 | }, | ||
| 26 | |||
| 27 | "use_new_terminal": false, | ||
| 28 | "allow_concurrent_runs": false, | ||
| 29 | "reveal": "no_focus", | ||
| 30 | "reveal_target": "dock", | ||
| 31 | "hide": "never", | ||
| 32 | "shell": "system" | ||
| 33 | }, | ||
| 34 | { | ||
| 3 | "label": "Run release server", | 35 | "label": "Run release server", |
| 4 | "command": "cargo", | 36 | "command": "cargo", |
| 5 | "args": ["run", "-r"], | 37 | "args": ["run", "-r"], |
