-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7bde21e
commit d511c45
Showing
4 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
apps/lenra/priv/repo/migrations/20240713140043_application_deployment_measurement.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule Lenra.Repo.Migrations.ApplicationDeploymentMeasurement do | ||
use Ecto.Migration | ||
|
||
def change do | ||
create table(:application_deployment_measurement) do | ||
add(:user_id, references(:users), null: false) | ||
add(:build_id, references(:builds), null: false) | ||
|
||
add(:start_time, :timestamp, null: false) | ||
add(:end_time, :timestamp) | ||
|
||
add(:duration, :integer) | ||
|
||
timestamps() | ||
end | ||
end | ||
end |