summaryrefslogtreecommitdiffstats
path: root/src/libserver/CMakeLists.txt
Commit message (Expand)AuthorAgeFilesLines
* [Rework] Start conversion of the redis pool code to c++Vsevolod Stakhov2021-07-221-1/+1
* [Rework] Add composites manager conceptVsevolod Stakhov2021-07-151-0/+1
* [Rework] Composites: Start rework of the composites frameworkVsevolod Stakhov2021-07-151-1/+1
* [Minor] Move tests to a separate unit to avoid main logic pollutionVsevolod Stakhov2021-07-131-0/+1
* [Rework] Move HTML url functions and rework themVsevolod Stakhov2021-05-271-0/+1
* [Rework] Move and adopt entities handling logicVsevolod Stakhov2021-05-211-1/+2
* [Rework] Move entities/tags handlingVsevolod Stakhov2021-05-211-1/+1
* [Minor] Move html code to a separate subdir (no functional changes)Vsevolod Stakhov2021-05-201-1/+1
* [Project] Add parsers skeletonVsevolod Stakhov2021-01-221-0/+2
* [Project] Skeleton of the css libraryVsevolod Stakhov2021-01-221-1/+3
* [Rework] Further project structure reorganisationVsevolod Stakhov2020-02-111-1/+9
* [Rework] Refactor libraries structureVsevolod Stakhov2020-02-101-6/+9
* [Project] Rename events.hVsevolod Stakhov2019-06-221-1/+1
* [Project] Another rework for symbols cacheVsevolod Stakhov2018-10-291-1/+1
* [Minor] Redis support is now unconditionalVsevolod Stakhov2018-07-101-4/+2
* [Rework] Initial milter protocol supportVsevolod Stakhov2017-04-271-0/+1
* made optional dependency on hiredis really optionalVlad Glagolev2016-12-061-2/+5
* [Rework] More cleanup actionsVsevolod Stakhov2016-10-171-2/+0
* [Minor] Skeleton for redis fuzzy backendVsevolod Stakhov2016-09-021-0/+1
* [Rework] Reorganize fuzzy backend structureVsevolod Stakhov2016-09-011-0/+1
* [Feature] Add implementation of redis connections poolVsevolod Stakhov2016-08-301-0/+1
* [Feature] Add preliminary monitored moduleVsevolod Stakhov2016-08-251-0/+1
* Start new regexp cache optimizerVsevolod Stakhov2015-12-011-0/+1
* Reorganize structure of filter components.Vsevolod Stakhov2015-06-021-0/+1
* Eliminate mess with linking.Vsevolod Stakhov2015-02-131-52/+18
* Remove old statfile_pool logic.Vsevolod Stakhov2015-01-181-1/+0
* Remove binlog and statfile_sync: never ever used.Vsevolod Stakhov2015-01-161-2/+0
* Reorganize statfiles and classifiers into libstat.Vsevolod Stakhov2015-01-161-8/+1
* Start total rework of fuzzy_storage.Vsevolod Stakhov2014-12-191-0/+2
* Release 0.7.0.0.7.0Vsevolod Stakhov2014-09-111-1/+0
* Pre-compile config.hVsevolod Stakhov2014-08-291-1/+2
* Remove embedded jansson completely.Vsevolod Stakhov2014-08-191-2/+1
* Remove hard dependency on settings.Vsevolod Stakhov2014-07-221-1/+0
* Move protocol functions to libserver.Vsevolod Stakhov2014-05-021-0/+1
* Rework worker utilities.Vsevolod Stakhov2014-04-301-1/+3
* Rework project structure, remove trash files.Vsevolod Stakhov2014-04-211-0/+63
value='backport/47860/stable29'>backport/47860/stable29 Nextcloud server, a safe home for all your data: https://github.com/nextcloud/serverwww-data
summaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version18000Date20191014105105.php
blob: fa7eed899aed51f8a092c6cd95e33ab3dee9440a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php

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
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * 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 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 OCP\DB\Types;
use OCP\DB\ISchemaWrapper;
use OCP\IDBConnection;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;

class Version18000Date20191014105105 extends SimpleMigrationStep {

	/** @var IDBConnection */
	protected $connection;

	public function __construct(IDBConnection $connection) {
		$this->connection = $connection;
	}

	/**
	 * @param IOutput $output
	 * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
	 * @param array $options
	 * @return null|ISchemaWrapper
	 */
	public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
		/** @var ISchemaWrapper $schema */
		$schema = $schemaClosure();
		$table = $schema->createTable('direct_edit');

		$table->addColumn('id', Types::BIGINT, [
			'autoincrement' => true,
			'notnull' => true,
		]);
		$table->addColumn('editor_id', Types::STRING, [
			'notnull' => true,
			'length' => 64,
		]);
		$table->addColumn('token', Types::STRING, [
			'notnull' => true,
			'length' => 64,
		]);
		$table->addColumn('file_id', Types::BIGINT, [
			'notnull' => true,
		]);
		$table->addColumn('user_id', Types::STRING, [
			'notnull' => false,
			'length' => 64,
		]);
		$table->addColumn('share_id', Types::BIGINT, [
			'notnull' => false
		]);
		$table->addColumn('timestamp', Types::BIGINT, [
			'notnull' => true,
			'length' => 20,
			'unsigned' => true,
		]);
		$table->addColumn('accessed', Types::BOOLEAN, [
			'notnull' => false,
			'default' => false
		]);

		$table->setPrimaryKey(['id']);
		$table->addIndex(['token']);

		return $schema;
	}
}