👷✅🐛 Import table structure in TravisCI.
Fix a syntax error in schema_postres.sql which was discovered while working on this.
This commit is contained in:
committed by
Mario Vavti
parent
b237425c94
commit
b7df4de4b7
@@ -36,4 +36,13 @@ mysql -e "SHOW VARIABLES LIKE 'character_set%';"
|
||||
mysql -e "SELECT @@sql_mode;"
|
||||
|
||||
# Create Hubzilla database
|
||||
mysql -e "CREATE DATABASE IF NOT EXISTS hubzilla;" -uroot;
|
||||
mysql -u root -e "CREATE DATABASE IF NOT EXISTS hubzilla;";
|
||||
mysql -u root -e "CREATE USER 'hubzilla'@'localhost' IDENTIFIED BY 'hubzilla';"
|
||||
mysql -u root -e "GRANT ALL ON hubzilla.* TO 'hubzilla'@'localhost';"
|
||||
|
||||
# Import table structure
|
||||
mysql -u root hubzilla < ./install/schema_mysql.sql
|
||||
|
||||
# Show databases and tables
|
||||
mysql -u root -e "SHOW DATABASES;"
|
||||
mysql -u root -e "USE hubzilla; SHOW TABLES;"
|
||||
|
||||
Reference in New Issue
Block a user