mirror of
https://github.com/usememos/memos.git
synced 2025-10-08 13:28:29 +08:00
chore: fix user string
This commit is contained in:
parent
b20e0097cf
commit
2d9c5d16e1
5 changed files with 5 additions and 5 deletions
|
@ -89,7 +89,7 @@ func vacuumMemoOrganizer(ctx context.Context, tx *sql.Tx) error {
|
|||
}
|
||||
|
||||
// Build the subquery for user_id
|
||||
subQueryUser, subArgsUser, err := squirrel.Select("id").From("\"user\"").PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
subQueryUser, subArgsUser, err := squirrel.Select("id").From(`"user"`).PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -185,7 +185,7 @@ func (d *DB) DeleteResource(ctx context.Context, delete *store.DeleteResource) e
|
|||
|
||||
func vacuumResource(ctx context.Context, tx *sql.Tx) error {
|
||||
// First, build the subquery
|
||||
subQuery, subArgs, err := squirrel.Select("id").From("user").PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
subQuery, subArgs, err := squirrel.Select("id").From(`"user"`).PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
TRUNCATE TABLE memo_organizer;
|
||||
TRUNCATE TABLE resource;
|
||||
TRUNCATE TABLE memo;
|
||||
TRUNCATE TABLE user;
|
||||
TRUNCATE TABLE "user";
|
||||
|
|
|
@ -83,7 +83,7 @@ func (d *DB) DeleteTag(ctx context.Context, delete *store.DeleteTag) error {
|
|||
|
||||
func vacuumTag(ctx context.Context, tx *sql.Tx) error {
|
||||
// First, build the subquery for creator_id
|
||||
subQuery, subArgs, err := squirrel.Select("id").From("\"user\"").PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
subQuery, subArgs, err := squirrel.Select("id").From(`"user"`).PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ func (d *DB) ListUserSettings(ctx context.Context, find *store.FindUserSetting)
|
|||
|
||||
func vacuumUserSetting(ctx context.Context, tx *sql.Tx) error {
|
||||
// First, build the subquery
|
||||
subQuery, subArgs, err := squirrel.Select("id").From("\"user\"").PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
subQuery, subArgs, err := squirrel.Select("id").From(`"user"`).PlaceholderFormat(squirrel.Dollar).ToSql()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue