db.json 1002 B

123456789101112131415161718192021222324252627282930313233
  1. [
  2. {
  3. "version": 5,
  4. "sql": [
  5. "ALTER TABLE {PREFIX}plugin_wirerelay ADD COLUMN reverse INT DEFAULT '0';"
  6. ]
  7. },
  8. {
  9. "version": 4,
  10. "sql": [
  11. "ALTER TABLE {PREFIX}plugin_room ADD COLUMN state INT DEFAULT '0';"
  12. ]
  13. },
  14. {
  15. "version": 3,
  16. "sql": [
  17. "ALTER TABLE {PREFIX}plugin_ipcam_camera ADD COLUMN pattern TEXT;"
  18. ]
  19. },
  20. {
  21. "version": 2,
  22. "sql": [
  23. "CREATE TABLE `{PREFIX}device` (`id` INTEGER NOT NULL PRIMARY KEY NOT NULL,`label` VARCHAR(255) NOT NULL,`icon` VARCHAR(255) NOT NULL,`display` longtext NOT NULL,`state` TEXT NOT NULL,`uid` TEXT NOT NULL,`values` longtext NOT NULL,`location` TEXT NOT NULL,`plugin` VARCHAR(255) NOT NULL,`actions` longtext NOT NULL,`type` TEXT NOT NULL);"
  24. ]
  25. },
  26. {
  27. "version": 1,
  28. "sql": [
  29. "ALTER TABLE {PREFIX}plugin_radioRelay ADD COLUMN state INT(11);"
  30. ]
  31. }
  32. ]