Merge pull request #96 from nextcloud/fix-db-columns

Move text fields to clob
This commit is contained in:
Julius Härtl
2017-04-29 13:20:17 +02:00
committed by GitHub
8 changed files with 18 additions and 17 deletions

View File

@@ -19,7 +19,7 @@
<name>title</name> <name>title</name>
<type>text</type> <type>text</type>
<notnull>true</notnull> <notnull>true</notnull>
<length>64</length> <length>100</length>
</field> </field>
<field> <field>
<name>owner</name> <name>owner</name>
@@ -55,7 +55,7 @@
<name>title</name> <name>title</name>
<type>text</type> <type>text</type>
<notnull>true</notnull> <notnull>true</notnull>
<length>64</length> <length>100</length>
</field> </field>
<field> <field>
<name>board_id</name> <name>board_id</name>
@@ -97,14 +97,13 @@
<field> <field>
<name>title</name> <name>title</name>
<type>text</type> <type>text</type>
<length>100</length>
<notnull>true</notnull> <notnull>true</notnull>
<length>64</length>
</field> </field>
<field> <field>
<name>description</name> <name>description</name>
<type>text</type> <type>clob</type>
<notnull>false</notnull> <notnull>false</notnull>
<length>4096</length>
</field> </field>
<field> <field>
<name>stack_id</name> <name>stack_id</name>
@@ -187,7 +186,7 @@
<name>title</name> <name>title</name>
<type>text</type> <type>text</type>
<notnull>true</notnull> <notnull>true</notnull>
<length>64</length> <length>100</length>
</field> </field>
<field> <field>
<name>card_id</name> <name>card_id</name>
@@ -239,7 +238,7 @@
<name>title</name> <name>title</name>
<type>text</type> <type>text</type>
<notnull>false</notnull> <notnull>false</notnull>
<length>64</length> <length>100</length>
</field> </field>
<field> <field>
<name>color</name> <name>color</name>

View File

@@ -16,7 +16,7 @@
💥 This is still alpha software: it may not be stable enough for production! 💥 This is still alpha software: it may not be stable enough for production!
</description> </description>
<version>0.1.2</version> <version>0.1.2.1</version>
<licence>agpl</licence> <licence>agpl</licence>
<author>Julius Härtl</author> <author>Julius Härtl</author>
<namespace>Deck</namespace> <namespace>Deck</namespace>

View File

@@ -418,7 +418,7 @@ button:hover {
*/ */
#card-header { #card-header {
height: 44px; min-height: 44px;
} }
#card-header h2 { #card-header h2 {

View File

@@ -21,7 +21,8 @@
<input type="text" placeholder="Add a new stack" <input type="text" placeholder="Add a new stack"
ng-focus="status.addStack=true" ng-focus="status.addStack=true"
ng-blur="status.addStack=false" ng-blur="status.addStack=false"
ng-model="newStack.title" required/> ng-model="newStack.title" required
maxlength="100" />
<button class="icon icon-add" style="opacity: {{status.addStack ? 1: 0.5}};" <button class="icon icon-add" style="opacity: {{status.addStack ? 1: 0.5}};"
type="submit"></button> type="submit"></button>
</form> </form>
@@ -40,7 +41,7 @@
<input type="text" placeholder="Add a new stack" <input type="text" placeholder="Add a new stack"
ng-blur="s.status.editStack=false" ng-model="s.title" ng-blur="s.status.editStack=false" ng-model="s.title"
ng-if="s.status.editStack" autofocus-on-insert ng-if="s.status.editStack" autofocus-on-insert
required/> required maxlength="100"/>
</form> </form>
<div class="stack-actions"> <div class="stack-actions">
<button class="icon icon-confirm" ng-if="s.status.editStack" <button class="icon icon-confirm" ng-if="s.status.editStack"
@@ -115,6 +116,7 @@
ng-model="newCard.title" ng-model="newCard.title"
ng-blur="status.addCard[s.id]=false" ng-blur="status.addCard[s.id]=false"
style="color:{{ boardservice.getCurrent().color | textColorFilter }}; border-color:{{ boardservice.getCurrent().color | textColorFilter }};" style="color:{{ boardservice.getCurrent().color | textColorFilter }}; border-color:{{ boardservice.getCurrent().color | textColorFilter }};"
maxlength="100"
required placeholder="<?php p($l->t('Enter a card title')); ?>"/> required placeholder="<?php p($l->t('Enter a card title')); ?>"/>
</h3> </h3>
</form> </form>

View File

