Add initial migration for moderation app and resolve seed command issues

- Created an empty migration file for the moderation app to enable migrations.
- Documented the resolution of the seed command failure due to missing moderation tables.
- Identified and fixed a VARCHAR(10) constraint violation in the User model during seed data generation.
- Updated role assignment in the seed command to comply with the field length constraint.
This commit is contained in:
pacnpal
2025-09-25 08:39:05 -04:00
parent b1c369c1bb
commit 41b3c86437
13 changed files with 481 additions and 479 deletions

View File

@@ -53,17 +53,16 @@
<div>
<label class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">
Launch Type:
Propulsion System:
</label>
<select name="stats.launch_type"
<select name="stats.propulsion_system"
class="w-full px-3 py-2 text-gray-900 bg-white border rounded-lg dark:text-gray-300 dark:bg-gray-900 border-gray-200/50 dark:border-gray-700/50 focus:ring-2 focus:ring-blue-500">
<option value="">Select launch type</option>
<option value="CHAIN_LIFT" {% if stats.launch_type == 'CHAIN_LIFT' %}selected{% endif %}>Chain Lift</option>
<option value="LSM" {% if stats.launch_type == 'LSM' %}selected{% endif %}>LSM</option>
<option value="HYDRAULIC" {% if stats.launch_type == 'HYDRAULIC' %}selected{% endif %}>Hydraulic</option>
<option value="TIRE_DRIVE" {% if stats.launch_type == 'TIRE_DRIVE' %}selected{% endif %}>Tire Drive</option>
<option value="CABLE_LIFT" {% if stats.launch_type == 'CABLE_LIFT' %}selected{% endif %}>Cable Lift</option>
<option value="OTHER" {% if stats.launch_type == 'OTHER' %}selected{% endif %}>Other</option>
<option value="">Select propulsion system</option>
<option value="CHAIN" {% if stats.propulsion_system == 'CHAIN' %}selected{% endif %}>Chain Lift</option>
<option value="LSM" {% if stats.propulsion_system == 'LSM' %}selected{% endif %}>LSM Launch</option>
<option value="HYDRAULIC" {% if stats.propulsion_system == 'HYDRAULIC' %}selected{% endif %}>Hydraulic Launch</option>
<option value="GRAVITY" {% if stats.propulsion_system == 'GRAVITY' %}selected{% endif %}>Gravity</option>
<option value="OTHER" {% if stats.propulsion_system == 'OTHER' %}selected{% endif %}>Other</option>
</select>
</div>