7f9b9d69ae
- 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.
6 lines
165 B
SQL
6 lines
165 B
SQL
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);
|