mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
fix issue with new useNotify() hook and run now_view.sql in anon database to show statistics there too
This commit is contained in:
@@ -27,7 +27,7 @@ export const WriteButton = <T,>({
|
||||
const { editData, setEditData, mode, setMode, validator, fieldsWithErrors, setFieldsWithErrors } =
|
||||
useDetailContext<T>()
|
||||
const [loading, setLoading] = useState(false)
|
||||
const notify = useNotify()
|
||||
const { notify } = useNotify()
|
||||
const [getSpeciesData] = useLazyGetAllSpeciesQuery()
|
||||
const [getSynonyms] = useLazyGetAllSynonymsQuery()
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ SOURCE /docker-entrypoint-initdb.d/sqlfiles/now_test.sql
|
||||
USE now_log_test
|
||||
SOURCE /docker-entrypoint-initdb.d/sqlfiles/now_log_test.sql
|
||||
USE now_test
|
||||
SOURCE /docker-entrypoint-initdb.d/sqlfiles/now_view.sql
|
||||
|
||||
CREATE USER 'now_test'@'localhost' IDENTIFIED BY 'mariadb_password';
|
||||
GRANT SELECT, INSERT, UPDATE ON `now_log_test`.* TO 'now_test'@'%';
|
||||
|
||||
Reference in New Issue
Block a user