-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Traack remove local storage code (#138)
* First attempt at removing local storage code * Fixing api call * Only show the pol.is survey if the user xid is not null * Removing xid from user table and using the user's ID * Fixing script appending --------- Co-authored-by: Taylor Raack <[email protected]>
- Loading branch information
1 parent
f62ae81
commit 3a2ffb5
Showing
5 changed files
with
48 additions
and
30 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
prisma/migrations/20230724033054_remove_xid_column/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,28 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `xid` on the `User` table. All the data in the column will be lost. | ||
*/ | ||
BEGIN TRY | ||
|
||
BEGIN TRAN; | ||
|
||
-- DropIndex | ||
ALTER TABLE [dbo].[User] DROP CONSTRAINT [User_xid_key]; | ||
|
||
-- AlterTable | ||
ALTER TABLE [dbo].[User] DROP COLUMN [xid]; | ||
|
||
COMMIT TRAN; | ||
|
||
END TRY | ||
BEGIN CATCH | ||
|
||
IF @@TRANCOUNT > 0 | ||
BEGIN | ||
ROLLBACK TRAN; | ||
END; | ||
THROW | ||
|
||
END CATCH |
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
3a2ffb5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hierr – ./
hierr-codeforhawaii.vercel.app
hierr-git-main-codeforhawaii.vercel.app
hierr.vercel.app