-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved file conversion to process, added pdf url to output
- Loading branch information
Showing
10 changed files
with
168 additions
and
117 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
chunkmydocs/migrations/2024-10-04-222604_update_validate_usage/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- This file should undo anything in `up.sql` | ||
-- Drop the new trigger | ||
DROP TRIGGER IF EXISTS validate_usage_trigger ON TASKS; | ||
|
||
-- Recreate the original trigger | ||
CREATE OR REPLACE TRIGGER validate_usage_trigger | ||
BEFORE INSERT ON TASKS | ||
FOR EACH ROW | ||
EXECUTE FUNCTION validate_usage(); |
10 changes: 10 additions & 0 deletions
10
chunkmydocs/migrations/2024-10-04-222604_update_validate_usage/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Your SQL goes here | ||
-- Drop the existing trigger | ||
DROP TRIGGER IF EXISTS validate_usage_trigger ON TASKS; | ||
|
||
-- Create the new trigger | ||
CREATE TRIGGER validate_usage_trigger | ||
BEFORE UPDATE ON TASKS | ||
FOR EACH ROW | ||
WHEN (NEW.page_count > 0) | ||
EXECUTE FUNCTION validate_usage(); |
4 changes: 4 additions & 0 deletions
4
chunkmydocs/migrations/2024-10-04-231524_task_table_new_cols/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE tasks | ||
DROP COLUMN pdf_location, | ||
DROP COLUMN input_file_type; |
4 changes: 4 additions & 0 deletions
4
chunkmydocs/migrations/2024-10-04-231524_task_table_new_cols/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE tasks | ||
ADD COLUMN pdf_location TEXT, | ||
ADD COLUMN input_file_type TEXT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.