diff --git a/appinfo/database.xml b/appinfo/database.xml deleted file mode 100644 index a14720b..0000000 --- a/appinfo/database.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - *dbname* - true - false - utf8 - - *dbprefix*pdfdraw_items - - - file_id - text - true - - - page - integer - true - - - name - text - true - - - data - clob - true - - - fileid_index - - file_id - ascending - - - - fileid_name_index - true - true - - file_id - ascending - - - name - ascending - - - -
-
diff --git a/lib/Migration/Version1000Date20211122150107.php b/lib/Migration/Version1000Date20211122150107.php new file mode 100644 index 0000000..a3561e4 --- /dev/null +++ b/lib/Migration/Version1000Date20211122150107.php @@ -0,0 +1,41 @@ +hasTable('pdfdraw_items')) { + $table = $schema->createTable('pdfdraw_items'); + $table->addColumn('file_id', 'string', [ + 'notnull' => true, + ]); + $table->addColumn('page', 'integer', [ + 'notnull' => true, + ]); + $table->addColumn('name', 'string', [ + 'notnull' => true, + ]); + $table->addColumn('data', 'text', [ + 'notnull' => true, + ]); + $table->setPrimaryKey(['file_id', 'name']); + $table->addIndex(['file_id'], 'fileid_index'); + } + return $schema; + } + +}