Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Migrations/Version18000Date20191014105105.php')
-rw-r--r--core/Migrations/Version18000Date20191014105105.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/core/Migrations/Version18000Date20191014105105.php b/core/Migrations/Version18000Date20191014105105.php
index c36972c556f..fa7eed899ae 100644
--- a/core/Migrations/Version18000Date20191014105105.php
+++ b/core/Migrations/Version18000Date20191014105105.php
@@ -5,6 +5,9 @@ declare(strict_types=1);
/**
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
+ * @author Daniel Kesselberg <mail@danielkesselberg.de>
+ * @author Joas Schilling <coding@schilljs.com>
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
@@ -16,18 +19,17 @@ declare(strict_types=1);
*
* 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
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-
namespace OC\Core\Migrations;
use Closure;
-use Doctrine\DBAL\Types\Type;
+use OCP\DB\Types;
use OCP\DB\ISchemaWrapper;
use OCP\IDBConnection;
use OCP\Migration\SimpleMigrationStep;
@@ -53,35 +55,35 @@ class Version18000Date20191014105105 extends SimpleMigrationStep {
$schema = $schemaClosure();
$table = $schema->createTable('direct_edit');
- $table->addColumn('id', Type::BIGINT, [
+ $table->addColumn('id', Types::BIGINT, [
'autoincrement' => true,
'notnull' => true,
]);
- $table->addColumn('editor_id', Type::STRING, [
+ $table->addColumn('editor_id', Types::STRING, [
'notnull' => true,
'length' => 64,
]);
- $table->addColumn('token', Type::STRING, [
+ $table->addColumn('token', Types::STRING, [
'notnull' => true,
'length' => 64,
]);
- $table->addColumn('file_id', Type::BIGINT, [
+ $table->addColumn('file_id', Types::BIGINT, [
'notnull' => true,
]);
- $table->addColumn('user_id', Type::STRING, [
+ $table->addColumn('user_id', Types::STRING, [
'notnull' => false,
'length' => 64,
]);
- $table->addColumn('share_id', Type::BIGINT, [
+ $table->addColumn('share_id', Types::BIGINT, [
'notnull' => false
]);
- $table->addColumn('timestamp', Type::BIGINT, [
+ $table->addColumn('timestamp', Types::BIGINT, [
'notnull' => true,
'length' => 20,
'unsigned' => true,
]);
- $table->addColumn('accessed', Type::BOOLEAN, [
- 'notnull' => true,
+ $table->addColumn('accessed', Types::BOOLEAN, [
+ 'notnull' => false,
'default' => false
]);
@@ -90,5 +92,4 @@ class Version18000Date20191014105105 extends SimpleMigrationStep {
return $schema;
}
-
}