mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
feat: add migration & drop scripts of database
This commit is contained in:
@@ -32,6 +32,14 @@ run = "cd internal/handlers && go generate"
|
||||
description = "Generate SQL code"
|
||||
run = "sqlc generate"
|
||||
|
||||
[tasks.db-up]
|
||||
description = "Intialize and Migrate Database"
|
||||
run = "scripts/db-up.sh"
|
||||
|
||||
[tasks.db-down]
|
||||
description = "Drop Database"
|
||||
run = "scripts/db-down.sh"
|
||||
|
||||
[tasks.dev]
|
||||
description = "Start development environment"
|
||||
depends = [
|
||||
@@ -45,6 +53,7 @@ depends = [
|
||||
[tasks.setup]
|
||||
description = "Setup development environment"
|
||||
depends = [
|
||||
"//:db-up",
|
||||
"//:pnpm-install",
|
||||
"//:go-install",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user