diff --git a/appinfo/info.xml b/appinfo/info.xml index 579d81d50f8..c5dd880c9d2 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -11,7 +11,7 @@ - **๐Ÿ’พ Open format:** Files are saved as [Markdown](https://en.wikipedia.org/wiki/Markdown), so you can edit them from any other text app too. - **โœŠ Strong foundation:** We use [๐Ÿˆ tiptap](https://tiptap.scrumpy.io) which is based on [๐Ÿฆ‰ ProseMirror](https://prosemirror.net) โ€“ huge thanks to them! ]]> - 4.0.0 + 4.1.0 agpl Julius Hรคrtl Text diff --git a/composer/composer/autoload_classmap.php b/composer/composer/autoload_classmap.php index 1c2a562a99b..d5e47217621 100644 --- a/composer/composer/autoload_classmap.php +++ b/composer/composer/autoload_classmap.php @@ -59,6 +59,7 @@ 'OCA\\Text\\Migration\\Version030501Date20220202101853' => $baseDir . '/../lib/Migration/Version030501Date20220202101853.php', 'OCA\\Text\\Migration\\Version030701Date20230207131313' => $baseDir . '/../lib/Migration/Version030701Date20230207131313.php', 'OCA\\Text\\Migration\\Version030901Date20231114150437' => $baseDir . '/../lib/Migration/Version030901Date20231114150437.php', + 'OCA\\Text\\Migration\\Version040100Date20240611165300' => $baseDir . '/../lib/Migration/Version040100Date20240611165300.php', 'OCA\\Text\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php', 'OCA\\Text\\Service\\ApiService' => $baseDir . '/../lib/Service/ApiService.php', 'OCA\\Text\\Service\\AttachmentService' => $baseDir . '/../lib/Service/AttachmentService.php', diff --git a/composer/composer/autoload_static.php b/composer/composer/autoload_static.php index 516ca76649b..7842984918b 100644 --- a/composer/composer/autoload_static.php +++ b/composer/composer/autoload_static.php @@ -74,6 +74,7 @@ class ComposerStaticInitText 'OCA\\Text\\Migration\\Version030501Date20220202101853' => __DIR__ . '/..' . '/../lib/Migration/Version030501Date20220202101853.php', 'OCA\\Text\\Migration\\Version030701Date20230207131313' => __DIR__ . '/..' . '/../lib/Migration/Version030701Date20230207131313.php', 'OCA\\Text\\Migration\\Version030901Date20231114150437' => __DIR__ . '/..' . '/../lib/Migration/Version030901Date20231114150437.php', + 'OCA\\Text\\Migration\\Version040100Date20240611165300' => __DIR__ . '/..' . '/../lib/Migration/Version040100Date20240611165300.php', 'OCA\\Text\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php', 'OCA\\Text\\Service\\ApiService' => __DIR__ . '/..' . '/../lib/Service/ApiService.php', 'OCA\\Text\\Service\\AttachmentService' => __DIR__ . '/..' . '/../lib/Service/AttachmentService.php', diff --git a/lib/Db/Step.php b/lib/Db/Step.php index 52377fcd144..8c50da9b35d 100644 --- a/lib/Db/Step.php +++ b/lib/Db/Step.php @@ -35,6 +35,8 @@ * @method setSessionId(int $sessionId): void * @method getDocumentId(): int * @method setDocumentId(int $documentId): void + * @method getTimestamp(): int + * @method setTimestamp(int $timestam): void */ class Step extends Entity implements JsonSerializable { @@ -50,12 +52,15 @@ class Step extends Entity implements JsonSerializable { protected int $version = 0; protected int $sessionId = 0; protected int $documentId = 0; + protected int $timestamp = 0; public function __construct() { $this->addType('id', 'integer'); $this->addType('version', 'integer'); $this->addType('documentId', 'integer'); $this->addType('sessionId', 'integer'); + $this->addType('timestamp', 'integer'); + $this->timestamp = time(); } public function jsonSerialize(): array { @@ -70,7 +75,8 @@ public function jsonSerialize(): array { 'id' => $this->getId(), 'data' => $jsonData, 'version' => $version, - 'sessionId' => $this->getSessionId() + 'sessionId' => $this->getSessionId(), + 'timestamp' => $this->getTimestamp(), ]; } }