14 lines
565 B
SQL
14 lines
565 B
SQL
|
|
/*
|
||
|
|
Warnings:
|
||
|
|
|
||
|
|
- The primary key for the `devices` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||
|
|
- You are about to drop the column `device_id` on the `devices` table. All the data in the column will be lost.
|
||
|
|
- Added the required column `uuid` to the `devices` table without a default value. This is not possible if the table is not empty.
|
||
|
|
|
||
|
|
*/
|
||
|
|
-- AlterTable
|
||
|
|
ALTER TABLE `devices` DROP PRIMARY KEY,
|
||
|
|
DROP COLUMN `device_id`,
|
||
|
|
ADD COLUMN `uuid` VARCHAR(255) NOT NULL,
|
||
|
|
ADD PRIMARY KEY (`uuid`);
|