Skip to content

Commit

Permalink
Switched the database provider from MySQL to PostgreSQL in migration_…
Browse files Browse the repository at this point in the history
…lock.toml. A new "ChartContainer" component has been included in the layout file. Also, a new "@clerk/themes" was added to the dependency list, and docker-compose.yml was created for PostgreSQL service.
  • Loading branch information
mikepsinn committed Apr 2, 2024
1 parent 55e6db8 commit f9e4a4b
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
3 changes: 3 additions & 0 deletions app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Navbar from "@/components/navbar";
import { Sidebar } from "@/components/sidebar";
import { checkSubscription } from "@/lib/subscription";
import { getApiLimitCount } from "@/lib/api-limit";
import ChartContainer from "@/components/ui/chart-container";

const DashboardLayout = async ({
children,
Expand All @@ -10,6 +11,8 @@ const DashboardLayout = async ({
}) => {
const apiLimitCount = await getApiLimitCount();
const isDonor = await checkSubscription();
//const warPercentageDesired = localStorage.getItem("warPercentageDesired");


return (
<div className="h-full relative">
Expand Down
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: '3.8'
services:
db:
image: postgres:13
restart: always
environment:
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
POSTGRES_DB: test_db
ports:
- 5432:5432
volumes:
- ./data:/var/lib/postgresql/data
31 changes: 26 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next13-ai-saas",
"name": "global-referdum-on-war-and-disease",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -12,6 +12,7 @@
},
"dependencies": {
"@clerk/nextjs": "^4.21.15",
"@clerk/themes": "^1.7.11",
"@hookform/resolvers": "^3.1.1",
"@prisma/client": "^5.0.0",
"@radix-ui/react-avatar": "^1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion prisma/migrations/migration_lock.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "mysql"
provider = "postgresql"

0 comments on commit f9e4a4b

Please sign in to comment.