mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-07 09:41:37 +08:00
moved data structure to db
This commit is contained in:
@@ -59,6 +59,8 @@ const (
|
||||
HOSTS_TABLE_NAME = "hosts"
|
||||
// ENROLLMENT_KEYS_TABLE_NAME - table name for enrollmentkeys
|
||||
ENROLLMENT_KEYS_TABLE_NAME = "enrollmentkeys"
|
||||
// HOST_ACTIONS_TABLE_NAME - table name for enrollmentkeys
|
||||
HOST_ACTIONS_TABLE_NAME = "hostactions"
|
||||
|
||||
// == ERROR CONSTS ==
|
||||
// NO_RECORD - no singular result found
|
||||
@@ -141,6 +143,7 @@ func createTables() {
|
||||
createTable(CACHE_TABLE_NAME)
|
||||
createTable(HOSTS_TABLE_NAME)
|
||||
createTable(ENROLLMENT_KEYS_TABLE_NAME)
|
||||
createTable(HOST_ACTIONS_TABLE_NAME)
|
||||
}
|
||||
|
||||
func createTable(tableName string) error {
|
||||
|
Reference in New Issue
Block a user