This migration adds a description field to the strategic_cooperation table to allow configurable descriptions from the admin panel.
cd backend
python migrate_strategic_cooperation.py
If you prefer to run SQL directly, connect to your MySQL database and run:
ALTER TABLE strategic_cooperation ADD COLUMN description TEXT;
Or use the SQL file:
mysql -h 47.109.147.74 -u official_web -p official_web < add_description_to_strategic_cooperation.sql
After running the migration, verify the column was added:
DESCRIBE strategic_cooperation;
You should see a description column in the output.
backend/app/models.py): Added description field to StrategicCooperation modelbackend/app/routes.py): Updated API endpoints to handle description fieldadmin-web/src/views/StrategicCooperation.vue): Added description textarea inputofficial-web/src/views/Home.vue): Updated to display description from API with 2-line limitAfter migration, you can: