mirror of
https://github.com/go-shiori/shiori.git
synced 2026-04-24 22:15:52 +03:00
[PR #903] feat: deleted time added to the database #856
Labels
No labels
component:backend
component:builds
component:builds
component:extension
component:frontend
component:readability
database
database:mysql
database:postgres
database:sqlite
feature:ebooks
github_actions
good first issue
hacktoberfest
note:duplicate?
note:fixed?
note:out-of-scope?
os:windows
priority:high
priority:low
pull-request
resolution:as-intended
resolution:cant-reproduce
resolution:duplicate
resolution:fixed
resolution:wontfix
tag:TBD
tag:big-task
tag:help-wanted
tag:huge-data
tag:meta
tag:more-info
tag:next
tag:no-stale
tag:requires-migrations
tag:research
tag:security 🛡️
tag:stale
tag:waiting-for-assignee
type:bug
type:documentation
type:enhancement
type:meta
type:ux
user:cli
user:web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shiori#856
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/go-shiori/shiori/pull/903
Author: @Monirzadeh
Created: 5/8/2024
Status: 🔄 Open
Base:
master← Head:deleted_at📝 Commits (9)
093076dadd deleted table and record deleted_at inside that for sqlite9f94610add deleted table and record deleted_at inside that for postgresbcc6ebfadd deleted table and record deleted_at inside that for mariadb9ff08a3Merge branch 'master' into deleted_at9a8a0b8change migrate filename for sqlitedf57023Merge branch 'deleted_at' of github.com:Monirzadeh/shiori into deleted_at7b39432fix golangci errord79be9brestore wrong file commitaaf0d16Merge branch 'master' into deleted_at📊 Changes
6 files changed (+51 additions, -0 deletions)
View changed files
➕
internal/database/migrations/mysql/0005_deleted_at.up.sql(+4 -0)➕
internal/database/migrations/postgres/0002_deleted_at.up.sql(+4 -0)➕
internal/database/migrations/sqlite/0004_deleted_at.up.sql(+4 -0)📝
internal/database/mysql.go(+13 -0)📝
internal/database/pg.go(+13 -0)📝
internal/database/sqlite.go(+13 -0)📄 Description
This PR will record deleted time with bookmark id in a seprate table.
any specific unit test needed?
Why we need this?
for create a sync functionality we need to have 3 things
created_atmodifieded_atanddeleted_atthe last one added in this PR. as
deleted_atuse case is just for sync than keep that in separate table make things cleaner.after merge #894 #896 and #903 i can finally send PR for add sync functionality to Shiori (some part of code is ready in local system). so user can sync their apps with Shiori server.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.