6 lines
346 B
SQL
6 lines
346 B
SQL
ALTER TABLE `vn`.`routesMonitor`
|
|
ADD IF NOT EXISTS editorFk INT UNSIGNED NULL,
|
|
ADD CONSTRAINT routesMonitor_fk_editor FOREIGN KEY IF NOT EXISTS (editorFk) REFERENCES account.`user`(id);
|
|
ALTER TABLE vn.routeLog
|
|
MODIFY COLUMN changedModel enum('Route', 'RoutesMonitor') CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Route' NOT NULL;
|