This commit is contained in:
2025-03-05 09:38:25 -07:00
parent b453739630
commit 8d244e586d
5 changed files with 38 additions and 8 deletions
+7
View File
@@ -0,0 +1,7 @@
create_db() {
mariadb -u root -p -e "CREATE DATABASE vintagecodingdotnet;"
mariadb -u root -p -e "USE vintagecodingdotnet; CREATE TABLE articles (article_id INT PRIMARY KEY AUTO_INCREMENT, article_name VARCHAR(255) NOT NULL);"
mariadb -u root -p -e "USE vintagecodingdotnet; INSERT INTO articles (article_name) VALUES ('test'), ('another test'), ('a third test');"
}
create_db