Browse code

removed appinfo/info.xml appinfo/signature.json CHANGELOG.txt img/sms_relentless.svg img/sms_relentless_dark.svg img/sms_relentless_grey.svg lib/Migration/Version100Date20211106192148.php lib/Migration/Version105Date20220509201842.php lib/Migration/Version106Date20220813144231.php lib/Migration/Version108Date20220823132408.php lib/Migration/Version113Date20221201044315.php

DoubleBastionAdmin authored on 01/12/2022 21:35:11
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,249 +0,0 @@
1
-<?php
2
-/**
3
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
- *
5
- * @author Double Bastion LLC
6
- *
7
- * @license GNU AGPL version 3 or any later version
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
- * License as published by the Free Software Foundation; either
12
- * version 3 of the License, or any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
- *
19
- * You should have received a copy of the GNU Affero General Public
20
- * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
- *
22
- */
23
-
24
-declare(strict_types=1);
25
-
26
-namespace OCA\SMSRelentless\Migration;
27
-
28
-use OCP\DB\Types;
29
-use OCP\DB\ISchemaWrapper;
30
-use OCP\Migration\IOutput;
31
-use OCP\Migration\SimpleMigrationStep;
32
-
33
-
34
-class Version105Date20220509201842 extends SimpleMigrationStep {
35
-	/**
36
-	 * @param IOutput $output
37
-	 * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
38
-	 * @param array $options
39
-	 * @return null|ISchemaWrapper
40
-	 */
41
-	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
42
-		/** @var ISchemaWrapper $schema */
43
-		$schema = $schemaClosure();
44
-
45
-		if (!$schema->hasTable('sms_relent_settings')) {
46
-			$table = $schema->createTable('sms_relent_settings');
47
-			$table->addColumn('id', 'bigint', [
48
-				'autoincrement' => true,
49
-				'notnull' => true,
50
-                                'length' => 11,
51
-                                'unsigned' => true,
52
-			]);
53
-			$table->addColumn('user_id', 'string', [
54
-				'notnull' => true,
55
-				'length' => 128,
56
-				'default' => '',
57
-			]);
58
-			$table->addColumn('telapi_key', 'string', [
59
-				'notnull' => true,
60
-				'length' => 1024,
61
-				'default' => '',
62
-			]);
63
-			$table->addColumn('tel_pub_key', 'string', [
64
-				'notnull' => true,
65
-				'length' => 1024,
66
-				'default' => '',
67
-			]);
68
-			$table->addColumn('telapi_url_rec', 'string', [
69
-				'notnull' => true,
70
-				'length' => 1024,
71
-				'default' => '',
72
-			]);
73
-			$table->addColumn('telapi_url', 'string', [
74
-				'notnull' => true,
75
-				'length' => 1024,
76
-				'default' => '',
77
-			]);
78
-			$table->addColumn('messaging_profile_id', 'string', [
79
-				'notnull' => true,
80
-				'length' => 1024,
81
-				'default' => '',
82
-			]);
83
-			$table->addColumn('nexapi_key', 'string', [
84
-				'notnull' => true,
85
-				'length' => 1024,
86
-				'default' => '',
87
-			]);
88
-			$table->addColumn('nexapi_secret', 'string', [
89
-				'notnull' => true,
90
-				'length' => 1024,
91
-				'default' => '',
92
-			]);
93
-			$table->addColumn('nexapi_url_rec', 'string', [
94
-				'notnull' => true,
95
-				'length' => 1024,
96
-				'default' => '',
97
-			]);
98
-			$table->addColumn('nexapi_url', 'string', [
99
-				'notnull' => true,
100
-				'length' => 1024,
101
-				'default' => '',
102
-			]);
103
-			$table->addColumn('tel_sender_name', 'string', [
104
-				'notnull' => false,
105
-				'length' => 1024,
106
-				'default' => '',
107
-			]);
108
-			$table->addColumn('nex_sender_name', 'string', [
109
-				'notnull' => false,
110
-				'length' => 1024,
111
-				'default' => '',
112
-			]);
113
-			$table->addColumn('messagesperpage', 'integer', [
114
-				'notnull' => false,
115
-				'length' => 11,
116
-                                'unsigned' => true,
117
-			]);
118
-			$table->addColumn('get_notify', 'smallint', [
119
-				'notnull' => false,
120
-				'length' => 1,
121
-			]);
122
-			$table->addColumn('notification_email', 'string', [
123
-				'notnull' => false,
124
-				'length' => 1024,
125
-				'default' => '',
126
-			]);
127
-			$table->addColumn('getsmsinemail', 'smallint', [
128
-				'notnull' => false,
129
-				'length' => 1,
130
-			]);
131
-                        $table->setPrimaryKey(['id']);
132
-                        $table->addUniqueIndex(['id']);
133
-		}
134
-
135
-		if (!$schema->hasTable('sms_relent_received')) {
136
-			$table = $schema->createTable('sms_relent_received');
137
-			$table->addColumn('id', 'bigint', [
138
-				'autoincrement' => true,
139
-				'notnull' => true,
140
-                                'length' => 11,
141
-                                'unsigned' => true,
142
-			]);
143
-			$table->addColumn('user_id', 'string', [
144
-				'notnull' => true,
145
-				'length' => 64,
146
-				'default' => '',
147
-			]);
148
-			$table->addColumn('message_id', 'string', [
149
-				'notnull' => true,
150
-				'length' => 1024,
151
-				'default' => '',
152
-			]);
153
-			$table->addColumn('date', 'datetime', [
154
-				'notnull' => true,
155
-			]);
156
-			$table->addColumn('from', 'string', [
157
-				'notnull' => true,
158
-				'length' => 128,
159
-				'default' => '',
160
-			]);
161
-			$table->addColumn('to', 'string', [
162
-				'notnull' => true,
163
-				'length' => 128,
164
-				'default' => '',
165
-			]);
166
-			$table->addColumn('message', 'string', [
167
-				'notnull' => false,
168
-				'length' => 4000,
169
-				'default' => '',
170
-			]);
171
-                        $table->setPrimaryKey(['id']);
172
-                        $table->addUniqueIndex(['id']);
173
-		} else {
174
-			$table = $schema->getTable('sms_relent_received');
175
-			$table->changeColumn('message', [
176
-                                'notnull' => false,
177
-                                'length' => 4000,
178
-			]);
179
-		}
180
-
181
-		if (!$schema->hasTable('sms_relent_sent')) {
182
-			$table = $schema->createTable('sms_relent_sent');
183
-			$table->addColumn('id', 'bigint', [
184
-				'autoincrement' => true,
185
-				'notnull' => true,
186
-                                'length' => 11,
187
-                                'unsigned' => true,
188
-			]);
189
-			$table->addColumn('user_id', 'string', [
190
-				'notnull' => true,
191
-				'length' => 64,
192
-				'default' => '',
193
-			]);
194
-			$table->addColumn('message_id', 'string', [
195
-				'notnull' => true,
196
-				'length' => 1024,
197
-				'default' => '',
198
-			]);
199
-			$table->addColumn('date', 'datetime', [
200
-				'notnull' => true,
201
-			]);
202
-			$table->addColumn('from', 'string', [
203
-				'notnull' => true,
204
-				'length' => 128,
205
-				'default' => '',
206
-			]);
207
-			$table->addColumn('to', 'string', [
208
-				'notnull' => true,
209
-				'length' => 128,
210
-				'default' => '',
211
-			]);
212
-			$table->addColumn('network ', 'string', [
213
-				'notnull' => false,
214
-				'length' => 64,
215
-				'default' => '',
216
-			]);
217
-			$table->addColumn('price', 'string', [
218
-				'notnull' => false,
219
-				'length' => 64,
220
-				'default' => '',
221
-			]);
222
-			$table->addColumn('status', 'string', [
223
-				'notnull' => false,
224
-				'length' => 1024,
225
-				'default' => '',
226
-			]);
227
-			$table->addColumn('deliveryreceipt', 'string', [
228
-				'notnull' => false,
229
-				'length' => 64,
230
-				'default' => '',
231
-			]);
232
-			$table->addColumn('message', 'string', [
233
-				'notnull' => false,
234
-				'length' => 4000,
235
-				'default' => '',
236
-			]);
237
-                        $table->setPrimaryKey(['id']);
238
-                        $table->addUniqueIndex(['id']);
239
-		} else {
240
-			$table = $schema->getTable('sms_relent_sent');
241
-			$table->changeColumn('message', [
242
-                                'notnull' => false,
243
-                                'length' => 4000,
244
-                        ]);
245
-		}
246
-
247
-		return $schema;
248
-	}
249
-}
Browse code

