diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..145fe41 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "ZXDB"] + path = ZXDB + url = https://github.com/zxdb/ZXDB diff --git a/ZXDB b/ZXDB new file mode 160000 index 0000000..3784c91 --- /dev/null +++ b/ZXDB @@ -0,0 +1 @@ +Subproject commit 3784c91bddfcb09117454ba045ea142eb05a4f0a diff --git a/bin/import_mysql.sh b/bin/import_mysql.sh new file mode 100644 index 0000000..351df40 --- /dev/null +++ b/bin/import_mysql.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +mysql -uroot -p -hquinn < ZXDB/ZXDB_mysql.sql +{ 1 ↵ git:‹feat/zxdb ✗› v22.21.1 + echo "SET @OLD_SQL_MODE := @@SESSION.sql_mode;" + echo "SET SESSION sql_mode := REPLACE(@@SESSION.sql_mode, 'ONLY_FULL_GROUP_BY', '');" + cat ZXDB/scripts/ZXDB_help_search.sql + echo "SET SESSION sql_mode := @OLD_SQL_MODE;" + echo "CREATE ROLE 'zxdb_readonly';" + echo "GRANT SELECT, SHOW VIEW ON `zxdb`.* TO 'zxdb_readonly';" +} | mysql -uroot -p -hquinn zxdb + mysqldump --no-data -hquinn -uroot -p zxdb > ZXDB/ZXDB_mysql_STRUCTURE_ONLY.sql diff --git a/example.env b/example.env new file mode 100644 index 0000000..a6c8561 --- /dev/null +++ b/example.env @@ -0,0 +1 @@ +ZXDB_URL=mysql://username:password@hostname:3306/zxdb_imported_db diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6fba06b..df48959 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -5,7 +5,7 @@ import NavbarClient from "@/components/Navbar"; export const metadata: Metadata = { title: "Spectrum Next Explorer", - description: "A platform for exploring the Spectrum Next hardware", + description: "A platform for exploring the Spectrum Next ecosystem", robots: { index: true, follow: true }, formatDetection: { email: false, address: false, telephone: false }, };