git.annexia.org
/
cocanwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1d0ea4e
)
When copying a template during site creation, force the hosts.is_template
author
rich
<rich>
Mon, 4 Oct 2004 14:46:51 +0000
(14:46 +0000)
committer
rich
<rich>
Mon, 4 Oct 2004 14:46:51 +0000
(14:46 +0000)
feature to false.
scripts/admin/create_host.ml
patch
|
blob
|
history
diff --git
a/scripts/admin/create_host.ml
b/scripts/admin/create_host.ml
index
9cf2546
..
ff41490
100644
(file)
--- a/
scripts/admin/create_host.ml
+++ b/
scripts/admin/create_host.ml
@@
-1,7
+1,7
@@
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: create_host.ml,v 1.
5 2004/09/25 12:44:36
rich Exp $
+ * $Id: create_host.ml,v 1.
6 2004/10/04 14:46:51
rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-107,6
+107,12
@@
let run r =
)
) (List.combine names row);
)
) (List.combine names row);
+ (* Force new host.is_template field to false. *)
+ let sth =
+ dbh#prepare_cached
+ "update hosts set is_template = false where id = ?" in
+ sth#execute [`Int hostid];
+
(* Copy pages. *)
let sth =
dbh#prepare_cached
(* Copy pages. *)
let sth =
dbh#prepare_cached