Was wondering if maybe SS could have a GitHub repo (new or included in an existing) of the different Auth DB schemas in sql code. Probably only needs the major db dialects (SqlServer, Postgres, etc.). This could probably be auto generated and only needs to be generated if something changes. If this already exists, let me know.
The reasoning is running the code to init an Auth DB are:
It’s rather annoying, when all that is needed is the sql script.
DBA’s don’t run .NET code.
Tracking Auth DB schema changes as they happen. I think this has happened once or twice since SS v2 and caused some nuisances when upgrading b/c of the changes.
I have no intentions of spending time on this never requested option which would require keeping it in sync indefinitely and supporting it as an alternative code-path for creating RDBMS schemas.
If you want to yourself you can register the BeforeExecFilter to access all generated SQL + params, e.g:
i.e. you literally just need to run CreateTableIfNotExists<T> on each POCO table.
As a goal I avoid making any structural RDBMS changes that would cause a software update to break when accessing an old schema. I can’t remember the last time this happened I know the Auth DB schemas never changed in v4 which is now more than 5 years ago, the last SS v2 release was likely more than 7 years ago. I can’t quickly tell offhand because this predates NuGet.