Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

249 OpenAPI endpoint implementation findCapitalCommitmentsByManagingCodeCapitalProjectId #339

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ The application is running on port `3000`
This site reflects the documentation at the point where the command was written. Viewing changes to
the OpenAPI documentation requires restarting the development server).

### Schema changes
If you make changes to any database schema in `src/schema`, it will be necessary to generate migration files in order for the changes to be reflected in the database. Database schemas are indicated by their use of the drizzle `pgTable` method. (Changes to the Zod "entity" schemas do not require database migrations)
```sh
npm run drizzle:generate
```

## Production builds
Running a production version of the site is a two step process.
First, generate production versions of the OpenAPI documentation and API.
Expand Down
7 changes: 7 additions & 0 deletions db/migration/0016_condemned_hammerhead.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE "agency_budget" ALTER COLUMN "type" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "agency_budget" ALTER COLUMN "sponsor" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment_fund" ALTER COLUMN "value" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "type" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "planned_date" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "budget_line_code" SET NOT NULL;--> statement-breakpoint
ALTER TABLE "capital_commitment" ALTER COLUMN "budget_line_id" SET NOT NULL;
Loading