36 lines
1.3 KiB
SQL
36 lines
1.3 KiB
SQL
-- ----------------------------
|
|
-- Table structure for trace_task
|
|
-- ----------------------------
|
|
ALTER TABLE "trace_task" RENAME TO "trace_task_old";
|
|
CREATE TABLE IF NOT EXISTS "trace_task" (
|
|
"id" integer NOT NULL,
|
|
"trace_id" text(16) NOT NULL,
|
|
"trace_type" text(2) NOT NULL,
|
|
"start_time" integer,
|
|
"end_time" integer,
|
|
"interfaces" text(255),
|
|
"imsi" text(16),
|
|
"msisdn" text(16),
|
|
"src_ip" text(128),
|
|
"dst_ip" text(128),
|
|
"create_by" text(50),
|
|
"create_time" integer,
|
|
"title" text(255),
|
|
"remark" text(500),
|
|
"ne_list" text(255) NOT NULL,
|
|
"notify_url" text(128) NOT NULL,
|
|
PRIMARY KEY ("id")
|
|
);
|
|
|
|
-- ----------------------------
|
|
-- Indexes structure for table trace_task
|
|
-- ----------------------------
|
|
|
|
|
|
-- ----------------------------
|
|
-- COLUMN for trace_task
|
|
-- ----------------------------
|
|
-- ALTER TABLE trace_task ADD COLUMN title text(255);
|
|
INSERT INTO "trace_task" ("id", "trace_id", "trace_type", "start_time", "end_time", "interfaces", "imsi", "msisdn", "src_ip", "dst_ip", "create_by", "create_time", "title", "remark", "ne_list", "notify_url") SELECT "id", "trace_id", "trace_type", "start_time", "end_time", "interfaces", "imsi", "msisdn", "src_ip", "dst_ip", "create_by", "create_time", "title", "remark", "ne_list", "notify_url" FROM "trace_task_old";
|
|
DROP TABLE IF EXISTS "trace_task_old";
|