feat: pivot to social media workflow app
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-04-24 12:58:35 -04:00
parent 0f4acc1b6d
commit df3e602015
349 changed files with 18685 additions and 16010 deletions

View File

@@ -11,7 +11,7 @@ if [ -z "$MODULE_NAME" ] || [ -z "$MIGRATION_NAME" ]; then
fi
dotnet ef migrations add \
--context "Hutopy.Modules.${MODULE_NAME}.Data.${MODULE_NAME}DbContext" \
--context "Socialize.Modules.${MODULE_NAME}.Data.${MODULE_NAME}DbContext" \
--configuration Debug \
--output-dir "Modules/${MODULE_NAME}/Migrations" \
"$MIGRATION_NAME"

View File

@@ -1,25 +1,24 @@
#!/bin/bash
# Start the container (if not already running)
docker start postgres 2>/dev/null || docker run \
docker start socialize-postgres 2>/dev/null || docker run \
--cap-add SYS_PTRACE \
-e POSTGRES_USER=sa \
-e POSTGRES_PASSWORD='P@ssword123!' \
-p 5432:5432 \
--name postgres \
-p 5433:5432 \
--name socialize-postgres \
-d postgres:latest
# Wait until Postgres is ready
echo "Waiting for Postgres to be ready..."
until docker exec postgres pg_isready -U sa > /dev/null 2>&1; do
until docker exec socialize-postgres pg_isready -U sa >/dev/null 2>&1; do
sleep 1
done
# Create 'hutopy' database if it doesn't exist
echo "Ensuring 'hutopy' database exists..."
docker exec -e PGPASSWORD='P@ssword123!' postgres \
psql -U sa -d postgres -tAc "SELECT 1 FROM pg_database WHERE datname='hutopy'" | grep -q 1 || \
docker exec -e PGPASSWORD='P@ssword123!' postgres \
createdb -U sa hutopy
# Create databases if they don't exist
echo "Ensuring development databases exist..."
docker exec -e PGPASSWORD='P@ssword123!' socialize-postgres \
sh -lc "psql -U sa -d postgres -tAc \"SELECT 1 FROM pg_database WHERE datname='socialize'\" | grep -q 1 || createdb -U sa socialize"
echo "✅ Done."

View File

@@ -14,7 +14,7 @@ fi
UPDATE_COMMAND=(
dotnet ef database update
--context "Hutopy.Modules.${MODULE_NAME}.Data.${MODULE_NAME}DbContext"
--context "Socialize.Modules.${MODULE_NAME}.Data.${MODULE_NAME}DbContext"
--configuration Debug
)