Creating migrations files to create movies table and add movies check constraints. Updating API version number. Updating README.md adding 'SQL Migrations' section. Updating deployment file to make migrations before building API. Adding some .idea files into .gitignore.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 40s
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 40s
This commit is contained in:
@@ -23,6 +23,10 @@ jobs:
|
||||
with:
|
||||
go-version: "1.23" # adapte selon ta version
|
||||
|
||||
- name: Apply migrations
|
||||
run: |
|
||||
migrate -path=./migrations -database=$GREENLIGHT_DB_DSN up
|
||||
|
||||
- name: Build API
|
||||
run: |
|
||||
go mod tidy
|
||||
|
||||
Reference in New Issue
Block a user