Start with the analysis stuff
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS demos (
|
||||
steam_id TEXT NOT NULL,
|
||||
demo_id bigint NOT NULL,
|
||||
PRIMARY KEY(steam_id, demo_id)
|
||||
demo_id bigint NOT NULL PRIMARY KEY
|
||||
)
|
||||
|
||||
3
migrations/2024-09-11-200628_demo_info/down.sql
Normal file
3
migrations/2024-09-11-200628_demo_info/down.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
DROP TABLE processing_status;
|
||||
DROP TABLE demo_info
|
||||
10
migrations/2024-09-11-200628_demo_info/up.sql
Normal file
10
migrations/2024-09-11-200628_demo_info/up.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- Your SQL goes here
|
||||
CREATE TABLE IF NOT EXISTS processing_status (
|
||||
demo_id bigint PRIMARY KEY REFERENCES demos(demo_id),
|
||||
info int2 NOT NULL -- the processing_status of the basic demo info
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS demo_info (
|
||||
demo_id bigint PRIMARY KEY REFERENCES demos(demo_id),
|
||||
map TEXT NOT NULL
|
||||
)
|
||||
Reference in New Issue
Block a user