managarten/maerchenzauber/apps/backend/scripts/apply-story-votes-migration.sh
Till-JS e7f5f942f3 chore: initial commit - consolidate 4 projects into monorepo
Projects included:
- maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing)
- manacore (Expo mobile + SvelteKit web + Astro landing)
- manadeck (NestJS backend + Expo mobile + SvelteKit web)
- memoro (Expo mobile + SvelteKit web + Astro landing)

This commit preserves the current state before monorepo restructuring.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:38:24 +01:00

36 lines
1 KiB
Bash
Executable file

#!/bin/bash
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
RED='\033[0;31m'
NC='\033[0m' # No Color
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
MIGRATION_FILE="$SCRIPT_DIR/../migrations/create_story_votes_table.sql"
echo ""
echo -e "${YELLOW}📋 Story Votes Migration${NC}"
echo "================================"
echo ""
# Check if migration file exists
if [ ! -f "$MIGRATION_FILE" ]; then
echo -e "${RED}❌ Migration file not found: $MIGRATION_FILE${NC}"
exit 1
fi
echo -e "${GREEN}✅ Migration file found${NC}"
echo ""
echo "Please run this SQL in your Supabase SQL Editor:"
echo ""
echo -e "${YELLOW}1. Go to your Supabase project dashboard${NC}"
echo -e "${YELLOW}2. Navigate to: SQL Editor > New Query${NC}"
echo -e "${YELLOW}3. Copy and paste the following SQL:${NC}"
echo ""
echo "================================================"
cat "$MIGRATION_FILE"
echo "================================================"
echo ""
echo -e "${GREEN}After running the migration, the story voting feature will work!${NC}"
echo ""