summaryrefslogtreecommitdiffstats
path: root/migrations/20220906164354_add-models-table.sql
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-21 13:54:25 +0000
committerSanto Cariotti <santo@dcariotti.me>2022-09-21 13:54:25 +0000
commita3275b45ef2db23b10d8f430ec17886d89768389 (patch)
tree799a8f671c355c39417358b9d73c58510911c146 /migrations/20220906164354_add-models-table.sql
parent5d21d188f82774a814b8ace48cd833958b92a176 (diff)
Change field type for models
Diffstat (limited to 'migrations/20220906164354_add-models-table.sql')
-rw-r--r--migrations/20220906164354_add-models-table.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/migrations/20220906164354_add-models-table.sql b/migrations/20220906164354_add-models-table.sql
index 84425ba..eadd247 100644
--- a/migrations/20220906164354_add-models-table.sql
+++ b/migrations/20220906164354_add-models-table.sql
@@ -2,9 +2,9 @@ CREATE TABLE models (
id SERIAL PRIMARY KEY,
name VARCHAR NOT NULL,
description TEXT,
- duration INTEGER NOT NULL,
- height INTEGER NOT NULL,
- weight INTEGER NOT NULL,
+ duration FLOAT NOT NULL,
+ height FLOAT NOT NULL,
+ weight FLOAT NOT NULL,
printer VARCHAR,
material VARCHAR,
author_id INTEGER REFERENCES users(id) NOT NULL,