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:
3
migrations/000002_add_movies_check_constraints.down.sql
Normal file
3
migrations/000002_add_movies_check_constraints.down.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE movies DROP CONSTRAINT IF EXISTS movies_runtime_check;
|
||||
ALTER TABLE movies DROP CONSTRAINT IF EXISTS movies_year_check;
|
||||
ALTER TABLE movies DROP CONSTRAINT IF EXISTS genres_length_check;
|
||||
Reference in New Issue
Block a user