Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nethlink. created user_nethlink table #170

Merged
merged 3 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions freepbx/initdb.d/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,6 @@
$stmt->execute(array_merge([$value,$sip_option],$extensions));
}
}

# add nethlink table if not exist
$db->query("CREATE TABLE `user_nethlink` (`user` varchar(255) NOT NULL UNIQUE,`extension` varchar(255) NOT NULL,`timestamp` varchar(255) DEFAULT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8");
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*!40101 SET NAMES binary*/;
/*!40014 SET FOREIGN_KEY_CHECKS=0*/;

/*!40103 SET TIME_ZONE='+00:00' */;
USE `nethcti3`;
CREATE TABLE `user_nethlink` (
`user` varchar(255) NOT NULL UNIQUE,
`extension` varchar(255) NOT NULL,
`timestamp` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
8 changes: 8 additions & 0 deletions nethcti-server/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,14 @@ cat > $FILE <<EOF
"dbuser": "${NETHCTI_DB_USER}",
"dbpassword": "${NETHCTI_DB_PASSWORD}",
"dbname": "nethcti3"
},
"user_nethlink": {
"dbhost": "127.0.0.1",
"dbport": "${NETHVOICE_MARIADB_PORT}",
"dbtype": "mysql",
"dbuser": "${NETHCTI_DB_USER}",
"dbpassword": "${NETHCTI_DB_PASSWORD}",
"dbname": "nethcti3"
}
}
EOF
Expand Down
Loading