Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
4200fdab
Commit
4200fdab
authored
Jun 03, 2003
by
Mac Newbold
Browse files
Remove (and disallow) nulls in the state_timeouts table.
parent
f90df53f
Changes
3
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
4200fdab
...
...
@@ -1067,8 +1067,8 @@ CREATE TABLE sitevariables (
CREATE
TABLE
state_timeouts
(
op_mode
varchar
(
20
)
NOT
NULL
default
''
,
state
varchar
(
20
)
NOT
NULL
default
''
,
timeout
int
(
11
)
default
NULL
,
action
mediumtext
,
timeout
int
(
11
)
NOT
NULL
default
'0'
,
action
mediumtext
NOT
NULL
,
PRIMARY
KEY
(
op_mode
,
state
)
)
TYPE
=
MyISAM
;
...
...
sql/database-fill.sql
View file @
4200fdab
...
...
@@ -258,37 +258,37 @@ REPLACE INTO mode_transitions VALUES ('RELOAD','SHUTDOWN','NORMALv1','SHUTDOWN')
REPLACE
INTO
state_timeouts
VALUES
(
'NORMAL'
,
'REBOOTING'
,
120
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMAL'
,
'REBOOTED'
,
60
,
'NOTIFY'
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMAL'
,
'ISUP'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMAL'
,
'ISUP'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'MINIMAL'
,
'SHUTDOWN'
,
120
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMALv1'
,
'SHUTDOWN'
,
120
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'RELOADDONE'
,
60
,
'NOTIFY'
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'ACTIVATING'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'ACTIVE'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'NEW'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'PRERUN'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'SWAPPED'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'SWAPPING'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'TERMINATING'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'TESTING'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'ACTIVATING'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'ACTIVE'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'NEW'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'PRERUN'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'SWAPPED'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'SWAPPING'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'TERMINATING'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'EXPTSTATUS'
,
'TESTING'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'MINIMAL'
,
'BOOTING'
,
180
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'MINIMAL'
,
'ISUP'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'FREE_CLEAN'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'FREE_DIRTY'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'REBOOT'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'RELOAD'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'RESERVED'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'MINIMAL'
,
'ISUP'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'FREE_CLEAN'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'FREE_DIRTY'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'REBOOT'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'RELOAD'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NODEALLOC'
,
'RESERVED'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMAL'
,
'BOOTING'
,
180
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMALv1'
,
'BOOTING'
,
180
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMALv1'
,
'ISUP'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMALv1'
,
'ISUP'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'NORMALv1'
,
'TBSETUP'
,
600
,
'NOTIFY'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'BOOTING'
,
180
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'RELOADING'
,
600
,
'NOTIFY'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'RELOADSETUP'
,
60
,
'NOTIFY'
);
REPLACE
INTO
state_timeouts
VALUES
(
'RELOAD'
,
'SHUTDOWN'
,
120
,
'REBOOT'
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'ACTIVE'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'FROZEN'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'NEWUSER'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'UNAPPROVED'
,
0
,
NULL
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'ACTIVE'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'FROZEN'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'NEWUSER'
,
0
,
''
);
REPLACE
INTO
state_timeouts
VALUES
(
'USERSTATUS'
,
'UNAPPROVED'
,
0
,
''
);
--
-- Dumping data for table 'state_transitions'
...
...
@@ -402,6 +402,7 @@ REPLACE INTO state_triggers VALUES ('*','ALWAYSUP','SHUTDOWN','ISUP');
REPLACE
INTO
testsuite_preentables
VALUES
(
'comments'
,
'drop'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'iface_counters'
,
'drop'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'lastlogin'
,
'drop'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'login'
,
'drop'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'loginmessage'
,
'drop'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'node_idlestats'
,
'drop'
);
...
...
@@ -431,7 +432,6 @@ REPLACE INTO testsuite_preentables VALUES ('group_stats','clean');
REPLACE
INTO
testsuite_preentables
VALUES
(
'project_stats'
,
'clean'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'user_stats'
,
'clean'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'experiment_stats'
,
'clean'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'experiment_resources'
,
'clean'
);
REPLACE
INTO
testsuite_preentables
VALUES
(
'testbed_stats'
,
'clean'
);
--
...
...
sql/database-migrate.txt
View file @
4200fdab
...
...
@@ -639,3 +639,8 @@ last_net_act,last_cpu_act,last_ext_act);
DBQueryFatal("update nodes set ".
"jailip='172.16.${p}.${v}' where node_id='$node_id'");
}
1.153: Disallow nulls in state_timeouts table.
alter table state_timeouts modify timeout int(11) not null;
alter table state_timeouts modify action mediumtext not null;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment