Skip to content

Commit

Permalink
closes RED-90 - migrates rodando do zero novamente
Browse files Browse the repository at this point in the history
  • Loading branch information
sombriks committed Jul 20, 2024
1 parent d7056f4 commit 57ce6f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
export const up = async (knex) =>
knex.schema.table("movimentacao", (tb) => {
tb.dropNullable("categoria_id");
tb.dropForeign("categoria_id");
tb.foreign("categoria_id").references("categoria.id").onDelete("cascade");
tb.boolean("interna")
.defaultTo(false)
Expand All @@ -18,5 +19,7 @@ export const up = async (knex) =>
export const down = async (knex) =>
knex.schema.table("movimentacao", (tb) => {
tb.setNullable("categoria_id");
tb.dropForeign("categoria_id");
tb.foreign("categoria_id").references("categoria.id").onDelete("set null");
tb.dropColumn("interna");
});
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
# version: '3.8'

services:
db:
image: postgres:16.1-alpine3.18
Expand Down
7 changes: 6 additions & 1 deletion web-app-vue/src/pages/movimentacao/editar-movimentacao.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
prepend-inner-icon="mdi-cash-100"
/>
<!-- movEdit.categoria_id-->
<categoria-autocomplete class="item" v-model="movForm.categoria_id" />
<categoria-autocomplete
class="item"
v-model="movForm.categoria_id"
:rules="[requiredRule]"
/>
<!-- movEdit.conta_id-->
<conta-autocomplete class="item" v-model="movForm.conta_id" :rules="[requiredRule]" />
<!-- movEdit.descricao-->
Expand Down Expand Up @@ -97,6 +101,7 @@ import { numberRule, requiredRule } from '@/services/basic-rules'
import ChipDate from '@/shared/chip-date.vue'
import ContaAutocomplete from '@/shared/conta-autocomplete.vue'
import CategoriaAutocomplete from '@/shared/categoria-autocomplete.vue'
const props = defineProps(['movimentacao'])
const contaState = useContaStore()
Expand Down

0 comments on commit 57ce6f4

Please sign in to comment.