strict change column type table postgre from string to int
ALTER TABLE table_name ALTER COLUMN column_name TYPE BIGINT USING (column_name::bigint);
Danang Setya Pramana - Working Memory
This is my working memory when i forgot some command and some code for my work
ALTER TABLE table_name ALTER COLUMN column_name TYPE BIGINT USING (column_name::bigint);
sebelumnya buat .env dan isi connection string untuk postgre POSTGRE_URL="postgresql://postgres:userpassword@localhost:5432/dbname" buat drizzle config import { defineConfig } from "drizzle-kit"; export default defineConfig({ schema: "./src/lib/db/postgresql/schema.ts", out: "./src/lib/drizzle/postgresql", dialect: "postgresql", dbCredentials: {…
karena saya menggunakan jendela saat ini , terpaksa saya menggunakan pg_loader dari docker , pertama ambil packagenya dulu dari remote milik dimitri docker pull ghcr.io/dimitri/pgloader:latest pertama pastikan kalian punya akses…
mengubah privileges user untuk semua tables GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO user; ubah nama field di dalam table ALTER nama_table RENAME COLUMN nama_lama TO nama_baru;…
Before running the command, ensure you have configured your project to support seeding: Define the seed script location In your package.json file, you must specify the command to run your seed script. This…
GRANT CONNECT ON DATABASE mydatabase TO myuser; GRANT USAGE ON SCHEMA public TO myuser; GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA public TO myuser;
1. Perbaiki pip & setuptools dulu Di Terminal, jalankan perintah berikut satu per satu (pakai python3 -m supaya pasti ke interpreter yang benar): bash Copy python3 -m ensurepip --upgrade python3…
The specific path depends on your Mac's processor architecture: Apple Silicon (M1, M2, M3, etc.): /opt/homebrew/etc/mongod.conf Intel Processors: /usr/local/etc/mongod.conf