Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero functional changes, just renumbering (but not reordering) #112

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 48 additions & 48 deletions migration/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
pub use sea_orm_migration::prelude::*;

mod m0000010_create_sbom;
mod m0000011_create_vulnerability;
mod m0000030_create_advisory;
pub mod m0000032_create_advisory_vulnerability;
mod m0000040_create_package;
mod m0000042_create_package_version;
mod m0000044_create_qualified_package;
mod m0000046_create_package_version_range;
mod m0000047_create_affected_package_version_range;
mod m0000048_create_fixed_package_version;
mod m0000049_create_not_affected_package_version;
mod m0000050_create_package_qualifier;
mod m0000030_create_sbom;
mod m0000040_create_vulnerability;
mod m0000060_create_advisory;
mod m0000070_create_cwe;
mod m0000180_sbom_describes_cpe;
mod m0000190_sbom_describes_package;
mod m0000200_create_relationship;
mod m0000210_create_package_relates_to_package;
pub mod m0000090_create_advisory_vulnerability;
mod m0000100_create_package;
mod m0000120_create_package_version;
mod m0000130_create_qualified_package;
mod m0000140_create_package_version_range;
mod m0000150_create_affected_package_version_range;
mod m0000160_create_fixed_package_version;
mod m0000170_create_not_affected_package_version;
mod m0000180_create_package_qualifier;
mod m0000190_sbom_describes_cpe;
mod m0000200_sbom_describes_package;
mod m0000210_create_relationship;
mod m0000220_create_package_relates_to_package;

mod m0000001_create_cvss3_enums;
mod m0000002_create_cvss4_enums;
mod m0000012_create_vulnerability_description;
mod m0000033_create_cvss3;
mod m0000034_create_cvss4;
mod m0000035_create_cpe;
mod m0000220_create_qualified_package_transitive_function;
mod m0000230_create_importer;
mod m0000010_create_cvss3_enums;
mod m0000020_create_cvss4_enums;
mod m0000050_create_vulnerability_description;
mod m0000070_create_cvss3;
mod m0000080_create_cvss4;
mod m0000110_create_cpe;
mod m0000230_create_qualified_package_transitive_function;
mod m0000240_create_importer;

pub struct Migrator;

#[async_trait::async_trait]
impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![
Box::new(m0000001_create_cvss3_enums::Migration),
Box::new(m0000002_create_cvss4_enums::Migration),
Box::new(m0000010_create_sbom::Migration),
Box::new(m0000011_create_vulnerability::Migration),
Box::new(m0000012_create_vulnerability_description::Migration),
Box::new(m0000030_create_advisory::Migration),
Box::new(m0000033_create_cvss3::Migration),
Box::new(m0000034_create_cvss4::Migration),
Box::new(m0000032_create_advisory_vulnerability::Migration),
Box::new(m0000040_create_package::Migration),
Box::new(m0000035_create_cpe::Migration),
Box::new(m0000042_create_package_version::Migration),
Box::new(m0000044_create_qualified_package::Migration),
Box::new(m0000046_create_package_version_range::Migration),
Box::new(m0000047_create_affected_package_version_range::Migration),
Box::new(m0000048_create_fixed_package_version::Migration),
Box::new(m0000049_create_not_affected_package_version::Migration),
Box::new(m0000050_create_package_qualifier::Migration),
Box::new(m0000180_sbom_describes_cpe::Migration),
Box::new(m0000190_sbom_describes_package::Migration),
Box::new(m0000200_create_relationship::Migration),
Box::new(m0000210_create_package_relates_to_package::Migration),
Box::new(m0000220_create_qualified_package_transitive_function::Migration),
Box::new(m0000230_create_importer::Migration),
Box::new(m0000010_create_cvss3_enums::Migration),
Box::new(m0000020_create_cvss4_enums::Migration),
Box::new(m0000030_create_sbom::Migration),
Box::new(m0000040_create_vulnerability::Migration),
Box::new(m0000050_create_vulnerability_description::Migration),
Box::new(m0000060_create_advisory::Migration),
Box::new(m0000070_create_cvss3::Migration),
Box::new(m0000080_create_cvss4::Migration),
Box::new(m0000090_create_advisory_vulnerability::Migration),
Box::new(m0000100_create_package::Migration),
Box::new(m0000110_create_cpe::Migration),
Box::new(m0000120_create_package_version::Migration),
Box::new(m0000130_create_qualified_package::Migration),
Box::new(m0000140_create_package_version_range::Migration),
Box::new(m0000150_create_affected_package_version_range::Migration),
Box::new(m0000160_create_fixed_package_version::Migration),
Box::new(m0000170_create_not_affected_package_version::Migration),
Box::new(m0000180_create_package_qualifier::Migration),
Box::new(m0000190_sbom_describes_cpe::Migration),
Box::new(m0000200_sbom_describes_package::Migration),
Box::new(m0000210_create_relationship::Migration),
Box::new(m0000220_create_package_relates_to_package::Migration),
Box::new(m0000230_create_qualified_package_transitive_function::Migration),
Box::new(m0000240_create_importer::Migration),
]
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000011_create_vulnerability::Vulnerability;
use crate::m0000032_create_advisory_vulnerability::AdvisoryVulnerability;
use crate::m0000040_create_vulnerability::Vulnerability;
use crate::m0000090_create_advisory_vulnerability::AdvisoryVulnerability;
use sea_orm_migration::prelude::*;

