Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1494)

Unified Diff: go/database/setup_test_db.sql

Issue 813443002: Overhaul database package (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: go/database/setup_test_db.sql
diff --git a/go/database/setup_test_db.sql b/go/database/setup_test_db.sql
new file mode 100644
index 0000000000000000000000000000000000000000..a4ad299dcea85b289d7ab9220c445e3062e59c3e
--- /dev/null
+++ b/go/database/setup_test_db.sql
@@ -0,0 +1,16 @@
+# SQL for setting up the test database and user.
+CREATE DATABASE IF NOT EXISTS sk_testing;
+GRANT ALL ON sk_testing.* TO 'test_root'@'localhost';
+GRANT SELECT,INSERT,UPDATE,DELETE ON sk_testing.* TO 'test_rw'@'localhost';
+
+# SkiaPerf database.
+CREATE DATABASE IF NOT EXISTS skia;
+GRANT SELECT,INSERT,UPDATE,DELETE ON skia.* TO 'readwrite'@'localhost';
+
+# SkiaGold database.
+CREATE DATABASE IF NOT EXISTS skiacorrectness;
+GRANT SELECT,INSERT,UPDATE,DELETE ON skiacorrectness.* TO 'readwrite'@'localhost';
+
+# Buildbot database.
+CREATE DATABASE IF NOT EXISTS buildbot;
+GRANT SELECT,INSERT,UPDATE,DELETE ON buildbot.* TO 'readwrite'@'localhost';

Powered by Google App Engine
This is Rietveld 408576698