Re: [lms] [lms-commits] CVS update of lms/lib/upgradedb (mysql.2008042400.php)
To jeszcze lms.pgsql i lms.mysql ;-)
On Thu, 24 Apr 2008 12:52:09 +0200 (CEST), LMS CVS wrote
Date: Thursday, April 24, 2008 @ 12:52:09 Author: ceho Path: /cvsroot/lms/lib/upgradedb
Added: mysql.2008042400.php
- added 'disable network' functionality (chilan)
Diff URLs: http://cvs.lms.org.pl/viewvc/lms/lib/upgradedb/mysql.2008042400.php?rev=1.1
Index: lms/lib/upgradedb/mysql.2008042400.php diff -u /dev/null lms/lib/upgradedb/mysql.2008042400.php:1.1 --- /dev/null Thu Apr 24 12:52:09 2008 +++ lms/lib/upgradedb/mysql.2008042400.php Thu Apr 24 12:52:09 2008 @@ -0,0 +1,35 @@ +<?php
+/*
- LMS version 1.11-cvs
- (C) Copyright 2001-2008 LMS Developers
- Please, see the doc/AUTHORS for more information about authors!
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License Version 2
as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
- USA. + *
- $Id: mysql.2008042400.php,v 1.1 2008/04/24 10:52:09 ceho Exp $
- */ + +$DB->BeginTrans(); + +$DB->Execute("ALTER TABLE networks ADD
disabled tinyint(1) NOT NULL DEFAULT '0'"); + +$DB->Execute("UPDATE dbinfo SET keyvalue = ? WHERE keytype = ?", array('2008042400', 'dbversion')); + +$DB->CommitTrans(); + +?>
Tomasz Chiliński wrote:
Date: Thursday, April 24, 2008 @ 12:52:09 Author: ceho
- added 'disable network' functionality (chilan)
To jeszcze pytanko, czy to koniec zmian? wypadałoby uzupełnić strukturę bazy w dokumentacji oraz changelog, ale bardziej chodzi mi o funkcjonalność. Pasowałoby pokazywać status również w info i edycji sieci. Poza tym można by np. ukrywać wyłączone sieci podczas wyboru adresu IP z listy. Liczyłem na coś więcej ;)
uczestnicy (2)
-
A.L.E.C
-
Tomasz Chiliński