GithubHelp home page GithubHelp logo

Comments (14)

PetengDedet avatar PetengDedet commented on July 22, 2024

+1

from indonesia.

uyab avatar uyab commented on July 22, 2024

Tambahkan sebuah kolom dengan nama meta dengan tipe data JSON di tiap-tiap tabel.

from indonesia.

darkcyber avatar darkcyber commented on July 22, 2024

apa tipe data JSON ada di semua versi manajemen database mas?

from indonesia.

uyab avatar uyab commented on July 22, 2024

@darkcyber iya, tidak semua DBMS punya, amannya jadi text saja? Tapi kalau text, tidak bisa memanfaatkan fungsi-fungsi built in JSON column, seperti searching dan virtual column. 🤔

from indonesia.

darkcyber avatar darkcyber commented on July 22, 2024

saya dulu ada kasus mirip, saya buat text tapi input ke db nya harus di serialize dulu, begitupun ketika mau ditampilkan harus di unserialize, tapi gak yakin itu best practice. tapi kalo di generalkan memang seperti itu deh seharusnya.

from indonesia.

Titonu avatar Titonu commented on July 22, 2024

untuk menambahkan data kodepos untuk di table Villages apakah ada opsinya ya?

from indonesia.

uyab avatar uyab commented on July 22, 2024

@Titonu saat ini belum ada, silakan bikin migration dan seeder sendiri

from indonesia.

cacing69 avatar cacing69 commented on July 22, 2024

kalo di siapin table meta kira kira bisa ngga ya mas @uyab ?

indonesia_..
..

indonesia_meta
..

indonesia_has_meta
..

from indonesia.

uyab avatar uyab commented on July 22, 2024

from indonesia.

cacing69 avatar cacing69 commented on July 22, 2024

@uyab berarti di masing masing nambah 1 kolom gitu ya mas, tapi handling buat yang ga support json column jadinya gimana ya mas seprti kata mas di atas

from indonesia.

rizkyarlin avatar rizkyarlin commented on July 22, 2024

soal fungsi built-in json column. kalau di migration-nya dibuatin logic untuk membaca rdbmsnya apa, terus kalau support column nya dibuat json, tapi kalau tdk support dibuat text?

from indonesia.

uyab avatar uyab commented on July 22, 2024

@rizkyarlin defaultnya dibikin text aja kalau gitu, kalau butuh json bisa publish migration + edit sendiri.

from indonesia.

uyab avatar uyab commented on July 22, 2024

Saya biasa memakai library https://github.com/spatie/laravel-schemaless-attributes untuk handling schemaless column

from indonesia.

uyab avatar uyab commented on July 22, 2024

Tq @rizkyarlin

from indonesia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.