NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Data.Changes.Change02 Class Reference
Inheritance diagram for Ntp.Analyzer.Data.Changes.Change02:
Collaboration diagram for Ntp.Analyzer.Data.Changes.Change02:

Public Member Functions

 Change02 ()
 
IEnumerator< SqlChangeSetGetEnumerator ()
 

Public Attributes

int VersionNumber => 000720
 
string VersionText => "v0.7.2"
 

Private Member Functions

IEnumerator IEnumerable. GetEnumerator ()
 

Private Attributes

readonly List< SqlChangeSetchanges
 

Additional Inherited Members

- Properties inherited from Ntp.Data.Schema.IVersionChanges
int VersionNumber [get]
 
string VersionText [get]
 

Detailed Description

Definition at line 28 of file Change02.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Data.Changes.Change02.Change02 ( )
inline

Definition at line 30 of file Change02.cs.

31  {
32  changes = new List<SqlChangeSet>
33  {
34  // Adjust host name and IP length to RFC values
35  new SqlChangeSet(
36  "ALTER TABLE host " +
37  "MODIFY COLUMN name VARCHAR(255) NOT NULL;"
38  ),
39  new SqlChangeSet(
40  "ALTER TABLE host " +
41  "MODIFY COLUMN ip VARCHAR(45) NOT NULL;"
42  ),
43  new SqlChangeSet(
44  "ALTER TABLE peer " +
45  "MODIFY COLUMN name VARCHAR(255) NOT NULL;"
46  ),
47  new SqlChangeSet(
48  "ALTER TABLE peer " +
49  "MODIFY COLUMN ip VARCHAR(45) NOT NULL;"
50  ),
51  // Add time column to readings
52  new SqlChangeSet(
53  "ALTER TABLE hostIoReading " +
54  "ADD COLUMN zone INT NOT NULL DEFAULT 0;"
55  ),
56  new SqlChangeSet(
57  "ALTER TABLE hostReading " +
58  "ADD COLUMN zone INT NOT NULL DEFAULT 0;"
59  ),
60  new SqlChangeSet(
61  "ALTER TABLE peerReading " +
62  "ADD COLUMN zone INT NOT NULL DEFAULT 0;"
63  ),
64  new SqlChangeSet(
65  "ALTER TABLE peerActivity " +
66  "ADD COLUMN zone INT NOT NULL DEFAULT 0;"
67  )
68  };
69  }
readonly List< SqlChangeSet > changes
Definition: Change02.cs:71

Member Function Documentation

IEnumerator IEnumerable. Ntp.Analyzer.Data.Changes.Change02.GetEnumerator ( )
inlineprivate

Definition at line 77 of file Change02.cs.

78  {
79  return changes.GetEnumerator();
80  }
readonly List< SqlChangeSet > changes
Definition: Change02.cs:71
IEnumerator<SqlChangeSet> Ntp.Analyzer.Data.Changes.Change02.GetEnumerator ( )
inline

Definition at line 82 of file Change02.cs.

83  {
84  return changes.GetEnumerator();
85  }
readonly List< SqlChangeSet > changes
Definition: Change02.cs:71

Member Data Documentation

readonly List<SqlChangeSet> Ntp.Analyzer.Data.Changes.Change02.changes
private

Definition at line 71 of file Change02.cs.

int Ntp.Analyzer.Data.Changes.Change02.VersionNumber => 000720

Definition at line 75 of file Change02.cs.

string Ntp.Analyzer.Data.Changes.Change02.VersionText => "v0.7.2"

Definition at line 73 of file Change02.cs.


The documentation for this class was generated from the following file: