mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-23 05:36:12 +00:00
fix: broken apps in self hosted (#2920)
This commit is contained in:
@@ -75,6 +75,7 @@ const AVAILABLE_MIGRATIONS: [number, string[]][] = [
|
||||
[40, ['0044_dev-center-godmode.sql']],
|
||||
[41, ['0045_user_oidc_providers.sql']],
|
||||
[42, ['0046_is-private-apps.sql']],
|
||||
[43, ['0047_app-url-updates.sql']],
|
||||
];
|
||||
|
||||
export class SqliteDatabaseClient extends AbstractDatabaseClient {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
-- Copyright (C) 2024-present Puter Technologies Inc.
|
||||
--
|
||||
-- Drop the viewer app (broken) and re-point camera/recorder/editor at
|
||||
-- working third-party URLs. Mirrors SQLite migration 0047.
|
||||
--
|
||||
-- Idempotent: DELETE/UPDATE are no-ops if the rows are already in the
|
||||
-- target state, so re-running the migration directory is safe.
|
||||
|
||||
DELETE FROM `apps` WHERE `uid` = 'app-7870be61-8dff-4a99-af64-e9ae6811e367';
|
||||
|
||||
UPDATE `apps` SET `index_url` = 'https://online-camera.com' WHERE `uid` = 'app-5584fbf7-ed69-41fc-99cd-85da21b1ef51';
|
||||
UPDATE `apps` SET `index_url` = 'https://voice-recorder.com' WHERE `uid` = 'app-7bdca1a4-6373-4c98-ad97-03ff2d608ca1';
|
||||
UPDATE `apps` SET `index_url` = 'https://online-notepad.com' WHERE `uid` = 'app-838dfbc4-bf8b-48c2-b47b-c4adc77fab58';
|
||||
@@ -0,0 +1,25 @@
|
||||
-- Copyright (C) 2024-present Puter Technologies Inc.
|
||||
--
|
||||
-- This file is part of Puter.
|
||||
--
|
||||
-- Puter is free software: you can redistribute it and/or modify
|
||||
-- it under the terms of the GNU Affero General Public License as published
|
||||
-- by the Free Software Foundation, either version 3 of the License, or
|
||||
-- (at your option) any later version.
|
||||
--
|
||||
-- This program is distributed in the hope that it will be useful,
|
||||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
-- GNU Affero General Public License for more details.
|
||||
--
|
||||
-- You should have received a copy of the GNU Affero General Public License
|
||||
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
-- Drop the viewer app (broken) and re-point camera/recorder/editor at
|
||||
-- working third-party URLs.
|
||||
|
||||
DELETE FROM `apps` WHERE `uid` = 'app-7870be61-8dff-4a99-af64-e9ae6811e367';
|
||||
|
||||
UPDATE `apps` SET `index_url` = 'https://online-camera.com' WHERE `uid` = 'app-5584fbf7-ed69-41fc-99cd-85da21b1ef51';
|
||||
UPDATE `apps` SET `index_url` = 'https://voice-recorder.com' WHERE `uid` = 'app-7bdca1a4-6373-4c98-ad97-03ff2d608ca1';
|
||||
UPDATE `apps` SET `index_url` = 'https://online-notepad.com' WHERE `uid` = 'app-838dfbc4-bf8b-48c2-b47b-c4adc77fab58';
|
||||
Reference in New Issue
Block a user