-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change items and logs delete options * add more data to test case
- Loading branch information
1 parent
99cb749
commit 491ef34
Showing
8 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
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 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
10 changes: 10 additions & 0 deletions
10
priv/repo/migrations/20210211143950_change_item_delete_option.exs
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 @@ | ||
defmodule CrawlyUI.Repo.Migrations.ChangeItemsDeleteOption do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:items) do | ||
modify :job_id, references(:jobs, on_delete: :nothing), | ||
from: references(:jobs, on_delete: :delete_all) | ||
end | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
priv/repo/migrations/20210211152013_change_logs_delete_option.exs
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 @@ | ||
defmodule CrawlyUI.Repo.Migrations.ChangeLogsDeleteOption do | ||
use Ecto.Migration | ||
|
||
def change do | ||
alter table(:logs) do | ||
modify :job_id, references(:jobs, on_delete: :nothing), | ||
from: references(:jobs, on_delete: :delete_all) | ||
end | ||
end | ||
end |
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