diff options
author | tom barrett <spalf0@gmail.com> | 2019-03-28 03:33:14 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-03-28 07:24:51 -0500 |
commit | f8c446ce74329fc5844e0fc1fd82e618242196f4 (patch) | |
tree | 02319b823da4888c6d4e2faa9f482be11caad353 /migrations/1_create_masses | |
parent | ca5ee0b32b616fb8fa5e7e44c74acecefab719c3 (diff) |
migrate and revert executable, query insert and delete test
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 +) |