Add the database data
This commit is contained in:
parent
e6d6427ddc
commit
b3c2ff8de0
3 changed files with 37 additions and 0 deletions
2
db/dockerfile
Normal file
2
db/dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
from mysql:8
|
||||
add init.sql /docker-entrypoint-initdb.d
|
||||
9
db/init.sql
Normal file
9
db/init.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
create database if not exists tqna;
|
||||
|
||||
create table if not exists tqna.questions (
|
||||
`__id` integer not null auto_increment primary key,
|
||||
`channel` text,
|
||||
`asker` text,
|
||||
`question` text,
|
||||
`answered` boolean
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue