-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from unb-mds/test
filtragem sql
- Loading branch information
Showing
11 changed files
with
117 additions
and
39 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
backend/prisma/migrations/20241114215653_especie_opcional/migration.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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "Projeto" ALTER COLUMN "especie" DROP NOT NULL; |
11 changes: 11 additions & 0 deletions
11
backend/prisma/migrations/20241114232428_mudando_tipo/migration.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,11 @@ | ||
-- AlterTable | ||
ALTER TABLE "Executor" ALTER COLUMN "codigo" SET DATA TYPE TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Repassador" ALTER COLUMN "codigo" SET DATA TYPE TEXT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Tomador" ALTER COLUMN "codigo" SET DATA TYPE TEXT; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Tipo" ADD CONSTRAINT "Tipo_idEixo_fkey" FOREIGN KEY ("idEixo") REFERENCES "Eixo"("id") ON DELETE RESTRICT ON UPDATE CASCADE; |
19 changes: 19 additions & 0 deletions
19
backend/prisma/migrations/20241114233015_int_codigo/migration.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,19 @@ | ||
/* | ||
Warnings: | ||
- Changed the type of `codigo` on the `Executor` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. | ||
- Changed the type of `codigo` on the `Repassador` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. | ||
- Changed the type of `codigo` on the `Tomador` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "Executor" DROP COLUMN "codigo", | ||
ADD COLUMN "codigo" INTEGER NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Repassador" DROP COLUMN "codigo", | ||
ADD COLUMN "codigo" INTEGER NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Tomador" DROP COLUMN "codigo", | ||
ADD COLUMN "codigo" INTEGER NOT NULL; |
8 changes: 8 additions & 0 deletions
8
backend/prisma/migrations/20241114233505_big_int/migration.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,8 @@ | ||
-- AlterTable | ||
ALTER TABLE "Executor" ALTER COLUMN "codigo" SET DATA TYPE BIGINT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Repassador" ALTER COLUMN "codigo" SET DATA TYPE BIGINT; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Tomador" ALTER COLUMN "codigo" SET DATA TYPE BIGINT; |
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,2 @@ | ||
-- DropForeignKey | ||
ALTER TABLE "Tipo" DROP CONSTRAINT "Tipo_idEixo_fkey"; |
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
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