fix: 调整envdata的字段格式

This commit is contained in:
caoqianming 2024-02-28 17:20:49 +08:00
parent 4ddfbb266c
commit 33e661b1dc
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Migration(migrations.Migration):
sql=[( sql=[(
""" """
CREATE TABLE public.enp_envdata ( CREATE TABLE public.enp_envdata (
"time" timestamp NOT NULL, "time" timestamptz NOT NULL,
"equipment_id" text NOT NULL, "equipment_id" text NOT NULL,
"is_online" INT DEFAULT 1, "is_online" INT DEFAULT 1,
"running_state" INT DEFAULT 10, "running_state" INT DEFAULT 10,