mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: upgrade version 0.13.1
(#1754)
This commit is contained in:
@ -3,7 +3,6 @@ ALTER TABLE
|
||||
ADD
|
||||
COLUMN public_id TEXT NOT NULL DEFAULT '';
|
||||
|
||||
-- TODO(steven): remove this in next release.
|
||||
CREATE UNIQUE INDEX resource_id_public_id_unique_index ON resource (id, public_id);
|
||||
|
||||
UPDATE
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/usememos/memos/common"
|
||||
)
|
||||
@ -90,6 +91,10 @@ func (s *Store) CreateMemo(ctx context.Context, create *MemoMessage) (*MemoMessa
|
||||
}
|
||||
defer tx.Rollback()
|
||||
|
||||
if create.CreatedTs == 0 {
|
||||
create.CreatedTs = time.Now().Unix()
|
||||
}
|
||||
|
||||
query := `
|
||||
INSERT INTO memo (
|
||||
creator_id,
|
||||
|
Reference in New Issue
Block a user