Skip to content

Commit

Permalink
Remove site Entity. Not used anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
nikrou committed Nov 9, 2021
1 parent 6d5a06c commit 1cb0491
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 395 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
;; data
/_data
/upload
/galleries
/db/*
!/db/index.php
/media/*
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Phyxo 2.3.0 - YYYY-MM-DD

- nothing yet
- Remove site Entity. Not used anymore.

# Phyxo 2.2.0 - 2021-11-06

Expand Down
77 changes: 0 additions & 77 deletions admin/theme/template/site_manager.html.twig

This file was deleted.

11 changes: 0 additions & 11 deletions install/phyxo_structure-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ CREATE TABLE `phyxo_categories` (
`dir` VARCHAR(255) DEFAULT NULL,
`rank` INT DEFAULT NULL,
`status` VARCHAR(25) NOT NULL DEFAULT 'public',
`site_id` INT DEFAULT NULL,
`visible` TINYINT(1) NOT NULL DEFAULT 1,
`representative_picture_id` INT DEFAULT NULL,
`uppercats` VARCHAR(255) NOT NULL DEFAULT '',
Expand Down Expand Up @@ -277,16 +276,6 @@ CREATE TABLE `phyxo_sessions` (
`sess_lifetime` INTEGER UNSIGNED NOT NULL
) ENGINE=InnoDB;

--
-- Table structure for table `phyxo_sites`
--

DROP TABLE IF EXISTS `phyxo_sites`;
CREATE TABLE `phyxo_sites` (
`id` INT AUTO_INCREMENT NOT NULL,
`galleries_url` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;

--
-- Table structure for table `phyxo_tags`
Expand Down
14 changes: 0 additions & 14 deletions install/phyxo_structure-pgsql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ CREATE TABLE "phyxo_categories"
"dir" VARCHAR(255),
"rank" INTEGER,
"status" VARCHAR(25) NOT NULL DEFAULT 'public',
"site_id" INTEGER DEFAULT 1,
"visible" BOOLEAN DEFAULT true,
"representative_picture_id" INTEGER,
"uppercats" VARCHAR(255) DEFAULT '' NOT NULL,
Expand Down Expand Up @@ -253,19 +252,6 @@ CREATE TABLE "phyxo_sessions"
);


-----------------------------------------------------------------------------
-- phyxo_sites
-----------------------------------------------------------------------------

DROP TABLE IF EXISTS "phyxo_sites";
CREATE TABLE "phyxo_sites"
(
"id" serial NOT NULL,
"galleries_url" VARCHAR(255) DEFAULT '' NOT NULL,
PRIMARY KEY ("id")
);


-----------------------------------------------------------------------------
-- phyxo_tags
-----------------------------------------------------------------------------
Expand Down
15 changes: 0 additions & 15 deletions install/phyxo_structure-sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ CREATE TABLE "phyxo_categories"
"dir" VARCHAR(255),
"rank" INTEGER,
"status" VARCHAR(50) default 'public',
"site_id" INTEGER default 1,
"visible" BOOLEAN default true,
"representative_picture_id" INTEGER,
"uppercats" VARCHAR(255) default '' NOT NULL,
Expand Down Expand Up @@ -274,20 +273,6 @@ CREATE TABLE "phyxo_sessions"
);


-----------------------------------------------------------------------------
-- phyxo_sites
-----------------------------------------------------------------------------

DROP TABLE IF EXISTS "phyxo_sites";
CREATE TABLE "phyxo_sites"
(
"id" INTEGER NOT NULL,
"galleries_url" VARCHAR(255) default '' NOT NULL,
PRIMARY KEY ("id"),
CONSTRAINT "sites_ui1" UNIQUE ("galleries_url")
);


-----------------------------------------------------------------------------
-- phyxo_tags
-----------------------------------------------------------------------------
Expand Down
153 changes: 0 additions & 153 deletions src/Controller/Admin/AdminSiteController.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Entity/Album.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ class Album
*/
private $last_modified;

/**
* @ORM\OneToOne(targetEntity=Site::class, cascade={"persist", "remove"})
*/
private $site;

/**
* @ORM\ManyToMany(targetEntity=Group::class, mappedBy="group_access", cascade={"persist", "remove"})
*/
Expand Down Expand Up @@ -303,18 +298,6 @@ public function setLastModified(?\DateTimeInterface $last_modified): self
return $this;
}

public function getSite(): ?Site
{
return $this->site;
}

public function setSite(?Site $site): self
{
$this->site = $site;

return $this;
}

public function isVirtual(): bool
{
return !$this->dir;
Expand Down
Loading

0 comments on commit 1cb0491

Please sign in to comment.