You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
235 B
SQL

ALTER TABLE `charlog`
DROP PRIMARY KEY, -- comment if primary key has not been created yet
ADD COLUMN `id` bigint(20) unsigned NOT NULL auto_increment first,
ADD PRIMARY KEY (`id`),
ADD KEY `account_id` (`account_id`);