@@ -22,7 +22,7 @@ func (this *Modules) RegisterAction_IndexDelete() *Action {
err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
// Process
- if _, err := tx.Exec(ctx, "DELETE FROM pages WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+ if _, err := tx.Exec(ctx, "DELETE FROM fave_pages WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
return err
}
return nil
@@ -561,7 +561,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
if _, err = tx.Exec(
wrap.R.Context(),
- `INSERT INTO fave_settings (name, value) VALUES ('database_version', '000000020');`,
+ `INSERT INTO fave_settings (name, value) VALUES ('database_version', '000000021');`,
); err != nil {
tx.Rollback()
wrap.MsgError(err.Error())