diff options
Diffstat (limited to 'migrations/1_create_masses')
-rw-r--r-- | migrations/1_create_masses/down.sql | 2 | ||||
-rw-r--r-- | migrations/1_create_masses/up.sql | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/migrations/1_create_masses/down.sql b/migrations/1_create_masses/down.sql new file mode 100644 index 0000000..819bb40 --- /dev/null +++ b/migrations/1_create_masses/down.sql @@ -0,0 +1,2 @@ +-- This file should undo anything in `up.sql` +DROP TABLE masses diff --git a/migrations/1_create_masses/up.sql b/migrations/1_create_masses/up.sql new file mode 100644 index 0000000..c0b6890 --- /dev/null +++ b/migrations/1_create_masses/up.sql @@ -0,0 +1,12 @@ +-- Your SQL goes here +CREATE TABLE masses ( + id SERIAL PRIMARY KEY, + name VARCHAR NOT NULL, + pos_x FLOAT NOT NULL, + pos_y DOUBLE PRECISION NOT NULL, + pos_z DOUBLE PRECISION NOT NULL, + vel_x DOUBLE PRECISION NOT NULL, + vel_y DOUBLE PRECISION NOT NULL, + vel_z DOUBLE PRECISION NOT NULL, + type_data JSONB NOT NULL +) |