use crate::Now;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::m0000001_create_cvss3_enums::{
use crate::m0000010_create_cvss3_enums::{
Cvss3A, Cvss3Ac, Cvss3Av, Cvss3C, Cvss3I, Cvss3Pr, Cvss3S, Cvss3Ui,
};
use crate::m0000030_create_advisory::Advisory;
use crate::m0000060_create_advisory::Advisory;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use crate::m0000002_create_cvss4_enums::{
use crate::m0000020_create_cvss4_enums::{
Cvss4Ac, Cvss4At, Cvss4Av, Cvss4Pr, Cvss4Sa, Cvss4Sc, Cvss4Si, Cvss4Ui, Cvss4Va, Cvss4Vc,
Cvss4Vi,
};
use crate::m0000030_create_advisory::Advisory;
use crate::m0000060_create_advisory::Advisory;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000011_create_vulnerability::Vulnerability;
use crate::m0000030_create_advisory::Advisory;
use crate::m0000040_create_vulnerability::Vulnerability;
use crate::m0000060_create_advisory::Advisory;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::m0000040_create_package::Package;
use crate::m0000100_create_package::Package;
use sea_orm_migration::prelude::*;

use crate::Now;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::m0000042_create_package_version::PackageVersion;
use crate::m0000120_create_package_version::PackageVersion;
use sea_orm_migration::prelude::*;

use crate::Now;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::m0000040_create_package::Package;
use crate::m0000100_create_package::Package;
use sea_orm_migration::prelude::*;

use crate::Now;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000030_create_advisory::Advisory;
use crate::m0000046_create_package_version_range::PackageVersionRange;
use crate::m0000060_create_advisory::Advisory;
use crate::m0000140_create_package_version_range::PackageVersionRange;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000030_create_advisory::Advisory;
use crate::m0000042_create_package_version::PackageVersion;
use crate::m0000060_create_advisory::Advisory;
use crate::m0000120_create_package_version::PackageVersion;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000030_create_advisory::Advisory;
use crate::m0000042_create_package_version::PackageVersion;
use crate::m0000060_create_advisory::Advisory;
use crate::m0000120_create_package_version::PackageVersion;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::m0000044_create_qualified_package::QualifiedPackage;
use crate::m0000130_create_qualified_package::QualifiedPackage;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000010_create_sbom::Sbom;
use crate::m0000035_create_cpe::Cpe;
use crate::m0000030_create_sbom::Sbom;
use crate::m0000110_create_cpe::Cpe;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::m0000010_create_sbom::Sbom;
use crate::m0000044_create_qualified_package::QualifiedPackage;
use crate::m0000030_create_sbom::Sbom;
use crate::m0000130_create_qualified_package::QualifiedPackage;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::m0000010_create_sbom::Sbom;
use crate::m0000044_create_qualified_package::QualifiedPackage;
use crate::m0000200_create_relationship::Relationship;
use crate::m0000030_create_sbom::Sbom;
use crate::m0000130_create_qualified_package::QualifiedPackage;
use crate::m0000210_create_relationship::Relationship;
use sea_orm_migration::prelude::*;

#[derive(DeriveMigrationName)]
Expand Down