mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 06:35:24 +00:00
16 lines
575 B
SQL
16 lines
575 B
SQL
-- tunnels 0001: adopt_c2s_tunnel_presets
|
|
-- Generated by termix-plugin migrations. Review before committing.
|
|
|
|
CREATE TABLE IF NOT EXISTS `c2s_tunnel_presets` (
|
|
`id` int AUTO_INCREMENT PRIMARY KEY,
|
|
`user_id` varchar(255) NOT NULL,
|
|
`name` text NOT NULL,
|
|
`config` text NOT NULL,
|
|
`platform` text,
|
|
`computer_name` text,
|
|
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
|
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
|
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
|
|
);
|
|
RENAME TABLE `c2s_tunnel_presets` TO `p_tunnels_presets`;
|