-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add :deleted column to any schema that uses alog #5
Comments
After looking into this, it doesn't appear to be possible to modify a schema without completely redefining the Ecto.Schema function. The same is true of the @nelsonic What do you think? Is adding a warning that a deleted field is needed enough? |
@Danwhy good question, if we are unable to "inject" the additional fields into the schema A warning would be a good checkpoint to help remind people using For now avoid the Ecto Adapter work unless it will make the use of |
Thinking a little further, it might be good to actually throw an error rather than just a warning, as most of the functions won't actually work without a While there may be some use cases that don't actually need to use a |
As a developer creating Phoenix Web Apps/APIs using
alog
,I would like to have the
:deleted
column added to each schema/table wherealog
is used.So that I don't have to manually add the
:deleted
columnor think about how to "delete" records.
Todo
:deleted
field to a schema when theuse AppendOnlyLog
is employed.README.md
so it's clear to people why this column is needed/added.as initially discussed in dwyl/phoenix-ecto-append-only-log-example#7 (comment)
The text was updated successfully, but these errors were encountered: