-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: specify table alias for soft delete where
- Loading branch information
1 parent
1a03dc5
commit 5fff1dc
Showing
14 changed files
with
24 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = '' WHERE ("id" = NULL) | ||
UPDATE "models" AS "model" SET "str" = '' WHERE ("model"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = 'hello' WHERE ("id" = 42) | ||
UPDATE "models" AS "model" SET "str" = 'hello' WHERE ("model"."id" = 42) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = '', foo = 'bar' WHERE ("id" = NULL) | ||
UPDATE "models" AS "model" SET "str" = '', foo = 'bar' WHERE ("model"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "soft_deletes" AS "soft_delete" SET "deleted_at" = [TIME] WHERE "deleted_at" IS NULL AND ("id" = NULL) | ||
UPDATE "soft_deletes" AS "soft_delete" SET "deleted_at" = [TIME] WHERE "soft_delete"."deleted_at" IS NULL AND ("soft_delete"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = '' WHERE ("id" = NULL) | ||
UPDATE "models" AS "model" SET "str" = '' WHERE ("model"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = 'hello' WHERE ("id" = 42) | ||
UPDATE "models" AS "model" SET "str" = 'hello' WHERE ("model"."id" = 42) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = '', foo = 'bar' WHERE ("id" = NULL) | ||
UPDATE "models" AS "model" SET "str" = '', foo = 'bar' WHERE ("model"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "soft_deletes" AS "soft_delete" SET "deleted_at" = [TIME] WHERE "deleted_at" IS NULL AND ("id" = NULL) | ||
UPDATE "soft_deletes" AS "soft_delete" SET "deleted_at" = [TIME] WHERE "soft_delete"."deleted_at" IS NULL AND ("soft_delete"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = '' WHERE ("id" = NULL) | ||
UPDATE "models" AS "model" SET "str" = '' WHERE ("model"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = 'hello' WHERE ("id" = 42) | ||
UPDATE "models" AS "model" SET "str" = 'hello' WHERE ("model"."id" = 42) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "models" AS "model" SET "str" = '', foo = 'bar' WHERE ("id" = NULL) | ||
UPDATE "models" AS "model" SET "str" = '', foo = 'bar' WHERE ("model"."id" = NULL) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
UPDATE "soft_deletes" AS "soft_delete" SET "deleted_at" = [TIME] WHERE "deleted_at" IS NULL AND ("id" = NULL) | ||
UPDATE "soft_deletes" AS "soft_delete" SET "deleted_at" = [TIME] WHERE "soft_delete"."deleted_at" IS NULL AND ("soft_delete"."id" = NULL) |
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