mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-11-01 08:05:23 +00:00
feat: drop the 2.8 columns, moves and aliases kept for a downgrade
This commit is contained in:
1 parent
d3d8269cb7
commit
61f46d2517
196 files changed
+29909
-10511
No files matched your search
@@ -0,0 +1,28 @@
|
||||
ALTER TABLE `ssh_folders` DROP FOREIGN KEY `ssh_folders_credential_id_ssh_credentials_id_fk`;
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE `ssh_data` DROP COLUMN `terminal_config`;--> statement-breakpoint
|
||||
ALTER TABLE `ssh_data` DROP COLUMN `quick_actions`;--> statement-breakpoint
|
||||
ALTER TABLE `sessions` DROP COLUMN `oidc_sub`;--> statement-breakpoint
|
||||
ALTER TABLE `sessions` DROP COLUMN `oidc_sid`;--> statement-breakpoint
|
||||
ALTER TABLE `sessions` DROP COLUMN `sso_provider_id`;--> statement-breakpoint
|
||||
ALTER TABLE `ssh_folders` DROP COLUMN `credential_id`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `command_autocomplete`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `confirm_snippet_execution`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `custom_themes`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `terminal_defaults`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `terminal_macros`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `is_oidc`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `oidc_identifier`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `sso_provider_id`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `client_id`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `client_secret`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `issuer_url`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `authorization_url`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `token_url`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `identifier_path`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `name_path`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `scopes`;--> statement-breakpoint
|
||||
DELETE FROM `settings` WHERE `key` IN ('host_defaults', 'analytics_enabled', 'analytics_instance_id');--> statement-breakpoint
|
||||
UPDATE `ssh_data` SET `username` = REPLACE(`username`, '$oidc.preferred_username', '$external.username') WHERE `username` LIKE '%$oidc.preferred_username%';--> statement-breakpoint
|
||||
UPDATE `ssh_credentials` SET `username` = REPLACE(`username`, '$oidc.preferred_username', '$external.username') WHERE `username` LIKE '%$oidc.preferred_username%';--> statement-breakpoint
|
||||
UPDATE `host_defaults` SET `value` = REPLACE(`value`, '$oidc.preferred_username', '$external.username') WHERE `value` LIKE '%$oidc.preferred_username%';
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `sessions` ADD `external_session_ref` text;
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -463,6 +463,20 @@
|
||||
"when": 1790742086934,
|
||||
"tag": "0065_ambiguous_agent_zero",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 66,
|
||||
"version": "5",
|
||||
"when": 1791209297104,
|
||||
"tag": "0066_retire_2_8_columns",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 67,
|
||||
"version": "5",
|
||||
"when": 1791209311841,
|
||||
"tag": "0067_external_session_ref",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
ALTER TABLE "ssh_folders" DROP CONSTRAINT "ssh_folders_credential_id_ssh_credentials_id_fk";
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "ssh_data" DROP COLUMN "terminal_config";--> statement-breakpoint
|
||||
ALTER TABLE "ssh_data" DROP COLUMN "quick_actions";--> statement-breakpoint
|
||||
ALTER TABLE "sessions" DROP COLUMN "oidc_sub";--> statement-breakpoint
|
||||
ALTER TABLE "sessions" DROP COLUMN "oidc_sid";--> statement-breakpoint
|
||||
ALTER TABLE "sessions" DROP COLUMN "sso_provider_id";--> statement-breakpoint
|
||||
ALTER TABLE "ssh_folders" DROP COLUMN "credential_id";--> statement-breakpoint
|
||||
ALTER TABLE "user_preferences" DROP COLUMN "command_autocomplete";--> statement-breakpoint
|
||||
ALTER TABLE "user_preferences" DROP COLUMN "confirm_snippet_execution";--> statement-breakpoint
|
||||
ALTER TABLE "user_preferences" DROP COLUMN "custom_themes";--> statement-breakpoint
|
||||
ALTER TABLE "user_preferences" DROP COLUMN "terminal_defaults";--> statement-breakpoint
|
||||
ALTER TABLE "user_preferences" DROP COLUMN "terminal_macros";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "is_oidc";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "oidc_identifier";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "sso_provider_id";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "client_id";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "client_secret";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "issuer_url";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "authorization_url";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "token_url";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "identifier_path";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "name_path";--> statement-breakpoint
|
||||
ALTER TABLE "users" DROP COLUMN "scopes";--> statement-breakpoint
|
||||
DELETE FROM "settings" WHERE "key" IN ('host_defaults', 'analytics_enabled', 'analytics_instance_id');--> statement-breakpoint
|
||||
UPDATE "ssh_data" SET "username" = REPLACE("username", '$oidc.preferred_username', '$external.username') WHERE "username" LIKE '%$oidc.preferred_username%';--> statement-breakpoint
|
||||
UPDATE "ssh_credentials" SET "username" = REPLACE("username", '$oidc.preferred_username', '$external.username') WHERE "username" LIKE '%$oidc.preferred_username%';--> statement-breakpoint
|
||||
UPDATE "host_defaults" SET "value" = REPLACE("value", '$oidc.preferred_username', '$external.username') WHERE "value" LIKE '%$oidc.preferred_username%';
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE "sessions" ADD COLUMN "external_session_ref" text;
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -463,6 +463,20 @@
|
||||
"when": 1790742086298,
|
||||
"tag": "0065_regular_joystick",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 66,
|
||||
"version": "7",
|
||||
"when": 1791209295939,
|
||||
"tag": "0066_retire_2_8_columns",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 67,
|
||||
"version": "7",
|
||||
"when": 1791209310758,
|
||||
"tag": "0067_external_session_ref",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
||||
CREATE TABLE `__new_ssh_folders` (
|
||||
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||
`user_id` text NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`color` text,
|
||||
`icon` text,
|
||||
`sort_order` integer,
|
||||
`sync_id` text,
|
||||
`local_only` integer DEFAULT false NOT NULL,
|
||||
`created_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
`updated_at` text DEFAULT CURRENT_TIMESTAMP NOT NULL,
|
||||
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade
|
||||
);
|
||||
--> statement-breakpoint
|
||||
INSERT INTO `__new_ssh_folders`("id", "user_id", "name", "color", "icon", "sort_order", "sync_id", "local_only", "created_at", "updated_at") SELECT "id", "user_id", "name", "color", "icon", "sort_order", "sync_id", "local_only", "created_at", "updated_at" FROM `ssh_folders`;--> statement-breakpoint
|
||||
DROP TABLE `ssh_folders`;--> statement-breakpoint
|
||||
ALTER TABLE `__new_ssh_folders` RENAME TO `ssh_folders`;--> statement-breakpoint
|
||||
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
||||
CREATE UNIQUE INDEX `ssh_folders_sync_id_unique` ON `ssh_folders` (`sync_id`);--> statement-breakpoint
|
||||
CREATE INDEX `idx_ssh_folders_user_id` ON `ssh_folders` (`user_id`);--> statement-breakpoint
|
||||
ALTER TABLE `ssh_data` DROP COLUMN `terminal_config`;--> statement-breakpoint
|
||||
ALTER TABLE `ssh_data` DROP COLUMN `quick_actions`;--> statement-breakpoint
|
||||
ALTER TABLE `sessions` DROP COLUMN `oidc_sub`;--> statement-breakpoint
|
||||
ALTER TABLE `sessions` DROP COLUMN `oidc_sid`;--> statement-breakpoint
|
||||
ALTER TABLE `sessions` DROP COLUMN `sso_provider_id`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `command_autocomplete`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `confirm_snippet_execution`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `custom_themes`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `terminal_defaults`;--> statement-breakpoint
|
||||
ALTER TABLE `user_preferences` DROP COLUMN `terminal_macros`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `is_oidc`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `oidc_identifier`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `sso_provider_id`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `client_id`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `client_secret`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `issuer_url`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `authorization_url`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `token_url`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `identifier_path`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `name_path`;--> statement-breakpoint
|
||||
ALTER TABLE `users` DROP COLUMN `scopes`;--> statement-breakpoint
|
||||
DELETE FROM `settings` WHERE `key` IN ('host_defaults', 'analytics_enabled', 'analytics_instance_id');--> statement-breakpoint
|
||||
UPDATE `ssh_data` SET `username` = REPLACE(`username`, '$oidc.preferred_username', '$external.username') WHERE `username` LIKE '%$oidc.preferred_username%';--> statement-breakpoint
|
||||
UPDATE `ssh_credentials` SET `username` = REPLACE(`username`, '$oidc.preferred_username', '$external.username') WHERE `username` LIKE '%$oidc.preferred_username%';--> statement-breakpoint
|
||||
UPDATE `host_defaults` SET `value` = REPLACE(`value`, '$oidc.preferred_username', '$external.username') WHERE `value` LIKE '%$oidc.preferred_username%';
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE `sessions` ADD `external_session_ref` text;
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -428,6 +428,20 @@
|
||||
"when": 1790742085632,
|
||||
"tag": "0060_fine_cerise",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 61,
|
||||
"version": "6",
|
||||
"when": 1791209294736,
|
||||
"tag": "0061_retire_2_8_columns",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 62,
|
||||
"version": "6",
|
||||
"when": 1791209309626,
|
||||
"tag": "0062_external_session_ref",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user