mirror of https://github.com/usememos/memos
chore: update migration history store
parent
21ad6cc871
commit
695fb1e0ca
@ -0,0 +1,25 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
type MigrationHistory struct {
|
||||
Version string
|
||||
CreatedTs int64
|
||||
}
|
||||
|
||||
type UpsertMigrationHistory struct {
|
||||
Version string
|
||||
}
|
||||
|
||||
type FindMigrationHistory struct {
|
||||
}
|
||||
|
||||
func (s *Store) FindMigrationHistoryList(ctx context.Context, find *FindMigrationHistory) ([]*MigrationHistory, error) {
|
||||
return s.driver.FindMigrationHistoryList(ctx, find)
|
||||
}
|
||||
|
||||
func (s *Store) UpsertMigrationHistory(ctx context.Context, upsert *UpsertMigrationHistory) (*MigrationHistory, error) {
|
||||
return s.driver.UpsertMigrationHistory(ctx, upsert)
|
||||
}
|
Loading…
Reference in New Issue