Diff
checker
텍스트
텍스트
이미지
문서
Excel
폴더
Legal
Enterprise
데스크톱
요금제
로그인
데스크톱 앱 다운로드
텍스트 비교
두 텍스트 파일의 차이점을 찾아보세요
도구
기록
실시간 편집
변경 없는 행 숨기기
줄바꿈 비활성화
레이아웃
나란히 보기
합쳐 보기
비교 단위
스마트
단어
글자
구문 강조
언어 선택
제외
텍스트 변환
첫 변경으로
수정
Diffchecker Desktop
가장 안전하게 Diffchecker를 사용하는 방법. 데스크톱 앱을 사용하면 비교 데이터가 외부로 전송되지 않습니다!
데스크톱 앱 받기
migration.load.difff
생성일
2년 전
비교 결과 만료 없음
초기화
내보내기
공유
설명
0 삭제
행
총
삭제
글자
총
삭제
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
44 행
복사
12 추가
행
총
추가
글자
총
추가
이 기능을 계속 사용하려면 업그레이드해 주세요
Diff
checker
Pro
요금제 보기
44 행
복사
LOAD DATABASE
LOAD DATABASE
FROM mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_address }}/{{ source_schema }}
FROM mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_address }}/{{ source_schema }}
INTO pgsql://{{ pg_user }}:{{ pg_password }}@{{ postgres_address }}/{{ target_schema }}
INTO pgsql://{{ pg_user }}:{{ pg_password }}@{{ postgres_address }}/{{ target_schema }}
WITH data only,
WITH data only,
workers = 8, concurrency = 1,
workers = 8, concurrency = 1,
multiple readers per thread, rows per range = 10000,
multiple readers per thread, rows per range = 10000,
prefetch rows = 10000, batch rows = 2500,
prefetch rows = 10000, batch rows = 2500,
create no tables, create no indexes,
create no tables, create no indexes,
preserve index names
preserve index names
SET PostgreSQL PARAMETERS
SET PostgreSQL PARAMETERS
maintenance_work_mem to '128MB',
maintenance_work_mem to '128MB',
work_mem to '12MB'
work_mem to '12MB'
SET MySQL PARAMETERS
SET MySQL PARAMETERS
net_read_timeout = '120',
net_read_timeout = '120',
net_write_timeout = '120'
net_write_timeout = '120'
CAST column Channels.Type to "channel_type" drop typemod,
CAST column Channels.Type to "channel_type" drop typemod,
column Teams.Type to "team_type" drop typemod,
column Teams.Type to "team_type" drop typemod,
column UploadSessions.Type to "upload_session_type" drop typemod,
column UploadSessions.Type to "upload_session_type" drop typemod,
column ChannelBookmarks.Type to "channel_bookmark_type" drop typemod,
column ChannelBookmarks.Type to "channel_bookmark_type" drop typemod,
column Drafts.Priority to text,
column Drafts.Priority to text,
type int when (= precision 11) to integer drop typemod,
type int when (= precision 11) to integer drop typemod,
type bigint when (= precision 20) to bigint drop typemod,
type bigint when (= precision 20) to bigint drop typemod,
type text to varchar drop typemod,
type text to varchar drop typemod,
type tinyint when (<= precision 4) to boolean using tinyint-to-boolean,
type tinyint when (<= precision 4) to boolean using tinyint-to-boolean,
type json to jsonb drop typemod
type json to jsonb drop typemod
EXCLUDING TABLE NAMES MATCHING ~<IR_>, ~<focalboard>, 'schema_migrations', 'db_migrations', 'db_lock',
EXCLUDING TABLE NAMES MATCHING ~<IR_>, ~<focalboard>, 'schema_migrations', 'db_migrations', 'db_lock',
'Configurations', 'ConfigurationFiles', 'db_config_migrations'
'Configurations', 'ConfigurationFiles', 'db_config_migrations'
BEFORE LOAD DO
BEFORE LOAD DO
복사
복사됨
복사
복사됨
$$ ALTER SCHEMA public RENAME TO
{{ source_schema }}
; $$,
$$ ALTER SCHEMA public RENAME TO
"
{{ source_schema }}
"
; $$,
$$ TRUNCATE TABLE
{{ source_schema }}
.systems; $$,
$$ TRUNCATE TABLE
"
{{ source_schema }}
"
.systems; $$,
$$ DROP INDEX IF EXISTS
{{ source_schema }}
.idx_posts_message_txt; $$,
$$ DROP INDEX IF EXISTS
"
{{ source_schema }}
"
.idx_posts_message_txt; $$,
$$ DROP INDEX IF EXISTS
{{ source_schema }}
.idx_fileinfo_content_txt; $$
$$ DROP INDEX IF EXISTS
"
{{ source_schema }}
"
.idx_fileinfo_content_txt; $$
AFTER LOAD DO
AFTER LOAD DO
복사
복사됨
복사
복사됨
$$ UPDATE
{{ source_schema }}
.db_migrations set name='add_createat_to_teamembers' where version=92; $$,
$$ UPDATE
"
{{ source_schema }}
"
.db_migrations set name='add_createat_to_teamembers' where version=92; $$,
$$ ALTER SCHEMA
{{ source_schema }}
RENAME TO public; $$,
$$ ALTER SCHEMA
"
{{ source_schema }}
"
RENAME TO public; $$,
$$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$,
$$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$,
$$ ALTER USER {{ pg_user }} SET SEARCH_PATH TO 'public'; $$;
$$ ALTER USER {{ pg_user }} SET SEARCH_PATH TO 'public'; $$;
저장된 비교 결과
원본
파일 열기
LOAD DATABASE FROM mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_address }}/{{ source_schema }} INTO pgsql://{{ pg_user }}:{{ pg_password }}@{{ postgres_address }}/{{ target_schema }} WITH data only, workers = 8, concurrency = 1, multiple readers per thread, rows per range = 10000, prefetch rows = 10000, batch rows = 2500, create no tables, create no indexes, preserve index names SET PostgreSQL PARAMETERS maintenance_work_mem to '128MB', work_mem to '12MB' SET MySQL PARAMETERS net_read_timeout = '120', net_write_timeout = '120' CAST column Channels.Type to "channel_type" drop typemod, column Teams.Type to "team_type" drop typemod, column UploadSessions.Type to "upload_session_type" drop typemod, column ChannelBookmarks.Type to "channel_bookmark_type" drop typemod, column Drafts.Priority to text, type int when (= precision 11) to integer drop typemod, type bigint when (= precision 20) to bigint drop typemod, type text to varchar drop typemod, type tinyint when (<= precision 4) to boolean using tinyint-to-boolean, type json to jsonb drop typemod EXCLUDING TABLE NAMES MATCHING ~<IR_>, ~<focalboard>, 'schema_migrations', 'db_migrations', 'db_lock', 'Configurations', 'ConfigurationFiles', 'db_config_migrations' BEFORE LOAD DO $$ ALTER SCHEMA public RENAME TO {{ source_schema }}; $$, $$ TRUNCATE TABLE {{ source_schema }}.systems; $$, $$ DROP INDEX IF EXISTS {{ source_schema }}.idx_posts_message_txt; $$, $$ DROP INDEX IF EXISTS {{ source_schema }}.idx_fileinfo_content_txt; $$ AFTER LOAD DO $$ UPDATE {{ source_schema }}.db_migrations set name='add_createat_to_teamembers' where version=92; $$, $$ ALTER SCHEMA {{ source_schema }} RENAME TO public; $$, $$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$, $$ ALTER USER {{ pg_user }} SET SEARCH_PATH TO 'public'; $$;
수정본
파일 열기
LOAD DATABASE FROM mysql://{{ mysql_user }}:{{ mysql_password }}@{{ mysql_address }}/{{ source_schema }} INTO pgsql://{{ pg_user }}:{{ pg_password }}@{{ postgres_address }}/{{ target_schema }} WITH data only, workers = 8, concurrency = 1, multiple readers per thread, rows per range = 10000, prefetch rows = 10000, batch rows = 2500, create no tables, create no indexes, preserve index names SET PostgreSQL PARAMETERS maintenance_work_mem to '128MB', work_mem to '12MB' SET MySQL PARAMETERS net_read_timeout = '120', net_write_timeout = '120' CAST column Channels.Type to "channel_type" drop typemod, column Teams.Type to "team_type" drop typemod, column UploadSessions.Type to "upload_session_type" drop typemod, column ChannelBookmarks.Type to "channel_bookmark_type" drop typemod, column Drafts.Priority to text, type int when (= precision 11) to integer drop typemod, type bigint when (= precision 20) to bigint drop typemod, type text to varchar drop typemod, type tinyint when (<= precision 4) to boolean using tinyint-to-boolean, type json to jsonb drop typemod EXCLUDING TABLE NAMES MATCHING ~<IR_>, ~<focalboard>, 'schema_migrations', 'db_migrations', 'db_lock', 'Configurations', 'ConfigurationFiles', 'db_config_migrations' BEFORE LOAD DO $$ ALTER SCHEMA public RENAME TO "{{ source_schema }}"; $$, $$ TRUNCATE TABLE "{{ source_schema }}".systems; $$, $$ DROP INDEX IF EXISTS "{{ source_schema }}".idx_posts_message_txt; $$, $$ DROP INDEX IF EXISTS "{{ source_schema }}".idx_fileinfo_content_txt; $$ AFTER LOAD DO $$ UPDATE "{{ source_schema }}".db_migrations set name='add_createat_to_teamembers' where version=92; $$, $$ ALTER SCHEMA "{{ source_schema }}" RENAME TO public; $$, $$ SELECT pg_catalog.set_config('search_path', '"$user", public', false); $$, $$ ALTER USER {{ pg_user }} SET SEARCH_PATH TO 'public'; $$;
비교하기