defmodule GitGud.Repo.Migrations.AddUpstreamSyncMode do
use Ecto.Migration
# How a repo's upstream re-sync treats local divergence.
#
# mirror — force-update branches and prune what upstream deleted.
# What an imported repo has always done, and what
# "mirror of upstream" means.
# reconcile — fast-forward what can fast-forward, leave everything
# else alone and report it. The mode an adopted repo
# gets, because it has history of its own.
def change do
alter table(:repositories) do
add :upstream_sync_mode, :string, null: false, default: "mirror"
end
end
end
neiam
/gitgud
Git Gud
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
1
Log in to mark this repository.
668 B · text
History
b868907