Luciano Andrade пре 7 година
родитељ
комит
80cfe81ed3
2 измењених фајлова са 3 додато и 4 уклоњено
  1. 3 3
      tools/mysql/freeradius/schema.sql
  2. 0 1
      tools/src/Release.php

+ 3 - 3
tools/mysql/freeradius/schema.sql

@@ -4,7 +4,7 @@ USE freeradius;
 CREATE TABLE IF NOT EXISTS `badusers` (
   `id` int(10) NOT NULL AUTO_INCREMENT,
   `UserName` varchar(30) DEFAULT NULL,
-  `Date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+  `Date` datetime DEFAULT NULL,
   `Reason` varchar(200) DEFAULT NULL,
   `Admin` varchar(30) DEFAULT '-',
   PRIMARY KEY (`id`),
@@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS `badusers` (
 CREATE TABLE IF NOT EXISTS `mtotacct` (
   `MTotAcctId` bigint(21) NOT NULL AUTO_INCREMENT,
   `UserName` varchar(64) NOT NULL DEFAULT '',
-  `AcctDate` date NOT NULL DEFAULT '0000-00-00',
+  `AcctDate` date DEFAULT NULL,
   `ConnNum` bigint(12) DEFAULT NULL,
   `ConnTotDuration` bigint(12) DEFAULT NULL,
   `ConnMaxDuration` bigint(12) DEFAULT NULL,
@@ -204,7 +204,7 @@ CREATE TABLE IF NOT EXISTS `radusergroup` (
 CREATE TABLE IF NOT EXISTS `totacct` (
   `TotAcctId` bigint(21) NOT NULL AUTO_INCREMENT,
   `UserName` varchar(64) NOT NULL DEFAULT '',
-  `AcctDate` date NOT NULL DEFAULT '0000-00-00',
+  `AcctDate` date DEFAULT NULL,
   `ConnNum` bigint(12) DEFAULT NULL,
   `ConnTotDuration` bigint(12) DEFAULT NULL,
   `ConnMaxDuration` bigint(12) DEFAULT NULL,

+ 0 - 1
tools/src/Release.php

@@ -269,7 +269,6 @@ class Release extends Command
                 }
                 $this->_domain = $input->getOption("domain");
                 $this->_client = $input->getOption("client");
-                $this->_dir = realpath($dir);
 
                 if (!$this->_client) {
                     $this->_client = basename(realpath($this->directory));