Upgrade database schema to version 2 and remove unused meta_* columns
- Increment `SCHEMA_VERSION` to 2 in `schema.ts`. - Remove all `meta_*` columns from database tables. - Add migration logic to handle schema upgrades and clean up unused columns. - Modify database models and repository methods to exclude `meta_*` fields for stricter typings and improved structure. - Refactor and optimize query statements across repositories to align with new schema changes.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import type {Context, Dispatch, JSX, ReactNode, SetStateAction} from 'react';
|
||||
import {createContext, useCallback, useState} from 'react';
|
||||
import AlertStack from '@/components/AlertStack';
|
||||
import {cleanErrorMessage} from '@/lib/errors';
|
||||
|
||||
export type AlertType = 'success' | 'error' | 'info' | 'warning';
|
||||
|
||||
@@ -53,7 +54,7 @@ export function AlertProvider({children}: AlertProviderProps): JSX.Element {
|
||||
}, [addAlert]);
|
||||
|
||||
const errorMessage: (message: string) => void = useCallback((message: string): void => {
|
||||
addAlert('error', message);
|
||||
addAlert('error', cleanErrorMessage(message));
|
||||
}, [addAlert]);
|
||||
|
||||
const infoMessage: (message: string) => void = useCallback((message: string): void => {
|
||||
|
||||
Reference in New Issue
Block a user