feat: Implement SAM structure mirroring in PostgreSQL for study plans and courses
- Added functionality to save study plans and courses in SAM format to PostgreSQL. - Updated SQL queries to reflect SAM-native column names and handle conflicts appropriately. - Introduced new fields in the Asset model for English level and SAM identifiers. - Enhanced the TestTemplateForm component to manage linked assets and shared materials. - Created a new AdminSharedMaterialsPage for uploading ZIP files of shared materials. - Added migrations to create SAM mirror tables and update the assets table with new columns.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE assets
|
||||
ADD COLUMN IF NOT EXISTS english_level TEXT;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_assets_org_english_level
|
||||
ON assets (organization_id, english_level);
|
||||
Reference in New Issue
Block a user