wasp/examples/waspleau/migrations/20221124022424_rename_metric_model/migration.sql
Filip Sodić adc1e1a84b
Fix name conflict in Waspleau (#830)
Co-authored-by: shayneczyzewski <shayne.czyzewski@gmail.com>
2022-11-24 15:19:22 +01:00

22 lines
447 B
SQL

/*
Warnings:
- You are about to drop the `Metric` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropTable
DROP TABLE "Metric";
-- CreateTable
CREATE TABLE "Datum" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"value" TEXT NOT NULL,
"updatedAt" TIMESTAMP(3) NOT NULL,
CONSTRAINT "Datum_pkey" PRIMARY KEY ("id")
);
-- CreateIndex
CREATE UNIQUE INDEX "Datum_name_key" ON "Datum"("name");