fmnas / fmnas-site

Forget Me Not Animal Shelter
https://forgetmenotshelter.org
GNU General Public License v3.0
0 stars 0 forks source link

Add database versioning #5

Open todo[bot] opened 3 years ago

todo[bot] commented 3 years ago

https://github.com/fmnas/fmnas-site/blob/6f40a509151303c3d50a546760e6c9ce281a5410/admin/db.php#L7-L10


This issue was generated by todo based on a todo comment in 6f40a509151303c3d50a546760e6c9ce281a5410. It's been assigned to @TortoiseWrath because they committed the code.
TortoiseWrath commented 2 years ago

Some options:

TortoiseWrath commented 2 years ago

If we hosted or replicated the database somewhere other than dreamhost and used temporal tables that would work. Unfortunately no support in MySQL so can't happen on dreamhost (yet). But MariaDB has them now.

https://www.dolthub.com/blog/2021-09-17-database-version-control/

SQL Server allows a publisher with non-temporal and a subscriber with temporal data: https://stackoverflow.com/questions/45819401/can-you-replicate-a-normal-table-to-a-system-versioned-temporal-table. No idea if MariaDB does.

TortoiseWrath commented 2 years ago

Blocked on schema changes for #169, #162, #22, and eventually #175 for #80