9 changed files with 97 additions and 49 deletions
			
			
		- 
					3api/project.go
- 
					5database/postgres/project.go
- 
					11migrations/postgres/20210405234346_add_project_column_subtract_amount.sql
- 
					30models/project.go
- 
					69svelte-ui/src/components/Progress.svelte
- 
					3svelte-ui/src/components/ProgressNumbers.svelte
- 
					16svelte-ui/src/components/ProjectProgress.svelte
- 
					6svelte-ui/src/forms/ProjectForm.svelte
- 
					3svelte-ui/src/models/project.ts
| @ -0,0 +1,11 @@ | |||
| -- +goose Up | |||
| -- +goose StatementBegin | |||
| ALTER TABLE project | |||
|     ADD COLUMN subtract_amount INT NOT NULL DEFAULT 0; | |||
| -- +goose StatementEnd | |||
| 
 | |||
| -- +goose Down | |||
| -- +goose StatementBegin | |||
| ALTER TABLE project | |||
|     DROP COLUMN IF EXISTS subtract_amount; | |||
| -- +goose StatementEnd | |||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue