- Admin
- #21
Where can I execute this code? I have just DBBrowser at the moment.Unfortunately sqlite does not support to drop column from a table, so the downgrade takes a few more steps:
SQL:begin transaction; alter table attached_clients rename to bak_clients; CREATE TABLE ATTACHED_CLIENTS (SYSTEM_ID TEXT COLLATE NOCASE NOT NULL PRIMARY KEY, LAST_HOSTNAME TEXT COLLATE NOCASE ) WITHOUT ROWID; insert into attached_clients (system_id, last_hostname) select system_id, last_hostname from bak_clients; update mediaportal_basis set version_minor = 0 where subschema_name = 'ClientManager'; drop table bak_clients; commit;
Please first take a backup of the datastore.s3db.