Skip to content

Conversation

@markdav-is
Copy link
Member

Migrate DB schema to SQL project, refactor forms & UI

  • Move all DB schema management to Visual Studio SQL project (Sql.sqlproj); remove EF Core migrations and entity builders
  • Add all Oqtane and 10 Trees tables as .sql files with simple names
  • Update model [Table] attributes to match new table names
  • Refactor Enrollment "BasicInfo" and Village "Edit" forms for better layout, validation, and localization
  • Improve validation error messaging and resource files (en-ZA, ts-ZA)
  • Update module versions to 1.1.0 and remove obsolete manager classes
  • Add SQL project to solution and provide schema compare sample
  • Update documentation and project files for new workflow
  • Remove custom roles setup script (now managed via SQL project/admin UI)

PR Classification

Design and infrastructure refactor to migrate database schema management from EF Core migrations to a Visual Studio SQL Project, with related UI and resource improvements.

PR Summary

This PR removes all Entity Framework migrations and entity builders, introducing a SQL Project as the sole source of truth for the database schema, and updates forms and resources for improved usability and bilingual support.

  • Deleted all EF Core migration/entity builder files and Oqtane module manager classes (EnrollmentManager.cs, VillageManager.cs).
  • Added Sql/Sql.sqlproj and all table definitions as .sql files, updating the solution and documentation accordingly.
  • Updated Enrollment and Village models to use simple [Table("ModelName")] attributes.
  • Refactored Enrollment and Village form UIs for better validation, layout, and bilingual error messaging.
  • Updated resource files (.resx) for both English and Xitsonga to improve validation and section headers.

- Move all DB schema management to Visual Studio SQL project (`Sql.sqlproj`); remove EF Core migrations and entity builders
- Add all Oqtane and 10 Trees tables as `.sql` files with simple names
- Update model `[Table]` attributes to match new table names
- Refactor Enrollment "BasicInfo" and Village "Edit" forms for better layout, validation, and localization
- Improve validation error messaging and resource files (en-ZA, ts-ZA)
- Update module versions to 1.1.0 and remove obsolete manager classes
- Add SQL project to solution and provide schema compare sample
- Update documentation and project files for new workflow
- Remove custom roles setup script (now managed via SQL project/admin UI)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants