From 04870774736a511e19fd8add33b240f0f8069ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=A4del?= Date: Mon, 25 Feb 2019 16:48:11 +0100 Subject: [PATCH] Add auto-increment flag and primary key to station_profile table --- sql/tables/station_profile.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sql/tables/station_profile.sql b/sql/tables/station_profile.sql index 6688a61e..c77c2706 100644 --- a/sql/tables/station_profile.sql +++ b/sql/tables/station_profile.sql @@ -11,4 +11,8 @@ CREATE TABLE `station_profile` ( `station_cnty` varchar(200) DEFAULT NULL, `station_cq` int(5) DEFAULT NULL, `station_itu` int(5) DEFAULT NULL -) ENGINE=InnoDB DEFAULT CHARSET=latin1; \ No newline at end of file +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +ALTER TABLE `station_profile` +MODIFY COLUMN `station_id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT FIRST , +ADD PRIMARY KEY (`station_id`);