-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
58 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
33 changes: 33 additions & 0 deletions
33
apps/studio/prisma/migrations/20240624071353_update_to_blob/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,33 @@ | ||
/* | ||
Warnings: | ||
- You are about to drop the column `contactUsLink` on the `Footer` table. All the data in the column will be lost. | ||
- You are about to drop the column `feedbackFormLink` on the `Footer` table. All the data in the column will be lost. | ||
- You are about to drop the column `privacyStatementLink` on the `Footer` table. All the data in the column will be lost. | ||
- You are about to drop the column `termsOfUseLink` on the `Footer` table. All the data in the column will be lost. | ||
- You are about to drop the column `description` on the `Navbar` table. All the data in the column will be lost. | ||
- You are about to drop the column `name` on the `Navbar` table. All the data in the column will be lost. | ||
- You are about to drop the column `url` on the `Navbar` table. All the data in the column will be lost. | ||
- You are about to drop the `NavbarItems` table. If the table is not empty, all the data it contains will be lost. | ||
- Added the required column `content` to the `Footer` table without a default value. This is not possible if the table is not empty. | ||
- Added the required column `content` to the `Navbar` table without a default value. This is not possible if the table is not empty. | ||
*/ | ||
-- DropForeignKey | ||
ALTER TABLE "NavbarItems" DROP CONSTRAINT "NavbarItems_navbarId_fkey"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Footer" DROP COLUMN "contactUsLink", | ||
DROP COLUMN "feedbackFormLink", | ||
DROP COLUMN "privacyStatementLink", | ||
DROP COLUMN "termsOfUseLink", | ||
ADD COLUMN "content" JSONB NOT NULL; | ||
|
||
-- AlterTable | ||
ALTER TABLE "Navbar" DROP COLUMN "description", | ||
DROP COLUMN "name", | ||
DROP COLUMN "url", | ||
ADD COLUMN "content" JSONB NOT NULL; | ||
|
||
-- DropTable | ||
DROP TABLE "NavbarItems"; |
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,17 @@ | ||
export interface NavbarItem { | ||
name: string | ||
url: string | ||
description: string | ||
} | ||
|
||
export interface Navbar extends NavbarItem { | ||
items: NavbarItem[] | ||
} | ||
|
||
export interface Footer { | ||
name: string | ||
contactUsLink?: string | ||
feedbackFormLink?: string | ||
privacyStatementLink?: string | ||
termsOfUseLink?: string | ||
} |