initial commit
This commit is contained in:
commit
c21f569144
37 changed files with 3956 additions and 0 deletions
32
database/migrations/20250414041807_file_mime.sql
Normal file
32
database/migrations/20250414041807_file_mime.sql
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
-- +goose Up
|
||||
-- Diff code generated with pgModeler (PostgreSQL Database Modeler)
|
||||
-- pgModeler version: 1.2.0-alpha1
|
||||
-- Diff date: 2025-04-14 01:18:24
|
||||
-- Source model: dev1
|
||||
-- Database: dev1
|
||||
-- PostgreSQL version: 17.0
|
||||
|
||||
-- [ Diff summary ]
|
||||
-- Dropped objects: 0
|
||||
-- Created objects: 2
|
||||
-- Changed objects: 0
|
||||
|
||||
SET search_path=public,pg_catalog;
|
||||
-- ddl-end --
|
||||
|
||||
|
||||
-- [ Created objects ] --
|
||||
-- object: mime | type: COLUMN --
|
||||
ALTER TABLE public.file ADD COLUMN mime text;
|
||||
-- ddl-end --
|
||||
|
||||
UPDATE public.file SET mime = '';
|
||||
|
||||
ALTER TABLE public.file ALTER COLUMN mime SET NOT NULL;
|
||||
|
||||
|
||||
-- object: message | type: COLUMN --
|
||||
ALTER TABLE public.file ADD COLUMN message varchar(2048);
|
||||
-- ddl-end --
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue