-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRUN_THESE_MIGRATIONS.sql
More file actions
30 lines (26 loc) · 1.57 KB
/
RUN_THESE_MIGRATIONS.sql
File metadata and controls
30 lines (26 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- ===================================================================
-- IMPORTANT: Run these migrations to add outcome and objectives fields
-- ===================================================================
-- These columns need to be added to the activities table for the
-- outcome and objectives modals to save data properly.
--
-- You can run this in your MySQL client or through phpMyAdmin
-- ===================================================================
USE clickup_sync; -- Change this to your actual database name
-- Migration 012: Add outcome fields to activities table
ALTER TABLE activities
ADD COLUMN outcome_notes TEXT NULL COMMENT 'Qualitative outcome description and results achieved',
ADD COLUMN challenges_faced TEXT NULL COMMENT 'Challenges encountered during implementation',
ADD COLUMN lessons_learned TEXT NULL COMMENT 'Key lessons learned from the activity',
ADD COLUMN recommendations TEXT NULL COMMENT 'Recommendations for future activities';
-- Migration 013: Add simple objectives fields to activities table
ALTER TABLE activities
ADD COLUMN immediate_objectives TEXT NULL COMMENT 'Simple text description of activity immediate objectives',
ADD COLUMN expected_results TEXT NULL COMMENT 'Expected results/deliverables from the activity';
-- Verify the columns were added
SHOW COLUMNS FROM activities LIKE '%outcome%';
SHOW COLUMNS FROM activities LIKE '%objective%';
SHOW COLUMNS FROM activities LIKE '%challenges%';
SHOW COLUMNS FROM activities LIKE '%lessons%';
SHOW COLUMNS FROM activities LIKE '%recommendations%';
SHOW COLUMNS FROM activities LIKE '%expected%';