Diff
checker
テキスト
テキスト
画像
ドキュメント
Excel
フォルダ
Legal
Enterprise
デスクトップ
料金
ログイン
Diffchecker デスクトップのダウンロード
テキスト比較
2 つのテキスト ファイルの違いを見つける
ツール
履歴
ライブエディター
未変更行を折りたたむ
折り返しなし
レイアウト
分割
統合
比較精度
スマート
単語
文字
シンタックスハイライト
構文を選択
無視
テキスト変換
最初の差分へ移動
入力を編集
Diffchecker Desktop
Diffcheckerを実行する最も安全な方法。Diffchecker Desktopアプリを入手:あなたの差分はコンピューターから出ることはありません!
Desktopを入手
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'; $$;
違いを見つける