I have a table where the primary key is sale_id, payment_type
mysql> describe phppos_sales_payments;
+----------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------------+---------------+------+-----+---------+-------+
| sale_id | int(10) | NO | PRI | NULL | |
| payment_type | varchar(255) | NO | PRI | NULL | |
| payment_amount | decimal(15,2) | NO | | NULL | |
+----------------+---------------+------+-----+---------+-------+
I want to add a new field id
that is an auto increment. The reason for this is I want to track payments of the same type individually. Is it possible to do this without losing data?