Move schema back to correct place.
oops
This commit is contained in:
parent
7681079cb1
commit
14de8cd479
@ -1,3 +1,6 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-3.0-Only
|
||||||
|
// Copyright (C) 2024 Luke Harding
|
||||||
|
|
||||||
use std::{env, error};
|
use std::{env, error};
|
||||||
|
|
||||||
use diesel::{Connection, PgConnection};
|
use diesel::{Connection, PgConnection};
|
||||||
@ -5,7 +8,6 @@ use diesel::pg::Pg;
|
|||||||
use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
|
use diesel_migrations::{embed_migrations, EmbeddedMigrations, MigrationHarness};
|
||||||
|
|
||||||
pub mod models;
|
pub mod models;
|
||||||
pub mod schema;
|
|
||||||
|
|
||||||
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("./migrations");
|
pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("./migrations");
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ use diesel::prelude::*;
|
|||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
#[derive(Queryable, Selectable)]
|
#[derive(Queryable, Selectable)]
|
||||||
#[diesel(table_name = crate::db::schema::tasks)]
|
#[diesel(table_name = crate::schema::tasks)]
|
||||||
#[diesel(check_for_backend(diesel::pg::Pg))]
|
#[diesel(check_for_backend(diesel::pg::Pg))]
|
||||||
pub struct Task {
|
pub struct Task {
|
||||||
pub id: Uuid,
|
pub id: Uuid,
|
||||||
|
@ -7,6 +7,7 @@ use actix_web::{App, get, HttpResponse, HttpServer, Responder};
|
|||||||
|
|
||||||
pub mod db;
|
pub mod db;
|
||||||
pub mod util;
|
pub mod util;
|
||||||
|
pub mod schema;
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> io::Result<()> {
|
async fn main() -> io::Result<()> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user