forked from wasp-lang/wasp
-
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.
Mage 0.12 producing 0.11 (wasp-lang#1805)
* Upgraded Mage to Wasp 0.12 while producing Wasp 0.11.4 apps. * Rearranged imports to be nicer. * Updated tsconfig.json and .gitignore according to new changes to wasp new.
- Loading branch information
Showing
34 changed files
with
9,430 additions
and
297 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,3 +1,4 @@ | ||
# Ignore editor tmp files | ||
**/*~ | ||
**/#*# | ||
.DS_Store |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
-- CreateTable | ||
CREATE TABLE "Auth" ( | ||
"id" TEXT NOT NULL, | ||
"userId" INTEGER, | ||
|
||
CONSTRAINT "Auth_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "AuthIdentity" ( | ||
"providerName" TEXT NOT NULL, | ||
"providerUserId" TEXT NOT NULL, | ||
"providerData" TEXT NOT NULL DEFAULT '{}', | ||
"authId" TEXT NOT NULL, | ||
|
||
CONSTRAINT "AuthIdentity_pkey" PRIMARY KEY ("providerName","providerUserId") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Session" ( | ||
"id" TEXT NOT NULL, | ||
"expiresAt" TIMESTAMP(3) NOT NULL, | ||
"userId" TEXT NOT NULL, | ||
|
||
CONSTRAINT "Session_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Auth_userId_key" ON "Auth"("userId"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Session_id_key" ON "Session"("id"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "Session_userId_idx" ON "Session"("userId"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Auth" ADD CONSTRAINT "Auth_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "AuthIdentity" ADD CONSTRAINT "AuthIdentity_authId_fkey" FOREIGN KEY ("authId") REFERENCES "Auth"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "Session" ADD CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "Auth"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
17 changes: 17 additions & 0 deletions
17
mage/migrations/20240223170839_remove_old_auth/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,17 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the `SocialLogin` table. If the table is not empty, all the data it contains will be lost. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "SocialLogin" DROP CONSTRAINT "SocialLogin_userId_fkey"; | ||
|
||
-- DropIndex | ||
DROP INDEX "User_email_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "User" ALTER COLUMN "email" DROP NOT NULL; | ||
|
||
-- DropTable | ||
DROP TABLE "SocialLogin"; |
Oops, something went wrong.