@@ -73,7 +73,7 @@
</span> </span>
<span class="label-title" style="background-color:#{{label.color}}; color:{{ textColor(label.color) }}; width:178px;" ng-if="label.edit"> <span class="label-title" style="background-color:#{{label.color}}; color:{{ textColor(label.color) }}; width:178px;" ng-if="label.edit">
<form ng-submit="labelUpdate(label)"> <form ng-submit="labelUpdate(label)">
<input type="text" ng-model="label.title" class="input-inline" style="background-color:#{{label.color}}; color:{{ label.color|textColorFilter }};" autofocus-on-insert /> <input type="text" ng-model="label.title" class="input-inline" style="background-color:#{{label.color}}; color:{{ label.color|textColorFilter }};" autofocus-on-insert maxlength="100"/>
</form> </form>
</span> </span>
<div class="colorselect" ng-if="label.edit"> <div class="colorselect" ng-if="label.edit">
@@ -87,7 +87,7 @@
<li ng-if="status.createLabel"> <li ng-if="status.createLabel">
<form ng-submit="labelCreate(newLabel)"> <form ng-submit="labelCreate(newLabel)">
<span class="label-title" style="background-color:#{{newLabel.color}}; color:{{ textColor(newLabel.color) }}; width:178px;"> <span class="label-title" style="background-color:#{{newLabel.color}}; color:{{ textColor(newLabel.color) }}; width:178px;">
<input type="text" class="input-inline" ng-model="newLabel.title" style="color:{{ newLabel.color|textColorFilter }};" autofocus-on-insert /> <input type="text" class="input-inline" ng-model="newLabel.title" style="color:{{ newLabel.color|textColorFilter }};" autofocus-on-insert maxlength="100" />
</span> </span>
<div class="colorselect"> <div class="colorselect">
<div class="color" ng-repeat="c in defaultColors" style="background-color:#{{ c }};" ng-click="newLabel.color=c" ng-class="{'selected': (c == newLabel.color) }"><br /></div> <div class="color" ng-repeat="c in defaultColors" style="background-color:#{{ c }};" ng-click="newLabel.color=c" ng-class="{'selected': (c == newLabel.color) }"><br /></div>

View File

@@ -33,7 +33,7 @@
class="ng-pristine ng-valid" ng-submit="boardCreate()"> class="ng-pristine ng-valid" ng-submit="boardCreate()">
<input id="newTitle" class="edit ng-valid ng-empty" <input id="newTitle" class="edit ng-valid ng-empty"
type="text" placeholder="<?php p($l->t('New board title')); ?>" type="text" placeholder="<?php p($l->t('New board title')); ?>"
autofocus-on-insert ng-model="newBoard.title"> autofocus-on-insert ng-model="newBoard.title" maxlength="100">
<div class="colorselect"> <div class="colorselect">
<div class="color" ng-repeat="c in colors" <div class="color" ng-repeat="c in colors"
style="background-color:#{{ c }};" style="background-color:#{{ c }};"

View File

@@ -13,7 +13,7 @@
<input class="input-inline" type="text" ng-if="status.cardRename" <input class="input-inline" type="text" ng-if="status.cardRename"
ng-model="cardservice.getCurrent().title" ng-model="cardservice.getCurrent().title"
ng-blur="cardRename(cardservice.getCurrent())" ng-blur="cardRename(cardservice.getCurrent())"
autofocus-on-insert required> autofocus-on-insert required maxlength="100">
</form> </form>
<div ng-click="cardRenameShow()" ng-show="!status.cardRename"> <div ng-click="cardRenameShow()" ng-show="!status.cardRename">
{{ cardservice.getCurrent().title }} {{ cardservice.getCurrent().title }}

View File

@@ -24,7 +24,7 @@
</div> </div>
<div class="app-navigation-entry-edit" ng-show="b.status.edit"> <div class="app-navigation-entry-edit" ng-show="b.status.edit">
<form ng-disabled="isAddingList" class="ng-pristine ng-valid" ng-submit="boardUpdate(b)"> <form ng-disabled="isAddingList" class="ng-pristine ng-valid" ng-submit="boardUpdate(b)">
<input id="newTitle" class="edit ng-valid ng-empty" type="text" autofocus-on-insert ng-model="b.title"> <input id="newTitle" class="edit ng-valid ng-empty" type="text" autofocus-on-insert ng-model="b.title" maxlength="100">
<input type="submit" value="" class="action icon-checkmark svg"> <input type="submit" value="" class="action icon-checkmark svg">
<div class="colorselect"> <div class="colorselect">
<div class="color" ng-repeat="c in colors" style="background-color:#{{ c }};" ng-click="b.color=c" ng-class="{'selected': (c == b.color) }"><br /></div> <div class="color" ng-repeat="c in colors" style="background-color:#{{ c }};" ng-click="b.color=c" ng-class="{'selected': (c == b.color) }"><br /></div>
@@ -39,7 +39,7 @@
</a> </a>
<div class="app-navigation-entry-edit" ng-if="status.addBoard"> <div class="app-navigation-entry-edit" ng-if="status.addBoard">
<form ng-disabled="isAddingList" class="ng-pristine ng-valid" ng-submit="boardCreate()"> <form ng-disabled="isAddingList" class="ng-pristine ng-valid" ng-submit="boardCreate()">
<input id="newTitle" class="edit ng-valid ng-empty" type="text" placeholder="<?php p($l->t('Board title')); ?>" autofocus-on-insert ng-model="newBoard.title"> <input id="newTitle" class="edit ng-valid ng-empty" type="text" placeholder="<?php p($l->t('Board title')); ?>" autofocus-on-insert ng-model="newBoard.title" maxlength="100">
<input type="submit" value="" class="action icon-checkmark svg"> <input type="submit" value="" class="action icon-checkmark svg">
<div class="colorselect"> <div class="colorselect">
<div class="color" ng-repeat="c in colors" style="background-color:#{{ c }};" ng-click="selectColor(c)" ng-class="{'selected': (c == newBoard.color) }"><br /></div> <div class="color" ng-repeat="c in colors" style="background-color:#{{ c }};" ng-click="selectColor(c)" ng-class="{'selected': (c == newBoard.color) }"><br /></div>