|
|
|
@ -0,0 +1,523 @@
|
|
|
|
|
[2024-03-07 11:39:22.193] INFO sqlite@v1.5.5/migrator.go:32 [63.3µs] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 11:39:22.206] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 11:39:22.206] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 11:39:22.206] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:39:22.206] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 11:39:22.207] INFO sqlite@v1.5.5/migrator.go:413 [508.6µs] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 11:39:22.207] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 11:39:22.208] INFO sqlite@v1.5.5/migrator.go:423 [1.0879ms] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 11:39:22.209] INFO sqlite@v1.5.5/migrator.go:423 [1.1032ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 11:39:22.211] INFO sqlite@v1.5.5/migrator.go:79 [71.1µs] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:39:22.211] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 11:39:22.211] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:1] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 11:39:22.212] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 11:39:22.212] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 11:39:22.213] INFO sqlite@v1.5.5/migrator.go:423 [1.1628ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 11:39:22.214] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 11:39:22.215] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 11:39:22.215] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 11:39:22.215] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:39:22.217] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 11:39:22.218] INFO sqlite@v1.5.5/migrator.go:413 [1.0859ms] [rows:1] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 11:39:22.218] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 11:39:22.219] INFO sqlite@v1.5.5/migrator.go:423 [1.0538ms] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 11:39:22.220] INFO sqlite@v1.5.5/migrator.go:423 [1.0028ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 11:39:22.221] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 11:39:22.221] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 11:39:22.222] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 11:39:22.222] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:39:22.222] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 11:39:22.224] INFO sqlite@v1.5.5/migrator.go:413 [1.0128ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 11:39:22.225] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 11:39:22.225] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 11:39:22.226] INFO sqlite@v1.5.5/migrator.go:423 [1.1012ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 11:39:22.228] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:39:22.228] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 11:39:22.229] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 11:39:22.230] INFO sqlite@v1.5.5/migrator.go:423 [1.0388ms] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 11:39:22.230] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 11:39:22.230] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 11:39:22.232] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 11:39:22.232] INFO script/db_migrate.go:49 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 11:39:41.779] INFO repository/user.go:32 [0s] [rows:1] SELECT * FROM `t_user` WHERE account = "Admin" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 11:39:55.538] INFO repository/user.go:21 [112.5µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 11:46:11.901] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 11:46:11.915] INFO migrator/migrator.go:73 [1.0033ms] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 11:46:11.915] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 11:46:11.915] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:46:11.915] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 11:46:11.917] INFO sqlite@v1.5.5/migrator.go:413 [999.9µs] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 11:46:11.917] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 11:46:11.917] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 11:46:11.919] INFO sqlite@v1.5.5/migrator.go:423 [503.3µs] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 11:46:11.921] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:46:11.921] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 11:46:11.922] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:1] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 11:46:11.922] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 11:46:11.923] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 11:46:11.924] INFO sqlite@v1.5.5/migrator.go:423 [1.0165ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 11:46:11.926] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 11:46:11.926] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 11:46:11.926] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 11:46:11.927] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:46:11.927] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 11:46:11.928] INFO sqlite@v1.5.5/migrator.go:413 [1.0461ms] [rows:1] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 11:46:11.928] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 11:46:11.929] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 11:46:11.930] INFO sqlite@v1.5.5/migrator.go:423 [999.9µs] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 11:46:11.932] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 11:46:11.932] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 11:46:11.933] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 11:46:11.933] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:46:11.933] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 11:46:11.935] INFO sqlite@v1.5.5/migrator.go:413 [504µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 11:46:11.935] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 11:46:11.936] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 11:46:11.937] INFO sqlite@v1.5.5/migrator.go:423 [1.0018ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 11:46:11.939] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 11:46:11.939] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 11:46:11.940] INFO sqlite@v1.5.5/migrator.go:413 [959.7µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 11:46:11.940] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 11:46:11.941] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 11:46:11.942] INFO sqlite@v1.5.5/migrator.go:423 [1.0015ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 11:46:11.944] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 11:46:11.945] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 12:01:13.182] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 12:01:13.194] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 12:01:13.195] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 12:01:13.195] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 12:01:13.195] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 12:01:13.197] INFO sqlite@v1.5.5/migrator.go:413 [1.159ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 12:01:13.197] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 12:01:13.197] INFO sqlite@v1.5.5/migrator.go:423 [579.4µs] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 12:01:13.198] INFO sqlite@v1.5.5/migrator.go:423 [1.1276ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 12:01:13.201] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 12:01:13.201] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 12:01:13.202] INFO sqlite@v1.5.5/migrator.go:413 [1.0055ms] [rows:1] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 12:01:13.203] INFO sqlite@v1.5.5/migrator.go:423 [504.2µs] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 12:01:13.203] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 12:01:13.204] INFO sqlite@v1.5.5/migrator.go:423 [1.0677ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 12:01:13.205] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 12:01:13.205] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 12:01:13.206] INFO sqlite@v1.5.5/migrator.go:125 [59.7µs] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 12:01:13.206] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 12:01:13.206] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 12:01:13.207] INFO sqlite@v1.5.5/migrator.go:413 [573.8µs] [rows:1] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 12:01:13.207] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 12:01:13.208] INFO sqlite@v1.5.5/migrator.go:423 [504µs] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 12:01:13.208] INFO sqlite@v1.5.5/migrator.go:423 [521µs] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 12:01:13.210] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 12:01:13.210] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 12:01:13.210] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 12:01:13.211] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 12:01:13.211] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 12:01:13.212] INFO sqlite@v1.5.5/migrator.go:413 [540.9µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 12:01:13.212] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 12:01:13.213] INFO sqlite@v1.5.5/migrator.go:423 [616.1µs] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 12:01:13.214] INFO sqlite@v1.5.5/migrator.go:423 [1.1245ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 12:01:13.217] INFO sqlite@v1.5.5/migrator.go:79 [525.6µs] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 12:01:13.217] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 12:01:13.218] INFO sqlite@v1.5.5/migrator.go:413 [520.1µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 12:01:13.218] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 12:01:13.218] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 12:01:13.219] INFO sqlite@v1.5.5/migrator.go:423 [553.6µs] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 12:01:13.222] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 12:01:13.222] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 12:01:29.181] INFO repository/user.go:47 [504.7µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 12:02:23.977] INFO repository/user.go:47 [211.3µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 12:02:23.977] ERROR repository/user.go:58 record not found -> SELECT * FROM `t_user` WHERE account = "123123123" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:06:09.134] INFO repository/user.go:47 [438µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:06:09.134] ERROR repository/user.go:58 record not found -> SELECT * FROM `t_user` WHERE account = "123123123" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:06:32.385] INFO repository/user.go:47 [911.4µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:06:32.386] ERROR repository/user.go:58 record not found -> SELECT * FROM `t_user` WHERE account = "123123123" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:08:38.344] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:08:38.356] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:08:38.357] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:08:38.357] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:08:38.357] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:08:38.358] INFO sqlite@v1.5.5/migrator.go:413 [566.5µs] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:08:38.358] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:08:38.359] INFO sqlite@v1.5.5/migrator.go:423 [554µs] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:08:38.360] INFO sqlite@v1.5.5/migrator.go:423 [1.1329ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:08:38.361] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:08:38.361] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:08:38.363] INFO sqlite@v1.5.5/migrator.go:413 [586.4µs] [rows:1] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:08:38.363] INFO sqlite@v1.5.5/migrator.go:423 [559.9µs] [rows:1] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:08:38.363] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:1] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:08:38.365] INFO sqlite@v1.5.5/migrator.go:423 [1.1457ms] [rows:1] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:08:38.367] INFO sqlite@v1.5.5/migrator.go:32 [56.5µs] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:08:38.367] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:08:38.367] INFO sqlite@v1.5.5/migrator.go:125 [75.3µs] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:08:38.367] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:08:38.367] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:08:38.369] INFO sqlite@v1.5.5/migrator.go:413 [1.1745ms] [rows:1] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:08:38.369] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:08:38.370] INFO sqlite@v1.5.5/migrator.go:423 [582.9µs] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:08:38.371] INFO sqlite@v1.5.5/migrator.go:423 [1.092ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:08:38.372] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:08:38.372] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:08:38.373] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:08:38.373] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:08:38.373] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:08:38.375] INFO sqlite@v1.5.5/migrator.go:413 [950µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:08:38.375] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:08:38.375] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:08:38.376] INFO sqlite@v1.5.5/migrator.go:423 [1.6338ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:08:38.378] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:08:38.378] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:08:38.379] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:08:38.380] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:08:38.380] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:08:38.381] INFO sqlite@v1.5.5/migrator.go:423 [1.0888ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:08:38.383] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:08:38.383] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:08:40.261] INFO repository/user.go:47 [778.7µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:08:40.261] INFO api/user.go:126 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE account = "123123123"
|
|
|
|
|
[2024-03-07 14:08:41.171] INFO repository/user.go:37 [3.4901ms] [rows:1] INSERT INTO `t_user` (`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) VALUES ("2ac392865c644d1daaeb6ddd6b516e97","2024-03-07 14:08:41","2024-03-07 14:08:41","http://wireguard-dashboard.oss-cn-chengdu.aliyuncs.com/wg/25fd738f-007d-4415-aac6-cfa008f84160.png","张三","123123123","","hahahaha",1,1)
|
|
|
|
|
[2024-03-07 14:08:51.686] INFO repository/user.go:47 [950.7µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:08:51.687] INFO api/user.go:126 [506.3µs] [rows:1] SELECT count(*) FROM `t_user` WHERE account = "123123123"
|
|
|
|
|
[2024-03-07 14:09:56.542] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:09:56.555] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:09:56.555] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:09:56.556] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:09:56.556] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:09:56.557] INFO sqlite@v1.5.5/migrator.go:413 [612µs] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:09:56.558] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:09:56.558] INFO sqlite@v1.5.5/migrator.go:423 [530.4µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:09:56.559] INFO sqlite@v1.5.5/migrator.go:423 [1.2126ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:09:56.561] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:09:56.561] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:09:56.562] INFO sqlite@v1.5.5/migrator.go:413 [576.8µs] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:09:56.562] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:09:56.563] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:09:56.564] INFO sqlite@v1.5.5/migrator.go:423 [1.0557ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:09:56.567] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:09:56.567] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:09:56.567] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:09:56.567] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:09:56.567] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:09:56.568] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:09:56.568] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:09:56.569] INFO sqlite@v1.5.5/migrator.go:423 [56µs] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:09:56.571] INFO sqlite@v1.5.5/migrator.go:423 [2.2125ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:09:56.573] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:09:56.573] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:09:56.574] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:09:56.574] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:09:56.574] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:09:56.575] INFO sqlite@v1.5.5/migrator.go:413 [1.177ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:09:56.575] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:09:56.576] INFO sqlite@v1.5.5/migrator.go:423 [1.0873ms] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:09:56.577] INFO sqlite@v1.5.5/migrator.go:423 [1.091ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:09:56.579] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:09:56.579] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:09:56.580] INFO sqlite@v1.5.5/migrator.go:413 [1.1019ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:09:56.580] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:09:56.581] INFO sqlite@v1.5.5/migrator.go:423 [1.0567ms] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:09:56.582] INFO sqlite@v1.5.5/migrator.go:423 [1.0689ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:09:56.584] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:09:56.585] INFO script/db_migrate.go:50 [174.4µs] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:11:37.702] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:11:37.714] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:11:37.715] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:11:37.715] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:11:37.715] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:11:37.717] INFO sqlite@v1.5.5/migrator.go:413 [1.1811ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:11:37.717] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:11:37.717] INFO sqlite@v1.5.5/migrator.go:423 [564.7µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:11:37.719] INFO sqlite@v1.5.5/migrator.go:423 [1.1244ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:11:37.720] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:11:37.720] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:11:37.721] INFO sqlite@v1.5.5/migrator.go:413 [1.0261ms] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:11:37.721] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:11:37.721] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:11:37.723] INFO sqlite@v1.5.5/migrator.go:423 [1.5032ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:11:37.726] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:11:37.726] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:11:37.726] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:11:37.726] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:11:37.727] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:11:37.728] INFO sqlite@v1.5.5/migrator.go:413 [1.0401ms] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:11:37.728] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:11:37.728] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:11:37.729] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:11:37.731] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:11:37.731] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:11:37.732] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:11:37.732] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:11:37.732] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:11:37.733] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:11:37.733] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:11:37.734] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:11:37.735] INFO sqlite@v1.5.5/migrator.go:423 [1.5008ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:11:37.737] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:11:37.737] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:11:37.739] INFO sqlite@v1.5.5/migrator.go:413 [1.0917ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:11:37.739] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:11:37.740] INFO sqlite@v1.5.5/migrator.go:423 [1.0014ms] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:11:37.740] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:11:37.742] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:11:37.742] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:11:44.300] INFO repository/user.go:55 [818.9µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:11:53.083] INFO repository/user.go:55 [502.1µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:11:59.339] INFO repository/user.go:55 [800µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:03.207] INFO repository/user.go:55 [146.1µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:15.084] INFO repository/user.go:55 [868.9µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:39.296] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:12:39.307] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:12:39.308] INFO sqlite@v1.5.5/migrator.go:125 [70.6µs] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:39.308] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:12:39.308] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:12:39.310] INFO sqlite@v1.5.5/migrator.go:413 [1.1822ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:12:39.310] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:12:39.310] INFO sqlite@v1.5.5/migrator.go:423 [68.5µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:12:39.311] INFO sqlite@v1.5.5/migrator.go:423 [1.1698ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:12:39.313] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:12:39.313] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:12:39.314] INFO sqlite@v1.5.5/migrator.go:413 [565.1µs] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:12:39.314] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:12:39.315] INFO sqlite@v1.5.5/migrator.go:423 [962µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:12:39.316] INFO sqlite@v1.5.5/migrator.go:423 [583.4µs] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:12:39.318] INFO sqlite@v1.5.5/migrator.go:32 [69.9µs] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:12:39.318] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:12:39.318] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:39.318] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:12:39.318] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:12:39.320] INFO sqlite@v1.5.5/migrator.go:413 [651.3µs] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:12:39.320] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:12:39.320] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:12:39.322] INFO sqlite@v1.5.5/migrator.go:423 [1.1351ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:12:39.323] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:12:39.324] INFO migrator/migrator.go:73 [1.0967ms] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:12:39.324] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:39.324] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:12:39.324] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:12:39.326] INFO sqlite@v1.5.5/migrator.go:413 [1.0529ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:12:39.326] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:12:39.326] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:12:39.327] INFO sqlite@v1.5.5/migrator.go:423 [1.0869ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:12:39.329] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:12:39.329] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:12:39.330] INFO sqlite@v1.5.5/migrator.go:413 [1.1357ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:12:39.330] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:12:39.330] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:12:39.332] INFO sqlite@v1.5.5/migrator.go:423 [65µs] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:12:39.334] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:12:39.334] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:12:40.382] INFO repository/user.go:55 [1.0007ms] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:12:41.405] INFO api/user.go:126 [209.4µs] [rows:1] SELECT count(*) FROM `t_user` WHERE account = "123123123"
|
|
|
|
|
[2024-03-07 14:14:42.943] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:14:42.956] INFO migrator/migrator.go:73 [599µs] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:14:42.956] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:14:42.957] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:14:42.957] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:14:42.958] INFO sqlite@v1.5.5/migrator.go:413 [1.0837ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:14:42.958] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:14:42.959] INFO sqlite@v1.5.5/migrator.go:423 [531.9µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:14:42.960] INFO sqlite@v1.5.5/migrator.go:423 [1.1284ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:14:42.961] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:14:42.961] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:14:42.962] INFO sqlite@v1.5.5/migrator.go:413 [520.2µs] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:14:42.962] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:14:42.963] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:14:42.964] INFO sqlite@v1.5.5/migrator.go:423 [1.0572ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:14:42.966] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:14:42.966] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:14:42.966] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:14:42.966] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:14:42.966] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:14:42.967] INFO sqlite@v1.5.5/migrator.go:413 [529.4µs] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:14:42.967] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:14:42.968] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:14:42.969] INFO sqlite@v1.5.5/migrator.go:423 [1.1041ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:14:42.971] INFO sqlite@v1.5.5/migrator.go:32 [520.9µs] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:14:42.971] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:14:42.971] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:14:42.971] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:14:42.971] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:14:42.973] INFO sqlite@v1.5.5/migrator.go:413 [1.0581ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:14:42.973] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:14:42.974] INFO sqlite@v1.5.5/migrator.go:423 [550µs] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:14:42.974] INFO sqlite@v1.5.5/migrator.go:423 [511.8µs] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:14:42.976] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:14:42.976] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:14:42.977] INFO sqlite@v1.5.5/migrator.go:413 [538.9µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:14:42.977] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:14:42.978] INFO sqlite@v1.5.5/migrator.go:423 [518.8µs] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:14:42.978] INFO sqlite@v1.5.5/migrator.go:423 [521.7µs] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:14:42.980] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:14:42.981] INFO script/db_migrate.go:50 [504.6µs] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:14:44.106] INFO repository/user.go:55 [91.3µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:15:48.092] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:15:48.104] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:15:48.104] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:15:48.104] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:15:48.105] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:15:48.106] INFO sqlite@v1.5.5/migrator.go:413 [636.6µs] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:15:48.106] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:15:48.107] INFO sqlite@v1.5.5/migrator.go:423 [56.7µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:15:48.108] INFO sqlite@v1.5.5/migrator.go:423 [666.7µs] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:15:48.110] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:15:48.110] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:15:48.111] INFO sqlite@v1.5.5/migrator.go:413 [660µs] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:15:48.111] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:15:48.112] INFO sqlite@v1.5.5/migrator.go:423 [563.1µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:15:48.113] INFO sqlite@v1.5.5/migrator.go:423 [1.0908ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:15:48.114] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:15:48.115] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:15:48.115] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:15:48.115] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:15:48.115] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:15:48.116] INFO sqlite@v1.5.5/migrator.go:413 [631.1µs] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:15:48.117] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:15:48.117] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:15:48.118] INFO sqlite@v1.5.5/migrator.go:423 [1.2075ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:15:48.119] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:15:48.120] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:15:48.120] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:15:48.121] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:15:48.121] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:15:48.122] INFO sqlite@v1.5.5/migrator.go:413 [613.3µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:15:48.122] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:15:48.122] INFO sqlite@v1.5.5/migrator.go:423 [564µs] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:15:48.123] INFO sqlite@v1.5.5/migrator.go:423 [1.112ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:15:48.125] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:15:48.125] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:15:48.126] INFO sqlite@v1.5.5/migrator.go:413 [569.1µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:15:48.126] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:15:48.126] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:15:48.127] INFO sqlite@v1.5.5/migrator.go:423 [634.5µs] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:15:48.128] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:15:48.128] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:15:49.260] INFO repository/user.go:55 [765.6µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:15:50.647] ERROR repository/user.go:31 no such column: isAdmin -> UPDATE `t_user` SET `avatar`="",`email`="",`isAdmin`=1,`name`="张三1",`status`=1,`updated_at`="2024-03-07 14:15:50.646" WHERE id = "2ac392865c644d1daaeb6ddd6b516e97"
|
|
|
|
|
[2024-03-07 14:16:02.228] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:16:02.242] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:16:02.242] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:16:02.242] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:16:02.243] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:16:02.245] INFO sqlite@v1.5.5/migrator.go:413 [1.0051ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:16:02.245] INFO sqlite@v1.5.5/migrator.go:423 [503.6µs] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:16:02.245] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:16:02.246] INFO sqlite@v1.5.5/migrator.go:423 [1.004ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:16:02.248] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:16:02.248] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:16:02.249] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:16:02.249] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:16:02.250] INFO sqlite@v1.5.5/migrator.go:423 [1.4226ms] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:16:02.252] INFO sqlite@v1.5.5/migrator.go:423 [1.5116ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:16:02.253] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:16:02.253] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:16:02.254] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:16:02.254] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:16:02.254] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:16:02.256] INFO sqlite@v1.5.5/migrator.go:413 [1.0073ms] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:16:02.256] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:16:02.257] INFO sqlite@v1.5.5/migrator.go:423 [999.4µs] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:16:02.258] INFO sqlite@v1.5.5/migrator.go:423 [998.4µs] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:16:02.260] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:16:02.260] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:16:02.260] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:16:02.260] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:16:02.261] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:16:02.262] INFO sqlite@v1.5.5/migrator.go:413 [1.0017ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:16:02.262] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:16:02.263] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:16:02.264] INFO sqlite@v1.5.5/migrator.go:423 [1.0031ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:16:02.266] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:16:02.266] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:16:02.268] INFO sqlite@v1.5.5/migrator.go:413 [1.0001ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:16:02.268] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:16:02.268] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:16:02.269] INFO sqlite@v1.5.5/migrator.go:423 [1.0005ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:16:02.271] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:16:02.272] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:16:03.225] INFO repository/user.go:55 [1.5847ms] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:16:04.658] INFO repository/user.go:31 [2.6176ms] [rows:1] UPDATE `t_user` SET `avatar`="",`email`="",`is_admin`=1,`name`="张三1",`status`=1,`updated_at`="2024-03-07 14:16:04.656" WHERE id = "2ac392865c644d1daaeb6ddd6b516e97"
|
|
|
|
|
[2024-03-07 14:45:21.473] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:45:21.489] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:45:21.489] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:21.489] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:21.490] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:45:21.491] INFO sqlite@v1.5.5/migrator.go:413 [1.5644ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:45:21.492] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:45:21.493] INFO sqlite@v1.5.5/migrator.go:423 [595.3µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:45:21.494] INFO sqlite@v1.5.5/migrator.go:423 [1.042ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:45:21.498] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:21.498] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:45:21.500] INFO sqlite@v1.5.5/migrator.go:413 [1.0362ms] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:45:21.500] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:45:21.501] INFO sqlite@v1.5.5/migrator.go:423 [525.4µs] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:45:21.503] INFO sqlite@v1.5.5/migrator.go:423 [1.6078ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:45:21.507] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:45:21.507] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:45:21.507] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:21.507] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:21.509] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:45:21.509] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:45:21.510] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:45:21.510] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:45:21.511] INFO sqlite@v1.5.5/migrator.go:423 [961µs] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:45:21.513] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:45:21.513] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:45:21.514] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:21.514] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:21.514] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:45:21.515] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:45:21.516] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:21.517] INFO sqlite@v1.5.5/migrator.go:423 [1.0111ms] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:21.518] INFO sqlite@v1.5.5/migrator.go:423 [1.0017ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:21.520] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:21.520] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:45:21.521] INFO sqlite@v1.5.5/migrator.go:413 [560.2µs] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:45:21.522] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:21.523] INFO sqlite@v1.5.5/migrator.go:423 [579.2µs] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:21.524] INFO sqlite@v1.5.5/migrator.go:423 [1.1393ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:21.525] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:45:21.525] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:45:30.353] INFO repository/user.go:68 [688.9µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:58.264] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_user"
|
|
|
|
|
[2024-03-07 14:45:58.278] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_user" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:45:58.278] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_user` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:58.278] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:58.278] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:45:58.280] INFO sqlite@v1.5.5/migrator.go:413 [1.0005ms] [rows:0] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:45:58.280] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:45:58.280] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:45:58.282] INFO sqlite@v1.5.5/migrator.go:423 [1.0005ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:45:58.284] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:58.284] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_user" AND name = "t_user"
|
|
|
|
|
[2024-03-07 14:45:58.284] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:2] CREATE TABLE `t_user__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`avatar` varchar(255) NOT NULL,`name` varchar(50) NOT NULL,`account` varchar(50) NOT NULL,`email` varchar(255),`password` varchar(255) NOT NULL,`is_admin` int(1) NOT NULL,`status` int(1) NOT NULL,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:45:58.286] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] INSERT INTO `t_user__temp`(`id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status`) SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`email`,`password`,`is_admin`,`status` FROM `t_user`
|
|
|
|
|
[2024-03-07 14:45:58.286] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:2] DROP TABLE `t_user`
|
|
|
|
|
[2024-03-07 14:45:58.287] INFO sqlite@v1.5.5/migrator.go:423 [1.0048ms] [rows:2] ALTER TABLE `t_user__temp` RENAME TO `t_user`
|
|
|
|
|
[2024-03-07 14:45:58.289] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_server"
|
|
|
|
|
[2024-03-07 14:45:58.289] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_server" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:45:58.289] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_server` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:58.289] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:58.290] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_server" AND name = "t_wg_server"
|
|
|
|
|
[2024-03-07 14:45:58.291] INFO sqlite@v1.5.5/migrator.go:413 [1.0009ms] [rows:2] CREATE TABLE `t_wg_server__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`ip_scope` varchar(30) NOT NULL,`listen_port` int(10) NOT NULL,`private_key` text NOT NULL,`public_key` text NOT NULL,`post_up_script` text,`pre_down_script` text,`post_down_script` text,PRIMARY KEY (`id`))
|
|
|
|
|
[2024-03-07 14:45:58.291] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_server__temp`(`id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script`) SELECT `id`,`created_at`,`updated_at`,`ip_scope`,`listen_port`,`private_key`,`public_key`,`post_up_script`,`pre_down_script`,`post_down_script` FROM `t_wg_server`
|
|
|
|
|
[2024-03-07 14:45:58.291] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_server`
|
|
|
|
|
[2024-03-07 14:45:58.292] INFO sqlite@v1.5.5/migrator.go:423 [1ms] [rows:0] ALTER TABLE `t_wg_server__temp` RENAME TO `t_wg_server`
|
|
|
|
|
[2024-03-07 14:45:58.294] INFO sqlite@v1.5.5/migrator.go:32 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type='table' AND name="t_wg_client"
|
|
|
|
|
[2024-03-07 14:45:58.294] INFO migrator/migrator.go:73 [0s] [rows:1] SELECT sql FROM sqlite_master WHERE type IN ("table","index") AND tbl_name = "t_wg_client" AND sql IS NOT NULL order by type = "table" desc
|
|
|
|
|
[2024-03-07 14:45:58.294] INFO sqlite@v1.5.5/migrator.go:125 [0s] [-] SELECT * FROM `t_wg_client` LIMIT 1
|
|
|
|
|
[2024-03-07 14:45:58.295] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:58.295] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:45:58.295] INFO sqlite@v1.5.5/migrator.go:413 [0s] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:45:58.296] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:58.296] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:58.297] INFO sqlite@v1.5.5/migrator.go:423 [1.005ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:58.299] INFO sqlite@v1.5.5/migrator.go:79 [0s] [rows:1] PRAGMA foreign_keys
|
|
|
|
|
[2024-03-07 14:45:58.299] INFO sqlite@v1.5.5/migrator.go:368 [0s] [-] SELECT sql FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND name = "t_wg_client"
|
|
|
|
|
[2024-03-07 14:45:58.300] INFO sqlite@v1.5.5/migrator.go:413 [1.0089ms] [rows:0] CREATE TABLE `t_wg_client__temp` (`id` varchar(36) NOT NULL,`created_at` datetime,`updated_at` datetime,`server_id` varchar(36) NOT NULL,`name` varchar(100) NOT NULL,`email` varchar(100),`subnet_range` varchar(255),`ip_allocation` varchar(30) NOT NULL,`allowed_ips` varchar(30) NOT NULL,`extra_allowed_ips` varchar(30),`endpoint` varchar(255),`use_server_dns` int(1),`enable_after_creation` int(1),`keys` text,`user_id` char(36) NOT NULL,PRIMARY KEY (`id`),CONSTRAINT `fk_t_wg_server_clients` FOREIGN KEY (`server_id`) REFERENCES `t_wg_server`(`id`))
|
|
|
|
|
[2024-03-07 14:45:58.300] INFO sqlite@v1.5.5/migrator.go:423 [0s] [rows:0] INSERT INTO `t_wg_client__temp`(`id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id`) SELECT `id`,`created_at`,`updated_at`,`server_id`,`name`,`email`,`subnet_range`,`ip_allocation`,`allowed_ips`,`extra_allowed_ips`,`endpoint`,`use_server_dns`,`enable_after_creation`,`keys`,`user_id` FROM `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:58.301] INFO sqlite@v1.5.5/migrator.go:423 [988.6µs] [rows:0] DROP TABLE `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:58.302] INFO sqlite@v1.5.5/migrator.go:423 [1.0107ms] [rows:0] ALTER TABLE `t_wg_client__temp` RENAME TO `t_wg_client`
|
|
|
|
|
[2024-03-07 14:45:58.303] INFO sqlite@v1.5.5/migrator.go:219 [0s] [-] SELECT count(*) FROM sqlite_master WHERE type = "table" AND tbl_name = "t_wg_client" AND (sql LIKE "%CONSTRAINT ""fk_t_wg_server_clients"" %" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %" OR sql LIKE "%CONSTRAINT `fk_t_wg_server_clients`%" OR sql LIKE "%CONSTRAINT [fk_t_wg_server_clients]%" OR sql LIKE "%CONSTRAINT fk_t_wg_server_clients %")
|
|
|
|
|
[2024-03-07 14:45:58.304] INFO script/db_migrate.go:50 [0s] [rows:1] SELECT count(*) FROM `t_user` WHERE is_admin = 1
|
|
|
|
|
[2024-03-07 14:45:59.588] INFO repository/user.go:68 [224.6µs] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:46:13.620] INFO repository/user.go:68 [0s] [rows:1] SELECT * FROM `t_user` WHERE id = "21b09f1bbff54512bed815f991fae7f8" ORDER BY `t_user`.`id` LIMIT 1
|
|
|
|
|
[2024-03-07 14:46:13.621] INFO repository/user.go:93 [1.504ms] [rows:2] SELECT `id`,`created_at`,`updated_at`,`avatar`,`name`,`account`,`is_admin`,`status` FROM `t_user` ORDER BY created_at DESC LIMIT 10
|
|
|
|
|
[2024-03-07 14:46:13.622] INFO repository/user.go:93 [519.9µs] [rows:1] SELECT count(*) FROM `t_user`
|