simonw / datasette-edit-schema

Datasette plugin for modifying table schemas
Apache License 2.0
16 stars 0 forks source link

Track alter-event in all the right places #57

Closed simonw closed 8 months ago

simonw commented 8 months ago

Refs:

simonw commented 8 months ago

This is actually harder than I thought, because there are a bunch of functions that need to be tracked independently: https://github.com/simonw/datasette-edit-schema/blob/130faf5b8ac24291355f3b31daeee4ad7482edbe/datasette_edit_schema/__init__.py#L373-L394

I think this will be easier if I do the trick where I check the schema before and after and record the event if the schema changed, no matter which code path was taken.