added CHANGELOG.txt appinfo/info.xml appinfo/signature.json lib/Migration/Version105Date20220509201842.php lib/Service/SmsrelentlessService.php lib/Controller/AuthorApiController.php lib/Controller/SmsrelentlessController.php js/settings.js

DoubleBastionAdmin authored on 09/05/2022 15:12:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,249 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+namespace OCA\SMSRelentless\Migration;
27
+
28
+use OCP\DB\Types;
29
+use OCP\DB\ISchemaWrapper;
30
+use OCP\Migration\IOutput;
31
+use OCP\Migration\SimpleMigrationStep;
32
+
33
+
34
+class Version105Date20220509201842 extends SimpleMigrationStep {
35
+	/**
36
+	 * @param IOutput $output
37
+	 * @param \Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
38
+	 * @param array $options
39
+	 * @return null|ISchemaWrapper
40
+	 */
41
+	public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
42
+		/** @var ISchemaWrapper $schema */
43
+		$schema = $schemaClosure();
44
+
45
+		if (!$schema->hasTable('sms_relent_settings')) {
46
+			$table = $schema->createTable('sms_relent_settings');
47
+			$table->addColumn('id', 'bigint', [
48
+				'autoincrement' => true,
49
+				'notnull' => true,
50
+                                'length' => 11,
51
+                                'unsigned' => true,
52
+			]);
53
+			$table->addColumn('user_id', 'string', [
54
+				'notnull' => true,
55
+				'length' => 128,
56
+				'default' => '',
57
+			]);
58
+			$table->addColumn('telapi_key', 'string', [
59
+				'notnull' => true,
60
+				'length' => 1024,
61
+				'default' => '',
62
+			]);
63
+			$table->addColumn('tel_pub_key', 'string', [
64
+				'notnull' => true,
65
+				'length' => 1024,
66
+				'default' => '',
67
+			]);
68
+			$table->addColumn('telapi_url_rec', 'string', [
69
+				'notnull' => true,
70
+				'length' => 1024,
71
+				'default' => '',
72
+			]);
73
+			$table->addColumn('telapi_url', 'string', [
74
+				'notnull' => true,
75
+				'length' => 1024,
76
+				'default' => '',
77
+			]);
78
+			$table->addColumn('messaging_profile_id', 'string', [
79
+				'notnull' => true,
80
+				'length' => 1024,
81
+				'default' => '',
82
+			]);
83
+			$table->addColumn('nexapi_key', 'string', [
84
+				'notnull' => true,
85
+				'length' => 1024,
86
+				'default' => '',
87
+			]);
88
+			$table->addColumn('nexapi_secret', 'string', [
89
+				'notnull' => true,
90
+				'length' => 1024,
91
+				'default' => '',
92
+			]);
93
+			$table->addColumn('nexapi_url_rec', 'string', [
94
+				'notnull' => true,
95
+				'length' => 1024,
96
+				'default' => '',
97
+			]);
98
+			$table->addColumn('nexapi_url', 'string', [
99
+				'notnull' => true,
100
+				'length' => 1024,
101
+				'default' => '',
102
+			]);
103
+			$table->addColumn('tel_sender_name', 'string', [
104
+				'notnull' => false,
105
+				'length' => 1024,
106
+				'default' => '',
107
+			]);
108
+			$table->addColumn('nex_sender_name', 'string', [
109
+				'notnull' => false,
110
+				'length' => 1024,
111
+				'default' => '',
112
+			]);
113
+			$table->addColumn('messagesperpage', 'integer', [
114
+				'notnull' => false,
115
+				'length' => 11,
116
+                                'unsigned' => true,
117
+			]);
118
+			$table->addColumn('get_notify', 'smallint', [
119
+				'notnull' => false,
120
+				'length' => 1,
121
+			]);
122
+			$table->addColumn('notification_email', 'string', [
123
+				'notnull' => false,
124
+				'length' => 1024,
125
+				'default' => '',
126
+			]);
127
+			$table->addColumn('getsmsinemail', 'smallint', [
128
+				'notnull' => false,
129
+				'length' => 1,
130
+			]);
131
+                        $table->setPrimaryKey(['id']);
132
+                        $table->addUniqueIndex(['id']);
133
+		}
134
+
135
+		if (!$schema->hasTable('sms_relent_received')) {
136
+			$table = $schema->createTable('sms_relent_received');
137
+			$table->addColumn('id', 'bigint', [
138
+				'autoincrement' => true,
139
+				'notnull' => true,
140
+                                'length' => 11,
141
+                                'unsigned' => true,
142
+			]);
143
+			$table->addColumn('user_id', 'string', [
144
+				'notnull' => true,
145
+				'length' => 64,
146
+				'default' => '',
147
+			]);
148
+			$table->addColumn('message_id', 'string', [
149
+				'notnull' => true,
150
+				'length' => 1024,
151
+				'default' => '',
152
+			]);
153
+			$table->addColumn('date', 'datetime', [
154
+				'notnull' => true,
155
+			]);
156
+			$table->addColumn('from', 'string', [
157
+				'notnull' => true,
158
+				'length' => 128,
159
+				'default' => '',
160
+			]);
161
+			$table->addColumn('to', 'string', [
162
+				'notnull' => true,
163
+				'length' => 128,
164
+				'default' => '',
165
+			]);
166
+			$table->addColumn('message', 'string', [
167
+				'notnull' => false,
168
+				'length' => 4000,
169
+				'default' => '',
170
+			]);
171
+                        $table->setPrimaryKey(['id']);
172
+                        $table->addUniqueIndex(['id']);
173
+		} else {
174
+			$table = $schema->getTable('sms_relent_received');
175
+			$table->changeColumn('message', [
176
+                                'notnull' => false,
177
+                                'length' => 4000,
178
+			]);
179
+		}
180
+
181
+		if (!$schema->hasTable('sms_relent_sent')) {
182
+			$table = $schema->createTable('sms_relent_sent');
183
+			$table->addColumn('id', 'bigint', [
184
+				'autoincrement' => true,
185
+				'notnull' => true,
186
+                                'length' => 11,
187
+                                'unsigned' => true,
188
+			]);
189
+			$table->addColumn('user_id', 'string', [
190
+				'notnull' => true,
191
+				'length' => 64,
192
+				'default' => '',
193
+			]);
194
+			$table->addColumn('message_id', 'string', [
195
+				'notnull' => true,
196
+				'length' => 1024,
197
+				'default' => '',
198
+			]);
199
+			$table->addColumn('date', 'datetime', [
200
+				'notnull' => true,
201
+			]);
202
+			$table->addColumn('from', 'string', [
203
+				'notnull' => true,
204
+				'length' => 128,
205
+				'default' => '',
206
+			]);
207
+			$table->addColumn('to', 'string', [
208
+				'notnull' => true,
209
+				'length' => 128,
210
+				'default' => '',
211
+			]);
212
+			$table->addColumn('network ', 'string', [
213
+				'notnull' => false,
214
+				'length' => 64,
215
+				'default' => '',
216
+			]);
217
+			$table->addColumn('price', 'string', [
218
+				'notnull' => false,
219
+				'length' => 64,
220
+				'default' => '',
221
+			]);
222
+			$table->addColumn('status', 'string', [
223
+				'notnull' => false,
224
+				'length' => 1024,
225
+				'default' => '',
226
+			]);
227
+			$table->addColumn('deliveryreceipt', 'string', [
228
+				'notnull' => false,
229
+				'length' => 64,
230
+				'default' => '',
231
+			]);
232
+			$table->addColumn('message', 'string', [
233
+				'notnull' => false,
234
+				'length' => 4000,
235
+				'default' => '',
236
+			]);
237
+                        $table->setPrimaryKey(['id']);
238
+                        $table->addUniqueIndex(['id']);
239
+		} else {
240
+			$table = $schema->getTable('sms_relent_sent');
241
+			$table->changeColumn('message', [
242
+                                'notnull' => false,
243
+                                'length' => 4000,
244
+                        ]);
245
+		}
246
+
247
+		return $schema;
248
+	}
249
+}