Logo
Explore Help
Register Sign In
MOPC/MOPC-Portal
1
0
Fork 0
You've already forked MOPC-Portal
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4fa3ca0bb682c5f02b7b235b89ab61ef4e78c569
MOPC-Portal/prisma/migrations/20260202100000_add_award_ai_toggle/migration.sql

5 lines
169 B
MySQL
Raw Normal View History

Add AI eligibility toggle and include-submitted filter for awards - Add useAiEligibility boolean to SpecialAward schema (default true) - Toggle on creation form lets admins disable AI for feeling-based awards - Detail page shows "Load All Projects" when AI is off vs "Run AI Eligibility" - Include Submitted toggle lets admins include SUBMITTED-status projects - Fix perPage: 200 → 100 to match user.list validation max - Fix edition display on award detail page - Add migration for new column Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 20:02:58 +01:00
-- AlterTable
Make migrations idempotent and add missing tables - Make all pending migrations idempotent (safe to re-run) - Disable decouple_projects_from_rounds migration (schema not changed) - Add ProjectTag table for AI tagging - Add AssignmentJob table for AI assignment progress On server deployment, run: npx prisma migrate deploy Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-05 11:09:37 +01:00
DO $$ BEGIN
ALTER TABLE "SpecialAward" ADD COLUMN "useAiEligibility" BOOLEAN NOT NULL DEFAULT true;
EXCEPTION WHEN duplicate_column THEN NULL; END $$;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.4 Page: 30ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API