mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: fix user string
This commit is contained in:
@ -89,7 +89,7 @@ func vacuumMemoOrganizer(ctx context.Context, tx *sql.Tx) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Build the subquery for user_id
|
// 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 {
|
if err != nil {
|
||||||
return err
|
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 {
|
func vacuumResource(ctx context.Context, tx *sql.Tx) error {
|
||||||
// First, build the subquery
|
// 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
TRUNCATE TABLE memo_organizer;
|
TRUNCATE TABLE memo_organizer;
|
||||||
TRUNCATE TABLE resource;
|
TRUNCATE TABLE resource;
|
||||||
TRUNCATE TABLE memo;
|
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 {
|
func vacuumTag(ctx context.Context, tx *sql.Tx) error {
|
||||||
// First, build the subquery for creator_id
|
// 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 {
|
if err != nil {
|
||||||
return err
|
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 {
|
func vacuumUserSetting(ctx context.Context, tx *sql.Tx) error {
|
||||||
// First, build the subquery
|
// 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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user