photoprism/scripts/sql/reset-mariadb.sql
Michael Mayer 2186b923c9 Merge remote-tracking branch 'origin/develop' into feature/oidc-v2
# Conflicts:
#	docker-compose.mariadb.yml
#	docker-compose.yml
#	frontend/src/component/navigation.vue
#	frontend/src/pages/albums.vue
#	frontend/tests/acceptance/settings/general.js
#	go.mod
#	go.sum
#	internal/commands/users.go
#	internal/config/flags.go
#	internal/config/options.go
#	internal/entity/user.go
#	scripts/build.sh
#	scripts/docker/arch.sh
#	scripts/sql/init-test-databases.sql
2021-12-18 11:57:44 +01:00

9 lines
301 B
SQL
Executable file

DROP DATABASE IF EXISTS photoprism;
CREATE DATABASE IF NOT EXISTS photoprism;
DROP DATABASE IF EXISTS acceptance;
CREATE DATABASE IF NOT EXISTS acceptance;
CREATE USER IF NOT EXISTS acceptance@'%' IDENTIFIED BY 'acceptance';
GRANT ALL PRIVILEGES ON acceptance.* TO acceptance@'%';
FLUSH PRIVILEGES;